Sha256: aa0e14f66a225e940af3d7085c23d1794548d5d081eb76c92e6ca81e1bbe1b0c
Contents?: true
Size: 590 Bytes
Versions: 38
Compression:
Stored size: 590 Bytes
Contents
# encoding: utf-8 # Euler method with timeless transitions firing after each step. # module YPetri::Core::Timed::PseudoEuler include YPetri::Core::Timed::Euler # Name of this method. # def simulation_method :pseudo_euler end # Computes Δ for the period of Δt. # def delta Δt super + delta_timeless end alias Δ delta # Makes a single step by Δt. # def step! Δt=simulation.step increment_marking_vector Δ( Δt ) assignment_transitions_all_fire! simulation.increment_time! Δt alert end end # YPetri::Core::Timed::PseudoEuler
Version data entries
38 entries across 38 versions & 1 rubygems