lib/y_petri/net.rb in y_petri-2.0.14 vs lib/y_petri/net.rb in y_petri-2.0.15
- old
+ new
@@ -111,17 +111,17 @@
transitions.all? { |t| t.timed? }
end
# Creates a new simulation from the net.
#
- def new_simulation( **named_args )
- YPetri::Simulation.new **named_args.merge( net: self )
+ def new_simulation( **nn )
+ YPetri::Simulation.new **nn.merge( net: self )
end
# Creates a new timed simulation from the net.
#
- def new_timed_simulation( **named_args )
- YPetri::TimedSimulation.new **named_args.merge( net: self )
+ def new_timed_simulation( **nn )
+ new_simulation( **nn ).aT &:timed?
end
# Networks are equal when their places and transitions are equal.
#
def == other