NAME
PNI::Scenario - is a set of nodes connected by edges
SYNOPSIS
# 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' );
ATTRIBUTES
edges
my @edges = $self->edges->list;
A PNI::Set containing <PNI::Edge>s.
nodes
my @nodes = $self->nodes->list;
A PNI::Set containing <PNI::Node>s.
scenarios
my @scenarios = $self->scenarios->list;
A PNI::Set containing <PNI::Scenario>s.