line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package StateML::Event ; |
2
|
|
|
|
|
|
|
|
3
|
3
|
|
|
3
|
|
5651
|
use strict ; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
196
|
|
4
|
3
|
|
|
3
|
|
12
|
use base qw(StateML::Object ) ; |
|
3
|
|
|
|
|
6
|
|
|
3
|
|
|
|
|
1199
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub new { |
7
|
3
|
|
|
3
|
1
|
228
|
return shift()->SUPER::new( |
8
|
|
|
|
|
|
|
API => undef, |
9
|
|
|
|
|
|
|
PRE_HANDLERS => [], |
10
|
|
|
|
|
|
|
POST_HANDLERS => [], |
11
|
|
|
|
|
|
|
HANDLERS => [], |
12
|
|
|
|
|
|
|
@_ |
13
|
|
|
|
|
|
|
) ; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub api { |
18
|
0
|
|
|
0
|
0
|
|
my $self = shift ; |
19
|
0
|
0
|
|
|
|
|
$self->{API} = shift if @_ ; |
20
|
0
|
|
|
|
|
|
return $self->{API} ; |
21
|
|
|
|
|
|
|
} |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub description { |
24
|
0
|
|
|
0
|
0
|
|
my $self = shift ; |
25
|
0
|
0
|
|
|
|
|
$self->{DESCRIPTION} = shift if @_ ; |
26
|
0
|
|
|
|
|
|
return $self->{DESCRIPTION}; |
27
|
|
|
|
|
|
|
} |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
sub pre_handlers { |
30
|
0
|
|
|
0
|
0
|
|
my $self = shift ; |
31
|
0
|
0
|
|
|
|
|
$self->{PRE_HANDLERS} = @_ if @_ ; |
32
|
0
|
|
|
|
|
|
return @{$self->{PRE_HANDLERS}} ; |
|
0
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
} |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
sub handlers { |
37
|
0
|
|
|
0
|
0
|
|
my $self = shift ; |
38
|
0
|
0
|
|
|
|
|
$self->{HANDLERS} = @_ if @_ ; |
39
|
0
|
|
|
|
|
|
return @{$self->{HANDLERS}} ; |
|
0
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
} |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
sub post_handlers { |
43
|
0
|
|
|
0
|
0
|
|
my $self = shift ; |
44
|
0
|
0
|
|
|
|
|
$self->{POST_HANDLERS} = @_ if @_ ; |
45
|
0
|
|
|
|
|
|
return @{$self->{POST_HANDLERS}} ; |
|
0
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
} |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
sub arcs { |
50
|
0
|
|
|
0
|
0
|
|
my $self = shift ; |
51
|
0
|
|
|
|
|
|
return $self->machine->arcs_for_event( $self ) ; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
1 ; |