Class: Roby::Coordination::ActionScript
- Extended by:
- Models::ActionScript
- Includes:
- Script
- Defined in:
- lib/roby/coordination/action_script.rb
Direct Known Subclasses
Constant Summary
Constants included from Script
Instance Attribute Summary collapse
-
#current_instruction ⇒ Object
readonly
The current instruction.
-
#instructions ⇒ Object
readonly
The list of instructions, instanciated from model.instructions using Base#instance_for.
Attributes included from Models::Actions
Attributes included from Models::Base
Attributes inherited from Actions
#current_task, #resolved_captures, #task_info
Attributes inherited from Base
#arguments, #instances, #parent
Instance Method Summary collapse
-
#initialize(root_task, arguments = {}) ⇒ ActionScript
constructor
A new instance of ActionScript.
Methods included from Models::ActionScript
method_missing, respond_to_missing?
Methods included from Models::Script
#add, #call, #emit, #execute, #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 included from Script
#dependency_options_for, #finished?, #jump_to, #prepare, #resolve_instructions, #step
Methods inherited from Actions
#action_interface_model, #dependency_options_for, #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, #instance_for, #model, #plan, #root_task
Constructor Details
#initialize(root_task, arguments = {}) ⇒ ActionScript
Returns a new instance of ActionScript.
16 17 18 19 20 21 22 23 |
# File 'lib/roby/coordination/action_script.rb', line 16 def initialize(root_task, arguments = {}) super prepare root_task.execute do step end end |
Instance Attribute Details
#current_instruction ⇒ Object (readonly)
The current instruction
14 15 16 |
# File 'lib/roby/coordination/action_script.rb', line 14 def current_instruction @current_instruction end |
#instructions ⇒ Object (readonly)
The list of instructions, instanciated from model.instructions using Base#instance_for
11 12 13 |
# File 'lib/roby/coordination/action_script.rb', line 11 def instructions @instructions end |