Class: Simulator
- Inherits:
-
Object
- Object
- Simulator
- Defined in:
- lib/Yinspire/Core/Scheduling/Simulator.rb,
lib/Yinspire.rb,
lib/Yinspire/Core/Simulator.rb
Overview
Extends class Simulator for methods related to scheduling.
Instance Attribute Summary collapse
-
#entities ⇒ Object
readonly
Returns the value of attribute entities.
Instance Method Summary collapse
-
#initialize ⇒ Simulator
constructor
A new instance of Simulator.
-
#record_fire(at, weight, source) ⇒ Object
Overwrite!.
- #run(stop_at = nil) ⇒ Object
Constructor Details
#initialize ⇒ Simulator
Returns a new instance of Simulator.
28 29 30 |
# File 'lib/Yinspire/Core/Simulator.rb', line 28 def initialize @entities = Hash.new end |
Instance Attribute Details
#entities ⇒ Object (readonly)
Returns the value of attribute entities.
26 27 28 |
# File 'lib/Yinspire/Core/Simulator.rb', line 26 def entities @entities end |
Instance Method Details
#record_fire(at, weight, source) ⇒ Object
Overwrite!
23 24 |
# File 'lib/Yinspire/Core/Simulator.rb', line 23 def record_fire(at, weight, source) end |
#run(stop_at = nil) ⇒ Object
32 33 34 |
# File 'lib/Yinspire/Core/Simulator.rb', line 32 def run(stop_at=nil) schedule_run(stop_at || Infinity) end |