class Roby::TaskStructure::ConflictError

Class holding conflict error information

Note that it is not an exception as a failed conflict is usually handled by calling failed_to_start! on the newly started task

Attributes

running_tasks[R]
starting_task[R]

Public Class Methods

new(starting_task, running_tasks) click to toggle source
# File lib/roby/task_structure/conflicts.rb, line 82
def initialize(starting_task, running_tasks)
    @starting_task, @running_tasks = starting_task, running_tasks
end

Public Instance Methods

pretty_print(pp) click to toggle source
# File lib/roby/task_structure/conflicts.rb, line 86
def pretty_print(pp)
    pp.text "failed to start "
    starting_task.pretty_print(pp)
    pp.text "because it conflicts with #{running_tasks.size} running tasks"
    pp.nest(2) do
        runnning_tasks.each do |t|
            pp.breakable
            t.pretty_print(pp)
        end
    end
end