VS::RuleEngine::Output - Interface for outputs.


VS-RuleEngine documentation Contained in the VS-RuleEngine distribution.

Index


Code Index:

NAME

Top

VS::RuleEngine::Output - Interface for outputs.

INTERFACE

Top

CLASS METHODS

new

Called when a new instance is requested.

INSTANCE METHODS

pre_process

Currently not used.

For arguments passed to this method see Arguments in VS::RuleEngine::Constants.

process

Called after each iteration in the runloop.

For arguments passed to this method see Arguments in VS::RuleEngine::Constants.

post_process

Currently not used.

For arguments passed to this method see Arguments in VS::RuleEngine::Constants.


VS-RuleEngine documentation Contained in the VS-RuleEngine distribution.

package VS::RuleEngine::Output;

use strict;
use warnings;

use Carp qw(croak);

sub new {
    my $self = shift;
    $self = ref $self || $self;
    croak "new() should not be called as a function" if !$self;
    croak "Class '$self' does not override new()";
}

sub pre_process {
    my $self = shift;
    $self = ref $self || $self;
    croak "pre_process() should not be called as a function" if !$self;
    croak "Class '$self' does not override pre_process()";
}

sub process {
    my $self = shift;
    $self = ref $self || $self;
    croak "process() should not be called as a function" if !$self;
    croak "Class '$self' does not override process()";
}

sub post_process {
    my $self = shift;
    $self = ref $self || $self;
    croak "post_process() should not be called as a function" if !$self;
    croak "Class '$self' does not override post_process()";
}

1;
__END__