Class: YPetri::Core::Timeless
- Inherits:
-
Object
- Object
- YPetri::Core::Timeless
- Defined in:
- lib/y_petri/core/timeless.rb
Overview
Timeless simulator core. Knows thus far only one, but potentially several methods applicable to timeless systems simulations.
Defined Under Namespace
Modules: Basic
Constant Summary collapse
- METHODS =
basic PN execution
{ basic: Basic }
Instance Method Summary collapse
-
#delta ⇒ Object
(also: #Δ)
Computes the system state delta.
-
#initialize(**named_args) ⇒ Timeless
constructor
A new instance of Timeless.
-
#timed? ⇒ Boolean
This inquirer (=Boolean selector) is always false for timeless cores.
-
#timeless? ⇒ Boolean
This inquirer (=Boolean selector) is always true for timeless cores.
Constructor Details
Instance Method Details
#delta ⇒ Object Also known as: Δ
Computes the system state delta.
30 31 32 33 |
# File 'lib/y_petri/core/timeless.rb', line 30 def delta delta_timeless # this method was taken from core.rb # delta_ts + delta_tS # this is the contents of delta_timeless method end |
#timed? ⇒ Boolean
This inquirer (=Boolean selector) is always false for timeless cores.
17 |
# File 'lib/y_petri/core/timeless.rb', line 17 def timed?; false end |
#timeless? ⇒ Boolean
This inquirer (=Boolean selector) is always true for timeless cores.
21 |
# File 'lib/y_petri/core/timeless.rb', line 21 def timeless?; true end |