UML::Sequence::Activation - a helper class to support UML::Sequence
use UML::Sequence::Activation; my $activation = UML::Sequence::Activation->new(); $activation->starts(2); ...
This class keeps track of the start, end, offset, and bounds for an activation in the sequence diagram. It is a data container (a node), so it provides direct access to its attributes. The constructor ignores all arguments, use accessors or direct access to insert and check the values.
Trivial constructor, taking nothing, returning a blessed reference to an empty hash.
Accessor to set or check the starting attribute. Always returns the value. This is the arrow number at the top of the activation.
Accessor to set or check the ending attribute. Always returns the value. This is the arrow number at the bottom of the activation.
Accessor to set or check the offset attribute. Always returns the value. This is the number of stacked activations. An offset of zero means the activation is centered over the lifelife. An offset of one means a self call activation is on top of the original call. The activation should be pushed to the right (it should be offset).
This class method takes a reference to an array of activations and returns the number of them which are open (have undef ends attribute). Pass in the activations for your class, receive the offset number a new activation.
This class method takes a reference to an array of activations and returns the minimum starts and maximum ends attributes for the set.
Phil Crow, <philcrow2000@yahoo.com>
Copyright 2003, Philip Crow, all rights reserved. You may modify and/or redistribute this code in the same manner as Perl itself.
To install UML::Sequence, copy and paste the appropriate command in to your terminal.
cpanm
cpanm UML::Sequence
CPAN shell
perl -MCPAN -e shell install UML::Sequence
For more information on module installation, please visit the detailed CPAN module installation guide.