NAME

Simulation::DiscreteEvent::Sink - collect information about customers that leaving system

SYNOPSIS

$sink = $model->add(
    'Simulation::DiscreteEvent::Sink',
    allowed_events => [ qw(served rejected) ],
);

DESCRIPTION

This class is descendant of Simulation::DiscreteEvent::Server and implements Simulation::DiscreteEvent::Recorder role. Purpose of this class is collecting statistics about customers leaving the system.

METHODS

This class doesn't implement its own methods, see Simulation::DiscreteEvent::Recorder documentation to get the list of available methods.

ATTRIBUTES

Class has one attribute that may be passed to constructor.

allowed_events

Reference to an array with names of allowed events. If attribute is not defined, all events are accepted.

AUTHOR

Pavel Shaydo, <zwon at cpan.org>

SUPPORT

Please see documentation for Simulation::DiscreteEvent

LICENSE AND COPYRIGHT

Copyright 2010 Pavel Shaydo.

This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.

See http://dev.perl.org/licenses/ for more information.