line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Device::Kiln::Orton; |
2
|
1
|
|
|
1
|
|
31447
|
use strict; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
42
|
|
3
|
1
|
|
|
1
|
|
3430
|
use Data::Dumper; |
|
1
|
|
|
|
|
15609
|
|
|
1
|
|
|
|
|
82
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
BEGIN { |
6
|
1
|
|
|
1
|
|
10
|
use Exporter (); |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
27
|
|
7
|
1
|
|
|
1
|
|
5
|
use vars qw($VERSION @ISA @EXPORT @EXPORT_OK %EXPORT_TAGS); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
119
|
|
8
|
1
|
|
|
1
|
|
2
|
$VERSION = '0.01'; |
9
|
1
|
|
|
|
|
16
|
@ISA = qw(Exporter); |
10
|
|
|
|
|
|
|
#Give a hoot don't pollute, do not export more than needed by default |
11
|
1
|
|
|
|
|
2
|
@EXPORT = qw(); |
12
|
1
|
|
|
|
|
2
|
@EXPORT_OK = qw(); |
13
|
1
|
|
|
|
|
469
|
%EXPORT_TAGS = (); |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
sub new |
19
|
|
|
|
|
|
|
{ |
20
|
1
|
|
|
1
|
0
|
16
|
my ($class, %parameters) = @_; |
21
|
|
|
|
|
|
|
|
22
|
1
|
|
33
|
|
|
12
|
my $self = bless ({}, ref ($class) || $class); |
23
|
|
|
|
|
|
|
|
24
|
1
|
|
|
|
|
5
|
return $self; |
25
|
|
|
|
|
|
|
} |
26
|
|
|
|
|
|
|
|
27
|
|
|
|
|
|
|
sub conetemps { |
28
|
|
|
|
|
|
|
|
29
|
0
|
|
|
0
|
0
|
|
return (['15','60','150']); |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
}; |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
sub arrayref { |
34
|
0
|
|
|
0
|
0
|
|
my @conearray; |
35
|
0
|
|
|
|
|
|
push @conearray, ( |
36
|
|
|
|
|
|
|
[ '022','0','586','590' ], |
37
|
|
|
|
|
|
|
[ '021','0','600','617' ], |
38
|
|
|
|
|
|
|
[ '020','0','626','638' ], |
39
|
|
|
|
|
|
|
[ '019','656','678','695' ], |
40
|
|
|
|
|
|
|
[ '018','686','715','734' ], |
41
|
|
|
|
|
|
|
[ '017','705','738','763' ], |
42
|
|
|
|
|
|
|
[ '016','742','772','796' ], |
43
|
|
|
|
|
|
|
[ '015','750','791','818' ], |
44
|
|
|
|
|
|
|
[ '014','757','807','838' ], |
45
|
|
|
|
|
|
|
[ '013','807','837','861' ], |
46
|
|
|
|
|
|
|
[ '012','843','861','882' ], |
47
|
|
|
|
|
|
|
[ '011','857','875','894' ], |
48
|
|
|
|
|
|
|
[ '010','891','903','915' ], |
49
|
|
|
|
|
|
|
[ '09','907','920','930' ], |
50
|
|
|
|
|
|
|
[ '08','922','942','956' ], |
51
|
|
|
|
|
|
|
[ '07','962','976','987' ], |
52
|
|
|
|
|
|
|
[ '06','981','998','1013' ], |
53
|
|
|
|
|
|
|
[ '05½','1004','1015','1025' ], |
54
|
|
|
|
|
|
|
[ '05','1021','1031','1044' ], |
55
|
|
|
|
|
|
|
[ '04','1046','1063','1077' ], |
56
|
|
|
|
|
|
|
[ '03','1071','1086','1104' ], |
57
|
|
|
|
|
|
|
[ '02','1078','1102','1122' ], |
58
|
|
|
|
|
|
|
[ '01','1093','1119','1138' ], |
59
|
|
|
|
|
|
|
[ '1','1109','1137','1154' ], |
60
|
|
|
|
|
|
|
[ '2','1112','1142','1164' ], |
61
|
|
|
|
|
|
|
[ '3','1115','1152','1170' ], |
62
|
|
|
|
|
|
|
[ '4','1141','1162','1183' ], |
63
|
|
|
|
|
|
|
[ '5','1159','1186','1207' ], |
64
|
|
|
|
|
|
|
[ '5½','1167','1203','1225' ], |
65
|
|
|
|
|
|
|
[ '6','1185','1222','1243' ], |
66
|
|
|
|
|
|
|
[ '7','1201','1239','1257' ], |
67
|
|
|
|
|
|
|
[ '8','1211','1249','1271' ], |
68
|
|
|
|
|
|
|
[ '9','1224','1260','1280' ], |
69
|
|
|
|
|
|
|
[ '10','1251','1285','1305' ], |
70
|
|
|
|
|
|
|
[ '11','1272','1294','1315' ], |
71
|
|
|
|
|
|
|
[ '12','1285','1306','1326' ], |
72
|
|
|
|
|
|
|
[ '13','1310','1331','1348' ], |
73
|
|
|
|
|
|
|
[ '14','1351','1365','1384' ] |
74
|
|
|
|
|
|
|
); |
75
|
|
|
|
|
|
|
|
76
|
0
|
|
|
|
|
|
return @conearray; |
77
|
|
|
|
|
|
|
} |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
|
80
|
|
|
|
|
|
|
sub hashref { |
81
|
|
|
|
|
|
|
|
82
|
|
|
|
|
|
|
|
83
|
|
|
|
|
|
|
|
84
|
0
|
|
|
0
|
0
|
|
my $temp; |
85
|
|
|
|
|
|
|
my $hashref; |
86
|
|
|
|
|
|
|
|
87
|
0
|
|
|
|
|
|
my @conearray = arrayref(); |
88
|
0
|
|
|
|
|
|
my $coneno = 1; |
89
|
|
|
|
|
|
|
|
90
|
0
|
|
|
|
|
|
foreach my $cone (@conearray) { |
91
|
0
|
|
|
|
|
|
$hashref->{$cone->[0]}->{seqnum} = $coneno; |
92
|
0
|
|
|
|
|
|
$coneno=$coneno+1; |
93
|
0
|
|
|
|
|
|
foreach my $tempnum (1..3) { |
94
|
0
|
|
|
|
|
|
$hashref->{$cone->[0]}->{conetemps()->[$tempnum-1]} = $cone->[$tempnum]; |
95
|
|
|
|
|
|
|
|
96
|
|
|
|
|
|
|
} |
97
|
|
|
|
|
|
|
|
98
|
|
|
|
|
|
|
} |
99
|
|
|
|
|
|
|
|
100
|
0
|
|
|
|
|
|
return $hashref; |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
#################### main pod documentation begin ################### |
104
|
|
|
|
|
|
|
## Below is the stub of documentation for your module. |
105
|
|
|
|
|
|
|
## You better edit it! |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
|
108
|
|
|
|
|
|
|
=head1 NAME |
109
|
|
|
|
|
|
|
|
110
|
|
|
|
|
|
|
Device::Kiln::Orton - Module for retrieving pyrometric cone charts |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
=head1 SYNOPSIS |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
use Device::Kiln::Orton; |
115
|
|
|
|
|
|
|
|
116
|
|
|
|
|
|
|
my $cone_hashref = Device::Kiln::Orton->hashref(); |
117
|
|
|
|
|
|
|
my @cone_arrayref = Device::Kiln::Orton->arrayref(); |
118
|
|
|
|
|
|
|
|
119
|
|
|
|
|
|
|
|
120
|
|
|
|
|
|
|
=head1 DESCRIPTION |
121
|
|
|
|
|
|
|
|
122
|
|
|
|
|
|
|
retrieve a hash or array of pyrometric cone charts |
123
|
|
|
|
|
|
|
|
124
|
|
|
|
|
|
|
array is returned as: |
125
|
|
|
|
|
|
|
[cone,temp1,temp2,temp3], |
126
|
|
|
|
|
|
|
[cone2,temp1,temp2,temp3], |
127
|
|
|
|
|
|
|
. |
128
|
|
|
|
|
|
|
. |
129
|
|
|
|
|
|
|
where temp1, temp2 and temp3 is the maximum cone temp |
130
|
|
|
|
|
|
|
for the last 100C at a rate of 15,60 & 150 Degrees C |
131
|
|
|
|
|
|
|
per hour respectively. |
132
|
|
|
|
|
|
|
|
133
|
|
|
|
|
|
|
|
134
|
|
|
|
|
|
|
hash is returned as: |
135
|
|
|
|
|
|
|
|
136
|
|
|
|
|
|
|
{ |
137
|
|
|
|
|
|
|
'conename' => { |
138
|
|
|
|
|
|
|
seqnum => seqno, |
139
|
|
|
|
|
|
|
15 => temp1, |
140
|
|
|
|
|
|
|
60 => temp2 |
141
|
|
|
|
|
|
|
150 => temp3 |
142
|
|
|
|
|
|
|
} |
143
|
|
|
|
|
|
|
. |
144
|
|
|
|
|
|
|
. |
145
|
|
|
|
|
|
|
} |
146
|
|
|
|
|
|
|
|
147
|
|
|
|
|
|
|
|
148
|
|
|
|
|
|
|
=head1 BUGS |
149
|
|
|
|
|
|
|
|
150
|
|
|
|
|
|
|
Only does Celsius. |
151
|
|
|
|
|
|
|
|
152
|
|
|
|
|
|
|
=head1 SUPPORT |
153
|
|
|
|
|
|
|
|
154
|
|
|
|
|
|
|
|
155
|
|
|
|
|
|
|
|
156
|
|
|
|
|
|
|
=head1 AUTHOR |
157
|
|
|
|
|
|
|
|
158
|
|
|
|
|
|
|
David Peters |
159
|
|
|
|
|
|
|
CPAN ID: DAVIDP |
160
|
|
|
|
|
|
|
davidp@electronf.com |
161
|
|
|
|
|
|
|
http://www.electronf.com |
162
|
|
|
|
|
|
|
|
163
|
|
|
|
|
|
|
=head1 COPYRIGHT |
164
|
|
|
|
|
|
|
|
165
|
|
|
|
|
|
|
This program is free software; you can redistribute |
166
|
|
|
|
|
|
|
it and/or modify it under the same terms as Perl itself. |
167
|
|
|
|
|
|
|
|
168
|
|
|
|
|
|
|
The full text of the license can be found in the |
169
|
|
|
|
|
|
|
LICENSE file included with this module. |
170
|
|
|
|
|
|
|
|
171
|
|
|
|
|
|
|
|
172
|
|
|
|
|
|
|
=head1 SEE ALSO |
173
|
|
|
|
|
|
|
|
174
|
|
|
|
|
|
|
perl(1), http://www.ortonceramics.com/ |
175
|
|
|
|
|
|
|
|
176
|
|
|
|
|
|
|
=cut |
177
|
|
|
|
|
|
|
|
178
|
|
|
|
|
|
|
#################### main pod documentation end ################### |
179
|
|
|
|
|
|
|
|
180
|
|
|
|
|
|
|
|
181
|
|
|
|
|
|
|
1; |
182
|
|
|
|
|
|
|
# The preceding line will help the module return a true value |
183
|
|
|
|
|
|
|
|