Sha256: b60f25dd989ed8fb8509c05b3358bf65819d4d76044bd78470a0ff1541dd9a44

Contents?: true

Size: 458 Bytes

Versions: 1

Compression:

Stored size: 458 Bytes

Contents

# encoding: utf-8

# Implicit Euler for timeless nets. Simply, timeless transitions
# fire simultaneously, after which A transitions (if any) fire.
#
class YPetri::Core::Timeless
  module PseudoEuler
    # Name of this method.
    # 
    def simulation_method
      :pseudo_euler
    end

    def step!
      increment_marking_vector Δ
      assignment_transitions_all_fire!
      alert
    end
  end # module PseudoEuler
end # class YPetri::Core::Timeless

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
y_petri-2.1.3 lib/y_petri/core/timeless/pseudo_euler.rb