class Roby::Coordination::Child
Representation of the context's root task
Attributes
parent[R]
@return [Coordination::Task] this child's parent
Public Class Methods
new(execution_context, model)
click to toggle source
Calls superclass method
# File lib/roby/coordination/child.rb, line 12 def initialize(execution_context, model) super @parent = execution_context.instance_for(model.parent) end
Public Instance Methods
resolve()
click to toggle source
# File lib/roby/coordination/child.rb, line 17 def resolve if result = parent.resolve.find_child_from_role(model.role) result else raise ResolvingUnboundObject, "#{parent.resolve}, resolved from #{parent} has not child named #{model.role}" end end
root_task()
click to toggle source
# File lib/roby/coordination/child.rb, line 8 def root_task parent end
to_s()
click to toggle source
# File lib/roby/coordination/child.rb, line 24 def to_s; "#{parent}.#{model.role}_child[#{model.model}]" end