class Roby::Coordination::Models::Child
A representation of a task of the execution context's task
Attributes
model[R]
The child's model
parent[R]
@return [Base,Child] the child's parent
role[R]
@return [String] the child's role, relative to its parent
Public Class Methods
new(parent, role, model)
click to toggle source
# File lib/roby/coordination/models/child.rb, line 13 def initialize(parent, role, model) @parent, @role, @model = parent, role, model end
Public Instance Methods
==(other)
click to toggle source
# File lib/roby/coordination/models/child.rb, line 17 def ==(other) other.kind_of?(Child) && other.parent == parent && other.role == role && other.model == model end
new(execution_context)
click to toggle source
@return [Coordination::Child]
# File lib/roby/coordination/models/child.rb, line 25 def new(execution_context) Coordination::Child.new(execution_context, self) end
to_s()
click to toggle source
# File lib/roby/coordination/models/child.rb, line 29 def to_s; "#{parent}.#{role}_child[#{model}]" end