PNI::Scenario - is a set of nodes connected by edges
# You can call the constructor to get a scenario ... use PNI::Scenario; $standalone_scenario = PNI::Scenario->new; # ... but it will not belong to PNI hierarchy tree, # so its task method will not be called. # You can start adding a scenario to the PNI root. use PNI; my $scen1 = PNI::root->add_scenario; my $scen2 = $scenario->add_scenario; my $foo = $scen2->add_node('Foo'); my $bar = $scen2->add_node('Bar'); $scen2->add_edge( $foo => $bar, 'out' => 'in' );
To install PNI, copy and paste the appropriate command in to your terminal.
cpanm
cpanm PNI
CPAN shell
perl -MCPAN -e shell install PNI
For more information on module installation, please visit the detailed CPAN module installation guide.