Class: YPetri::Simulation::FeatureSet
- Inherits:
-
Object
- Object
- YPetri::Simulation::FeatureSet
- Defined in:
- lib/y_petri/simulation/feature_set.rb
Overview
Represents a set of features of a simulation state.
Instance Attribute Summary collapse
-
#delta ⇒ Object
readonly
Returns the value of attribute delta.
-
#firing ⇒ Object
readonly
Returns the value of attribute firing.
-
#marking ⇒ Object
readonly
Returns the value of attribute marking.
Instance Method Summary collapse
-
#initialize(marking: [], firing: [], delta: { places: [], transitions: [] }) ⇒ FeatureSet
constructor
Initializes the feature set.
Constructor Details
#initialize(marking: [], firing: [], delta: { places: [], transitions: [] }) ⇒ FeatureSet
Initializes the feature set.
15 16 17 18 19 20 21 |
# File 'lib/y_petri/simulation/feature_set.rb', line 15 def initialize marking: [], firing: [], delta: { places: [], transitions: [] } @marking = x @firing = @marking, @firing, @delta = marking, firing, delta end |
Instance Attribute Details
#delta ⇒ Object (readonly)
Returns the value of attribute delta.
11 12 13 |
# File 'lib/y_petri/simulation/feature_set.rb', line 11 def delta @delta end |
#firing ⇒ Object (readonly)
Returns the value of attribute firing.
11 12 13 |
# File 'lib/y_petri/simulation/feature_set.rb', line 11 def firing @firing end |
#marking ⇒ Object (readonly)
Returns the value of attribute marking.
11 12 13 |
# File 'lib/y_petri/simulation/feature_set.rb', line 11 def marking @marking end |