line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package StateML::Action; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
12
|
use strict ; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
129
|
|
4
|
3
|
|
|
3
|
|
13
|
use base qw(StateML::Object ) ; |
|
3
|
|
|
|
|
5
|
|
|
3
|
|
|
|
|
897
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
=head1 NAME |
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
StateML::Action - A single action that can be used in multiple event handlers |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
=head1 DESCRIPTION |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
This is an optional part of StateML. It can be handy to package up an |
13
|
|
|
|
|
|
|
action that occurs in several places in a state machine using |
14
|
|
|
|
|
|
|
elements and the corresponding action_id attributes. |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
=cut |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub handlers { |
19
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
20
|
0
|
0
|
|
|
|
|
@{$self->{HANDLERS}} = @_ if @_; |
|
0
|
|
|
|
|
|
|
21
|
0
|
0
|
|
|
|
|
return @{$self->{HANDLERS} || []}; |
|
0
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
sub description { |
25
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
26
|
0
|
0
|
|
|
|
|
$self->{DESCRIPTION} = shift if @_; |
27
|
0
|
|
|
|
|
|
return $self->{DESCRIPTION}; |
28
|
|
|
|
|
|
|
} |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 LIMITATIONS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
=head1 COPYRIGHT |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
Copyright 2003, R. Barrie Slaymaker, Jr., All Rights Reserved |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 LICENSE |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
You may use this module under the terms of the BSD, Artistic, or GPL licenses, |
39
|
|
|
|
|
|
|
any version. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
=head1 AUTHOR |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
Barrie Slaymaker |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=cut |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
1 ; |