Class: Roby::Coordination::Models::Root

Inherits:
Task show all
Defined in:
lib/roby/coordination/models/root.rb

Overview

The root task in the execution context

Instance Attribute Summary collapse

Attributes inherited from Task

#task

Attributes inherited from TaskBase

#execution_context, #model

Instance Method Summary collapse

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_modelObject

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