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.2.4 lib/y_petri/simulation/feature_set.rb
y_petri-2.2.3 lib/y_petri/simulation/feature_set.rb
y_petri-2.2.2 lib/y_petri/simulation/feature_set.rb
y_petri-2.2.1 lib/y_petri/simulation/feature_set.rb
y_petri-2.2.0 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.51 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.50 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.49 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.48 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.47 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.46 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.45 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.44 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.42 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.40 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.39 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.37 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.36 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.35 lib/y_petri/simulation/feature_set.rb
y_petri-2.1.34 lib/y_petri/simulation/feature_set.rb