Sha256: 263c3b460d997dc1b5479ce3cab41ebedff62f86edbcc5b97a6bdc896125b022
Contents?: true
Size: 593 Bytes
Versions: 2
Compression:
Stored size: 593 Bytes
Contents
# encoding: utf-8 # Representation of a YPetri::Place inside a YPetri::Simulation instance. # class YPetri::Simulation::NodeRepresentation ★ NameMagic ★ YPetri::Simulation::Dependency attr_reader :source # source place delegate :simulation, to: "self.class" # Expect a single YPetri place as an argument. # def initialize net_node_id @source = net.node( net_node_id ) end # Tweak the #to_s method to give the node representations the inspect string # of type #<Name>. # def to_s "#<#{super}>" end end # class YPetri::Simulation::NodeRepresentation
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
y_petri-2.3.3 | lib/y_petri/simulation/node_representation.rb |
y_petri-2.3.2 | lib/y_petri/simulation/node_representation.rb |