Sha256: c80c5c95089d22ec5d89b073e2410dad0d912ef9bc482e445f10bf4fc18e9df0

Contents?: true

Size: 606 Bytes

Versions: 17

Compression:

Stored size: 606 Bytes

Contents

# encoding: utf-8

# Guarded simulation mixin – not working yet.
# 
module YPetri::Core::Guarded
  # Guarded version of the method.
  # 
  def increment_marking_vector( delta )
    try "to update marking" do
      super( note( "Δ state if tS transitions fire once",
                   is: Δ_if_tS_fire_once ) +
             note( "Δ state if tsa transitions fire once",
                   is: Δ_if_tsa_fire_once ) )
    end
  end
  
  # Guarded version of the method.
  # 
  def A_all_fire!
    try "to fire the assignment transitions" do
      super
    end
  end
end # module YPetri::Core::Guarded

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
y_petri-2.4.9 lib/y_petri/core/guarded.rb
y_petri-2.4.8 lib/y_petri/core/guarded.rb
y_petri-2.4.6 lib/y_petri/core/guarded.rb
y_petri-2.4.4 lib/y_petri/core/guarded.rb
y_petri-2.4.3 lib/y_petri/core/guarded.rb
y_petri-2.4.2 lib/y_petri/core/guarded.rb
y_petri-2.4.0 lib/y_petri/core/guarded.rb
y_petri-2.3.12 lib/y_petri/core/guarded.rb
y_petri-2.3.11 lib/y_petri/core/guarded.rb
y_petri-2.3.10 lib/y_petri/core/guarded.rb
y_petri-2.3.9 lib/y_petri/core/guarded.rb
y_petri-2.3.8 lib/y_petri/core/guarded.rb
y_petri-2.3.6 lib/y_petri/core/guarded.rb
y_petri-2.3.5 lib/y_petri/core/guarded.rb
y_petri-2.3.4 lib/y_petri/core/guarded.rb
y_petri-2.3.3 lib/y_petri/core/guarded.rb
y_petri-2.3.2 lib/y_petri/core/guarded.rb