lib/y_petri/simulation/dependency.rb in y_petri-2.3.12 vs lib/y_petri/simulation/dependency.rb in y_petri-2.4.0

- old
+ new

@@ -1,20 +1,20 @@ # encoding: utf-8 # Mixin providing collections of places / transitions to classes parametrized -# by an instance of YPetri::Simulation. Expects the includer classes to provide -# +#simulation+ method returning the +Simulation+ instance with which they are -# parametrized. +# by an instance of +YPetri::Simulation+. Expects the includer classes to +# provide +#simulation+ method returning the +Simulation+ instance with which +# they are parametrized. # class YPetri::Simulation module Dependency - delegate :Place, - :Transition, + delegate :PlacePS, + :TransitionPS, :MarkingClamp, :InitialMarkingObject, - :Places, - :Transitions, + :PlacesPS, + :TransitionsPS, :MarkingClamps, :InitialMarking, :net, :p, :t, :e, :pp, :tt, :ee, @@ -35,10 +35,10 @@ module_exec do define_method symbol do |*aa, &b| simulation.send symbol, *aa, &b end end end end - + # Necessary to overcome the protected character of the listed methods. # [ :node, :place, :transition