Exemplo n.º 1
0
 ConditionMMDD (const BlockModel& al)
   : Condition (al),
     month (al.integer ("month")),
     day (al.integer ("day")),
     hour (al.integer ("hour")),
     minute (al.integer ("minute")),
     second (al.integer ("second"))
 { }
Exemplo n.º 2
0
 ActionWaitDays (const BlockModel& al)
   : Action (al),
     days (al.integer ("days")),
     hours (al.integer ("hours")),
     activated (al.check ("end_time")),
     end_time (1, 1, 1, 1)
 { 
   if (activated)
     end_time = Time (al.submodel ("end_time"));
 }
Exemplo n.º 3
0
 ProgramRS2WG (const BlockModel& al)
   : Program (al),
     path (al.path ()),
     rshourly_origin (al.integer ("rshourly_origin"), 1, 1, 0),
     wgcycle_begin (al.integer ("wgcycle_begin"), 1, 1, 0),
     wgcycle_end (al.integer ("wgcycle_begin") + al.integer ("wgcycle_length"),
                  1, 1, 0),
     rshourly_file (al.name ("rshourly_file")),
     rsdaily_file (al.name ("rsdaily_file")),
     dwfhourly_file (al.name ("dwfhourly_file")),
     hint_file (al.name ("hint_file")),
     hlim (al.number_sequence ("hlim"))
 { }
Exemplo n.º 4
0
 ProgramRootmatch (const BlockModel& al)
   : Program (al),
     units (al.units ()),
     lex (al),
     pos_dim (al.name ("pos_dim")),
     dens_dim (al.name ("dens_dim")),
     tag_x (al.name ("tag_x")),
     tag_z_min (al.name ("tag_z_min")),
     tag_z_max (al.name ("tag_z_max")),
     tag_density (al.name ("tag_density")),
     c_x_pos (-1),
     c_z_min (-1),
     c_z_max (-1),
     c_density (-1),
     debug (al.integer ("debug")),
     show_data (al.flag ("show_data")),
     show_match (al.flag ("show_match")),
     x_offset (al.number ("x_offset")),
     tabular (al.flag ("tabular")),
     row_position (al.number ("row_position")),
     min_dist (al.number ("min_dist")),
     gp2d (al.number ("row_position"),
           al.number ("row_distance"),
           al.number ("DensRtTip"),
           al.number ("SpRtLength")),
     gp1d (al.number ("DensRtTip"),
           al.number ("SpRtLength")),
     SoilDepth (al.number ("SoilDepth", NAN)),
     gnuplot (submodel<Gnuplot> (al, "gnuplot"))
 { }
Exemplo n.º 5
0
 EquilibriumGoal_A (const BlockModel& al)
   : Equilibrium (al),
     goal_A_expr (Librarian::build_item<Number> (al, "goal_A")),
     min_B_expr (Librarian::build_item<Number> (al, "min_B")),
     A_solute (al.flag ("A_solute")),
     B_solute (al.flag ("B_solute")),
     debug_cell (al.integer ("debug_cell"))
 { }
Exemplo n.º 6
0
SummaryBalance::SummaryBalance (const BlockModel& al)
  : Summary (al),
    description (al.frame ().description ()),
    file (al.name ("where", "")),
    precision (al.integer ("precision")),
    require_top (al.flag ("require_top")),
    input (al.name_sequence ("input")),
    output (al.name_sequence ("output")),
    content (al.name_sequence ("content")),
    fetch (input, output, content)
{ }
Exemplo n.º 7
0
 ConditionYear (const BlockModel& al)
   : Condition (al),
     at (al.integer ("at"))
 { }
Exemplo n.º 8
0
 ActionWaitMMDD (const BlockModel& al)
   : Action (al),
     month (al.integer ("month")),
     day (al.integer ("day")),
     hour (al.integer ("hour"))
 { }
Exemplo n.º 9
0
HydraulicYolo::HydraulicYolo (const BlockModel& al)
  : Hydraulic (al),
    M_intervals (al.integer ("M_intervals")),
    M_ ()
{ }