Module: YPetri::Simulation::Places::Types

Defined in:
lib/y_petri/simulation/places/types.rb

Instance Method Summary collapse

Instance Method Details

#clampedObject

Subset of clamped places, if any.



20
21
22
23
24
# File 'lib/y_petri/simulation/places/types.rb', line 20

def clamped
  ( @Type_clamped ||= Class.new self.class do
      include Type_clamped
    end ).load subset( &:clamped? )
end

#freeObject

Subset of free places, if any.



12
13
14
15
16
# File 'lib/y_petri/simulation/places/types.rb', line 12

def free
  ( @Type_free ||= Class.new self.class do
      include Type_free
    end ).load subset( &:free? )
end