Simulation::DiscreteEvent::Event - module for discrete-event simulation
use Simulation::DiscreteEvent::Event; my $event = Simulation::DiscreteEvent::Event->new( time => $event_time, server => $server, type => $event_type, message => $data, ); $event->handle();
This module is used internally by Simulation::DiscreteEvent. You generally have no need to use it.
Get/set time of the event
Get/set server that should handle this event
Get/set event type
Get/set message that should be passed to server's event handler.
Invoke server's event handler and pass event type and message to it.
Pavel Shaydo, <zwon at cpan.org>
<zwon at cpan.org>
Please see documentation for Simulation::DiscreteEvent
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.
To install Simulation::DiscreteEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Simulation::DiscreteEvent
CPAN shell
perl -MCPAN -e shell install Simulation::DiscreteEvent
For more information on module installation, please visit the detailed CPAN module installation guide.