module YPetri::Core::Timed::Ticked
Adaptation of Euler
method for the systems possibly with timeless transitions and assignment transitions. Unlike pseudo_euler
, which fires every step, quasi_euler
fires every time tick. Not implemented yet.
Public Instance Methods
delta(Δt)
click to toggle source
Computes Δ for the period of Δt. Not mplemented yet.
# File lib/y_petri/core/timed/ticked.rb, line 10 def delta Δt fail NotImplementedError, "QuasiEuler not implemented yet!" end
step!(Δt=simulation.step_size)
click to toggle source
Makes a single step by Δt. Not implemented yet.
# File lib/y_petri/core/timed/ticked.rb, line 17 def step! Δt=simulation.step_size fail NotImplementedError, "QuasiEuler not implemented yet!" # Now one would have to compare whichever comes first, time tick or the # end of Δt, and then again and again, until Δt is fired... end