Class: YPetri::Simulation::FeatureSet

Inherits:
Object
  • Object
show all
Defined in:
lib/y_petri/simulation/feature_set.rb

Overview

Represents a set of features of a simulation state.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#deltaObject (readonly)

Returns the value of attribute delta.



11
12
13
# File 'lib/y_petri/simulation/feature_set.rb', line 11

def delta
  @delta
end

#firingObject (readonly)

Returns the value of attribute firing.



11
12
13
# File 'lib/y_petri/simulation/feature_set.rb', line 11

def firing
  @firing
end

#markingObject (readonly)

Returns the value of attribute marking.



11
12
13
# File 'lib/y_petri/simulation/feature_set.rb', line 11

def marking
  @marking
end