3 start include statements
4 use model
::problem
::record
::theta_option
;
7 # }}} include statements
12 push( @
{$self -> {'options'}},
13 model
::problem
::record
::theta_option
->
14 new
( option_string
=> $option_string ) );
23 $self -> {'same'} = 0;
25 @
{$self -> {'comment'}} = ();
26 if ( defined $self -> {'record_arr'} ) {
27 for ( @
{$self -> {'record_arr'}} ) {
33 next unless( length($_) > 0 );
36 # This is a comment row
37 push( @
{$self -> {'comment'}}, $_."\n" );
39 # Make sure that the labels and units are in one string
42 # Get rid of unwanted spaces
48 # Split thetas and labels/units
49 my ( $line, $comment ) = split( ";", $_, 2 );
51 # Split the theta string to see if we have more than one theta.
52 @row = split( " ",$line );
54 # If we only have one theta, send the whole row to option
55 push( @
{$self -> {'options'}},
56 model
::problem
::record
::theta_option
->
57 new
( option_string
=> $_ ));
59 # If we have more than one theta, send one theta at a time to option
61 push( @
{$self -> {'options'}},
62 model
::problem
::record
::theta_option
->
63 new
( option_string
=> $_ ));
64 # foreach my $option ( @{$self->{'options'}}){
65 # print "Option class: ",ref($option),"\n";
66 # print "INIT: ", $option -> init, "\n";