Sha256: dde1fe56e2010491ddcb358ab73577bb3d661a97534cfe76bed4a6cc718ba942

Contents?: true

Size: 569 Bytes

Versions: 38

Compression:

Stored size: 569 Bytes

Contents

# encoding: utf-8

# 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
    ★ 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

38 entries across 38 versions & 1 rubygems

Version Path
y_petri-2.1.33 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.31 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.30 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.26 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.25 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.24 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.22 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.21 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.20 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.18 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.17 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.16 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.12 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.11 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.10 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.9 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.7 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.6 lib/y_petri/simulation/feature_set.rb