Sha256: 9f3fbb9d5fc22d6cef99f73d27ce174a05c232077e6bdd1714d7024cf070ad47
Contents?: true
Size: 725 Bytes
Versions: 5
Compression:
Stored size: 725 Bytes
Contents
#encoding: utf-8 # A mixin for timed transition representations. # class YPetri::Simulation::TransitionRepresentation module Type_t include Type_a # False for timed transitions. # def T? false end alias timed? T? # True for timed transitions. # def t? true end alias timeless? t? # Initialization subroutine. # def init super @function = source.action_closure end # Change, as it would happen if the transition fired, returned as hash # codomain places >> change. # def d delta.with_keys do |p| p.name || p end end end # Type_t end # class YPetri::Simulation::TransitionRepresentation
Version data entries
5 entries across 5 versions & 1 rubygems