line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package FrameNet::WordNet::Detour::Frame; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
require Exporter; |
4
|
|
|
|
|
|
|
our @ISA = qw(Exporter); |
5
|
|
|
|
|
|
|
our $VERSION = "0.99"; |
6
|
|
|
|
|
|
|
|
7
|
1
|
|
|
1
|
|
6
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
40
|
|
8
|
1
|
|
|
1
|
|
7
|
use warnings; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
546
|
|
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
sub new { |
11
|
0
|
|
|
0
|
1
|
|
my $class = shift; |
12
|
0
|
|
|
|
|
|
my $self = { 'fees' => [], |
13
|
|
|
|
|
|
|
'sims' => [] }; |
14
|
0
|
|
|
|
|
|
return bless $self, $class; |
15
|
|
|
|
|
|
|
} |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
sub fees { |
18
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
19
|
0
|
|
|
|
|
|
return $self->{'fees'}; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
sub sims { |
23
|
0
|
|
|
0
|
1
|
|
my $self = shift; |
24
|
0
|
|
|
|
|
|
return $self->{'sims'}; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub _fees_add { |
28
|
0
|
|
|
0
|
|
|
my ($self, $fee) = @_; |
29
|
0
|
|
|
|
|
|
push(@{$self->{'fees'}},$fee); |
|
0
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
} |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
sub _sims_add { |
33
|
0
|
|
|
0
|
|
|
my ($self, $sim) = @_; |
34
|
0
|
|
|
|
|
|
push(@{$self->{'sims'}},$sim); |
|
0
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
sub _add_weight { |
38
|
0
|
|
|
0
|
|
|
my $self = shift; |
39
|
0
|
|
|
|
|
|
my $w = shift; |
40
|
0
|
|
|
|
|
|
$self->{'weight'} += $w; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub weight { |
44
|
0
|
|
|
0
|
1
|
|
my ($self,$w) = @_; |
45
|
0
|
0
|
|
|
|
|
if (defined $w) { |
46
|
0
|
|
|
|
|
|
$self->{'weight'} = $w; |
47
|
|
|
|
|
|
|
}; |
48
|
0
|
|
|
|
|
|
return $self->{'weight'}; |
49
|
|
|
|
|
|
|
}; |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
sub name { |
52
|
0
|
|
|
0
|
1
|
|
my ($self,$name) = @_; |
53
|
0
|
0
|
|
|
|
|
if (defined $name) { |
54
|
0
|
|
|
|
|
|
$self->{'name'} = $name; |
55
|
|
|
|
|
|
|
}; |
56
|
0
|
|
|
|
|
|
return $self->{'name'}; |
57
|
|
|
|
|
|
|
}; |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
sub get_name { |
60
|
0
|
|
|
0
|
1
|
|
my ($self,$name) = @_; |
61
|
0
|
0
|
|
|
|
|
if (defined $name) { |
62
|
0
|
|
|
|
|
|
return $self->name($name); |
63
|
|
|
|
|
|
|
}; |
64
|
0
|
|
|
|
|
|
return $self->name; |
65
|
|
|
|
|
|
|
}; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
sub get_weight { |
68
|
0
|
|
|
0
|
1
|
|
my ($self,$weight) = @_; |
69
|
0
|
0
|
|
|
|
|
if (defined $weight) { |
70
|
0
|
|
|
|
|
|
return $self->weight($weight); |
71
|
|
|
|
|
|
|
}; |
72
|
0
|
|
|
|
|
|
return $self->weight; |
73
|
|
|
|
|
|
|
}; |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
|
76
|
|
|
|
|
|
|
|
77
|
|
|
|
|
|
|
1; |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
__END__ |