Module: YPetri::Simulation::Timeless

Defined in:
lib/y_petri/simulation/timeless.rb,
lib/y_petri/simulation/timeless/recorder.rb

Overview

A mixin for timeless simulations.

Defined Under Namespace

Classes: Recorder

Instance Method Summary collapse

Instance Method Details

#set_simulation_methodObject

Changing the simulation method on the fly not supported.



16
17
18
# File 'lib/y_petri/simulation/timeless.rb', line 16

def set_simulation_method
  fail NoMethodError, "Changing simulation method on the fly not supported!"
end

#timed?Boolean

False for timeless simulations.

Returns:

  • (Boolean)


10
11
12
# File 'lib/y_petri/simulation/timeless.rb', line 10

def timed?
  false
end