Sha256: 17dfe64f27ac8f6c837cf24e5f5a054709136afe863a11b84a67bb2f69e05328

Contents?: true

Size: 554 Bytes

Versions: 1

Compression:

Stored size: 554 Bytes

Contents

# Basic elements of a simulation, a mixin intended for YPetri::Simulation.
#
class YPetri::Simulation
  # Represents a set of features of a simulation state.
  # 
  class FeatureSet
    include DependencyInjection

    attr_reader :marking, :firing, :delta

    # Initializes the feature set.
    # 
    def initialize marking: [], firing: [],
                   delta: { places: [], transitions: [] }
      @marking = x

      @firing = 
      @marking, @firing, @delta = marking, firing, delta
    end
  end # class FeatureSet
end # YPetri::Simulation

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
y_petri-2.1.3 lib/y_petri/simulation/feature_set.rb