class Quartz::Coordinator
- Quartz::Coordinator
- Quartz::Processor
- Reference
- Object
Overview
This class represent a simulator associated with an CoupledModel
,
responsible to route events to proper children
Included Modules
Direct Known Subclasses
Defined in:
quartz/coordinator.crConstructors
-
.new(model : Model, simulation : Simulation)
Returns a new instance of Coordinator
Instance Method Summary
-
#<<(child : Processor)
Append given child to
#children
list, ensuring that the child now has self as parent. - #add_child(child)
- #children : Array(Quartz::Processor)
- #collect_outputs(elapsed : Duration) : Hash(OutputPort, Array(Any))
- #initialize_processor(time : TimePoint) : Tuple(Duration, Duration)
- #inspect(io)
- #perform_transitions(time : TimePoint, elapsed : Duration) : Duration
-
#remove_child(child)
Deletes the specified child from
#children
list
Instance methods inherited from module Quartz::Schedulable
imaginary_phase : Duration
imaginary_phase,
imaginary_phase=(imaginary_phase : Duration)
imaginary_phase=,
imaginary_precision : Scale
imaginary_precision,
imaginary_precision=(imaginary_precision : Scale)
imaginary_precision=,
inspect(io)
inspect,
planned_phase : Duration
planned_phase,
planned_phase=(planned_phase : Duration)
planned_phase=,
planned_precision : Scale
planned_precision,
planned_precision=(planned_precision : Scale)
planned_precision=
Instance methods inherited from class Quartz::Processor
bag : Hash(InputPort, Array(Any))
bag,
bag? : Hash(InputPort, Array(Any)) | Nil
bag?,
collect_outputs(elapsed : Duration) : Hash(OutputPort, Array(Any))
collect_outputs,
initialize_processor(time : TimePoint) : Tuple(Duration, Duration)
initialize_processor,
inspect(io)
inspect,
model : Model
model,
parent : Coordinator | Nil
parent,
parent=(parent : Coordinator | Nil)
parent=,
perform_transitions(time : TimePoint, elapsed : Duration) : Duration
perform_transitions,
sync : Bool
sync,
sync=(sync : Bool)
sync=,
to_s(io)
to_s
Constructor methods inherited from class Quartz::Processor
new(model : Model)
new
Instance methods inherited from class Reference
==(other : Quartz::Any)
==
Instance methods inherited from class Object
===(other : Quartz::Any)
===
Constructor Detail
Returns a new instance of Coordinator
Instance Method Detail
Append given child to #children
list, ensuring that the child now has
self as parent.