Class: Roby::Coordination::Models::Root
- Defined in:
- lib/roby/coordination/models/root.rb
Overview
The root task in the execution context
Instance Attribute Summary collapse
-
#coordination_model ⇒ Object
Returns the value of attribute coordination_model.
Attributes inherited from Task
Attributes inherited from TaskBase
Instance Method Summary collapse
-
#initialize(model, coordination_model) ⇒ Root
constructor
A new instance of Root.
- #rebind(coordination_model) ⇒ Object
Methods inherited from Task
#bind, #name, #resolve, #root_task, #to_s
Methods inherited from TaskBase
#find_child, #find_event, #find_through_method_missing, #has_through_method_missing?, #resolve, #to_coordination_task
Constructor Details
#initialize(model, coordination_model) ⇒ Root
Returns a new instance of Root.
10 11 12 13 |
# File 'lib/roby/coordination/models/root.rb', line 10 def initialize(model, coordination_model) super(model) @coordination_model = coordination_model end |
Instance Attribute Details
#coordination_model ⇒ Object
Returns the value of attribute coordination_model.
8 9 10 |
# File 'lib/roby/coordination/models/root.rb', line 8 def coordination_model @coordination_model end |
Instance Method Details
#rebind(coordination_model) ⇒ Object
15 16 17 18 19 |
# File 'lib/roby/coordination/models/root.rb', line 15 def rebind(coordination_model) m = super m.coordination_model = coordination_model m end |