lib/y_petri/transition.rb in y_petri-2.2.4 vs lib/y_petri/transition.rb in y_petri-2.3.2

- old
+ new

@@ -51,10 +51,11 @@ # # 1. *Timedness*: _timed_ (*T*) / _timeless_ (*t*) # 2. *Stoichiometricity*: _stoichiometric_ (*S*) / _nonstoichiometric_ (*s*) # # ==== Timedness + # # * Timed transitions have _rate_ _closure_, whose result is to be multiplied # by +Δtime+. # * Timeless transitions have _action_ _closure_, whose result does not need # to be multiplied by time. @@ -166,11 +167,11 @@ extend( if timed? then Type_T elsif assignment_action? then Type_A else Type_t end ) inform_upstream_places # that they have been connected inform_downstream_places # that they have been connected - uncock # initialize in the uncocked state + uncock # initialize in uncocked state end # Domain, or 'upstream arcs', is a collection of places, whose marking # directly affects the transition's action. # @@ -265,21 +266,17 @@ # remove_force_enabled # remove_clamp # return self # end - # Inspect string for a transition. - # - def inspect - to_s - end + # Let's just leave this to NameMagic - # Conversion to a string. - # - def to_s - "#<Transition: %s>" % - "#{'%s ' % name if name}(#{type})#{' id:%s' % object_id unless name}" - end + # # Conversion to a string. + # # + # def to_s + # "#<Transition: %s>" % + # "#{'%s ' % name if name}(#{type})#{' id:%s' % object_id unless name}" + # end def place id super rescue Place().instance( id ) end