Simulation::DiscreteEvent::Server - Moose class for implementing servers
package MyServer; use Moose; BEGIN { extends 'Simulation::DiscreteEvent::Server'; } sub start_handler : Event(start) { # handle start event here } sub stop : Event { # handle stop event here } no Moose; __PACKAGE__->meta->make_immutable;
This is a base class for implementing servers for Simulation::DiscreteEvent models. Please see description and examples of using this module in Simulation::DiscreteEvent::Cookbook.
Allows you to get/set the name of the server
Invoke handler for $event and pass to it @args as arguments.
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.