Simulation::DiscreteEvent - module for discrete-event simulation
use Simulation::DiscreteEvent;
This module implements library for discrete-event simulation. Currently it is beta quality, I do not plan any backward incompatible changes in interface, but everything may happen. Please see Simulation::DiscreteEvent::Cookbook for information about using this module.
Creates simulation object.
Returns current model time.
Schedule event at $time for $server. $event is a string that defines event type. $message is a message that will be passed to $server's event handler.
Schedule $event for $server to happen right now.
Will create new object of class $server_class and add it to model. %parameters are passed to the object constructor. Returns reference to the created object.
Start simulation. You should schedule at least one event before run simulation. Simulation will be finished at $stop_time if specified, or when there will be no more events scheduled for execution.
Handles one event from the events queue.
Pavel Shaydo, <zwon at cpan.org>
<zwon at cpan.org>
Please report any bugs or feature requests to bug-simulation-discreteevent at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Simulation-DiscreteEvent. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-simulation-discreteevent at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Simulation::DiscreteEvent
Project's git repository can be accessed at
http://github.com/trinitum/perl-Simulation-DiscreteEvent
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Simulation-DiscreteEvent
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Simulation-DiscreteEvent
CPAN Ratings
http://cpanratings.perl.org/d/Simulation-DiscreteEvent
Search CPAN
http://search.cpan.org/dist/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.