11 Sep 2007 22:12:29 UTC
- Distribution: UML-Sequence
- Module version: 0.08
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (3)
- Testers (26 / 236 / 1)
- KwaliteeBus factor: 0
- 73.08% Coverage
- License: unknown
- Activity24 month
- Download (118.52KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionPHILCROW Philip Crow
UML::Sequence - Render UML sequence diagrams, often by running the code.
use UML::Sequence; my $tree = UML::Sequence->new(\@methods, \@outline, \&parse_method); print $tree->build_xml_sequence('Title');
This class helps produce UML sequence diagrams. build_xml_sequence returns a string (suitable for printing to a file) which the seq2svg.pl script converts into svg.
To control the appearance of the sequence diagram, pass to the constructor:
1 a reference to an array containing the signatures you want to hear about or a reference to a hash whose keys are the signatures you want 2 a reference to an array containing the lines in the outline of calls 3 a reference to a sub which takes signatures and returns class and method names
To build the array references and supply the code reference consult UML::Sequence::SimpleSeq, UML::Sequence::JavaSeq, or UML::Sequence::PerlSeq. To see one way to call these look in the supplied genericseq script.
None, this module is object oriented.
Phil Crow, <email@example.com> Version 0.06 updates by Dean Arnold, <firstname.lastname@example.org>
Copyright(C) 2003-2006, Philip Crow, all rights reserved.
You may modify and/or redistribute this code in the same manner as Perl itself.
Module Install Instructions
To install UML::Sequence, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install UML::Sequence
For more information on module installation, please visit the detailed CPAN module installation guide.