lib/y_petri/simulation/timed.rb in y_petri-2.1.7 vs lib/y_petri/simulation/timed.rb in y_petri-2.1.9

- old
+ new

@@ -36,29 +36,29 @@ # def time_range initial_time..target_time end - # Returnst the settings pertaining to the Timed aspect of the simulation, + # Returns the settings pertaining to the Timed aspect of the simulation, # that is, +:step+, +:sampling+ and +:time+. # def settings all=false super.update( step: step, sampling: sampling, time: time_range ) end # Same as +#run!+, but guards against run upto infinity. - # + # def run( upto: target_time, final_step: :exact ) fail "Upto time equals infinity!" if upto == Float::INFINITY run!( upto: upto, final_step: final_step ) end # Near alias for +#run_upto+. Accepts +:upto+ named argument, using # @target_time attribute as a default. The second optional argument, # +:final_step+, has the same options as in +#run_upto+ method. - # + # def run!( upto: target_time, final_step: :exact ) run_upto( upto, final_step: final_step ) end # Runs the simulation until the target time. Named argument :final_step has