Sha256: 68f099e0b3ec2c9bad3572ba470a932cf637c039a0c988096318e807a934f7a3

Contents?: true

Size: 624 Bytes

Versions: 39

Compression:

Stored size: 624 Bytes

Contents

#encoding: utf-8

# A mixin for non-assignment transition representations.
# 
module YPetri::Simulation::TransitionRepresentation::Type_a
  # Assignment action -- false for non-assignment transitions.
  # 
  def A?
    false
  end
  alias assignment_action? A?
  alias assignment? A?

  # Normal (non-assignment) action -- true for A transitions
  # 
  def a?
    true
  end

  # Initialization subroutine.
  # 
  def init
  end

  # Change, for free places, as it would happen if the transition fired.
  # 
  def delta
    Δ.select { |p, v| p.free? }
  end
end # class YPetri::Simulation::TransitionRepresentation::Type_a

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
y_petri-2.2.4 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.2.3 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.2.2 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.2.1 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.2.0 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.51 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.50 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.49 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.48 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.47 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.46 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.45 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.44 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.42 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.40 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.39 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.37 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.36 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.35 lib/y_petri/simulation/transition_representation/a.rb
y_petri-2.1.34 lib/y_petri/simulation/transition_representation/a.rb