Class: Roby::Coordination::Models::FaultHandler::FinalizeReplacement

Inherits:
ScriptInstruction show all
Defined in:
lib/roby/coordination/models/fault_handler.rb

Instance Method Summary collapse

Methods inherited from ScriptInstruction

#cancel

Instance Method Details

#execute(fault_handler) ⇒ Object



118
119
120
121
122
123
124
125
126
# File 'lib/roby/coordination/models/fault_handler.rb', line 118

def execute(fault_handler)
    response_task = fault_handler.root_task
    response_task.each_parent_object(Roby::TaskStructure::ErrorHandling) do |repaired_task|
        repaired_task_parents = repaired_task.each_parent_task.to_a
        repaired_task_parents.each do |parent|
            parent.remove_child repaired_task
        end
    end
end

#new(fault_handler) ⇒ Object



114
115
116
# File 'lib/roby/coordination/models/fault_handler.rb', line 114

def new(fault_handler)
    self
end