Class: Roby::Coordination::FaultHandler
- Inherits:
-
ActionScript
- Object
- Base
- Actions
- ActionScript
- Roby::Coordination::FaultHandler
- Extended by:
- Models::FaultHandler
- Defined in:
- lib/roby/coordination/fault_handler.rb
Constant Summary
Constants included from Script
Instance Attribute Summary
Attributes included from Models::Actions
Attributes included from Models::Base
Attributes inherited from ActionScript
#current_instruction, #instructions
Attributes included from Script
#current_instruction, #instructions
Attributes inherited from Actions
#current_task, #resolved_captures, #task_info
Attributes inherited from Base
#arguments, #instances, #parent
Instance Method Summary collapse
Methods included from Models::FaultHandler
__carry_on, action, activate, carry_on, carry_on?, execution_exception_matcher, fault_response_table, find_response_locations, locate_on_actions, locate_on_missions, locate_on_origin, priority, replace_by, response_location, try_again, try_again?
Methods included from Models::Script
#add, #call, #emit, #execute, #instructions, #sleep, #start, #terminal, #terminal?, #timeout_start, #timeout_stop, #wait
Methods included from Models::Actions
#dependency, #depends_on, #event_active_in_state?, #forward, #from, #from_state, #map_tasks, #method_missing, #parse, #rebind, #required_tasks_for, #respond_to_missing?, #root_event?, #setup_submodel, #toplevel_state?
Methods included from Models::Base
#find_event, #find_task_by_name, #map_tasks, #method_missing, #parse_names, #respond_to_missing?, #setup_submodel, #task, #task_model, #use_fault_response_table, #used_fault_response_table, #validate_event, #validate_or_create_task, #validate_task
Methods included from Models::Arguments
#argument, #validate_arguments
Methods inherited from ActionScript
Methods included from Models::ActionScript
#method_missing, #respond_to_missing?
Methods included from Script
#dependency_options_for, #finished?, #jump_to, #prepare, #resolve_instructions
Methods inherited from Actions
#action_interface_model, #dependency_options_for, #initialize, #remove_current_task, #resolve_task_info, #start_task, #task_info_for
Methods inherited from Base
#attach_fault_response_tables_to, #bind_coordination_task_to_instance, #initialize, #instance_for, #model, #plan, #root_task
Constructor Details
This class inherits a constructor from Roby::Coordination::ActionScript
Instance Method Details
#step ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/roby/coordination/fault_handler.rb', line 8 def step super return unless finished? return unless model.carry_on? response_task = self.root_task plan = response_task.plan response_task.each_parent_object(Roby::TaskStructure::ErrorHandling) do |repaired_task| plan.replan(repaired_task) end response_task.success_event.emit end |
#to_s ⇒ Object
22 23 24 |
# File 'lib/roby/coordination/fault_handler.rb', line 22 def to_s "#{self.class}/#{root_task}" end |