class Roby::Coordination::Task
Representation of a toplevel task in an execution context instance
Attributes
task[R]
@return [nil,Roby::Task] the actual Roby
task this is
representing
Public Class Methods
new(execution_context, model)
click to toggle source
Calls superclass method
# File lib/roby/coordination/task.rb, line 9 def initialize(execution_context, model) super(execution_context, model) @task = nil end
Public Instance Methods
bind(task)
click to toggle source
Associate this coordination task to the given roby task
This sets the next value returned by resolve
@param [Roby::Task] task
# File lib/roby/coordination/task.rb, line 23 def bind(task) @task = task end
name()
click to toggle source
# File lib/roby/coordination/task.rb, line 37 def name model.name end
resolve()
click to toggle source
Resolves this to the actual task object
@return [Roby::Task] @raise ResolvingUnboundObject
# File lib/roby/coordination/task.rb, line 31 def resolve if task then task else raise ResolvingUnboundObject, "trying to resolve #{self}, which is not (yet) bound" end end
root_task()
click to toggle source
# File lib/roby/coordination/task.rb, line 14 def root_task self end
to_s()
click to toggle source
# File lib/roby/coordination/task.rb, line 41 def to_s; "Task[#{model.model}]" end