Module: YPetri::Core::Timed::Methods

Defined in:
lib/y_petri/core/timed/methods.rb

Instance Method Summary collapse

Instance Method Details

#method_initObject



13
14
15
16
17
18
19
20
21
# File 'lib/y_petri/core/timed/methods.rb', line 13

def method_init
  extend case simulation_method
         when :euler then Euler
         when :pseudo_euler then PseudoEuler
         when :quasi_euler then QuasiEuler
         when :gillespie then Gillespie
         when :runge_kutta then RungeKutta
         else fail TypeError, "Unknown timed simulation method: #{method}!" end
end