Algorithm::DependencySolver::Operation - An operation representation
version 1.01
my $operation = Algorithm::DependencySolver::Operation->new( id => 2, depends => [qw(x)], affects => [qw(y)], prerequisites => [1], obj => $whatever );
An arbitrary object, which is never used by anything in the Algorithm::DependencySolver::* namespace.
Algorithm::DependencySolver::*
An arrayref of other Operation objects, identified by their id strings.
If an operation $b depends on operation <C$a>, then any cycle which would have resulted in $b running before $a will be broken just before operation $a.
$b
$a
That is, if there exists a cycle containing both $a and $b, then edge $e will be removed, where $e is any edge within the cycle which points directly to $a.
$e
A string which uniquely identifies this operation
An arrayref of resources (each resource is simply a string identifier) that this operation depends on.
An arrayref of resources (each resource is simply a string identifier) that this operation affects (i.e., modifies).
To install Algorithm::DependencySolver::Solver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Algorithm::DependencySolver::Solver
CPAN shell
perl -MCPAN -e shell install Algorithm::DependencySolver::Solver
For more information on module installation, please visit the detailed CPAN module installation guide.