Class: Syskit::RubyTaskContext
- Inherits:
-
TaskContext
- Object
- Roby::Task
- Component
- TaskContext
- Syskit::RubyTaskContext
- Defined in:
- lib/syskit/ruby_task_context.rb
Constant Summary
Constants inherited from TaskContext
TaskContext::D_DIFFERENT_HOSTS, TaskContext::D_SAME_HOST, TaskContext::D_SAME_PROCESS
Constants included from Models::Component
Models::Component::PROVIDES_ARGUMENTS
Instance Attribute Summary
Attributes inherited from TaskContext
#last_orogen_state, #orocos_task, #orogen_model, #orogen_state, #properties, #property_overrides, #r tid, #state_reader
Attributes included from Models::TaskContext
#configuration_manager, #extension_file, #orogen_model
Attributes included from Models::Component
Attributes inherited from Component
#dynamics, #required_host, #requirements
Class Method Summary collapse
-
.deployment_model ⇒ Object
Create a deployment model for this RubyTaskContext.
- .input_port(*args, &block) ⇒ Object
- .output_port(*args, &block) ⇒ Object
Methods inherited from TaskContext
#aborted?, #aborted_event, #added_sink, #apply_configuration, #can_be_deployed_by?, #can_finalize?, #can_merge?, #clean_dynamic_port_connections, #clear_property_overrides, #commit_properties, #commit_properties_if_needed, #conf, #conf=, #configure, #create_fresh_copy, #deployment_hints, #distance_to, #distance_to_syskit, #dynamic_input_port_connections, #dynamic_output_port_connections, #each_property, #exception_event, #executable?, #fatal_error_event, #find_property, #find_through_method_missing, #handle_state_changes, #has_property?, #has_through_method_missing?, #in_process?, #initialize, #initialize_remote_handles, #instanciate_dynamic_input_port, #instanciate_dynamic_output_port, #interrupt?, #interrupt_event, #kill_execution_agent_if_alone, #merge, #needs_reconfiguration!, #needs_reconfiguration?, #on_localhost?, #operation, #orocos_name, #orocos_name=, #perform_setup, #prepare_for_setup, #properties_updated?, #properties_updated_event, #property, #queue_property_update_if_needed, #read_current_state, #ready_for_setup?, #ready_to_start!, #removed_sink, #reusable?, #running_event, #runtime_error_event, #self_port_to_orocos_port, #setting_up!, #setup?, #setup_failed!, #setup_successful!, #start?, #start_event, #state_event, #stop?, #stop_event, #stop_orocos_task, #stub!, #tid, #trigger_latency, #update_orogen_state, #updated_sink, #validate_orogen_state_from_rtt_state, #validate_orogen_states=, #validate_orogen_states?, #will_never_setup?, #would_use_property_update?
Methods included from Models::TaskContext
#all_state_event, #apply_block, #clear_registration_as_constant, #define_from_orogen, #each_event_port, #each_state_event, #make_state_events, #merge_service_model, #needs_stub?, #new_submodel, #root_model, #setup_submodel, #state_events, #worstcase_processing_time
Methods included from Models::OrogenBase
#find_model_by_orogen, #find_model_from_orogen_name, #has_model_for?, #model_for
Methods included from Models::PortAccess
#each_input_port, #each_output_port, #each_port, #find_input_port, #find_output_port, #find_port, #find_through_method_missing, #has_dynamic_input_port?, #has_dynamic_output_port?, #has_input_port?, #has_output_port?, #has_port?, #has_through_method_missing?, #port_by_name
Methods included from Models::Component
#all_data_service, #all_dynamic_service, #all_stub_module, #apply_missing_dynamic_services_from, #as, #as_plan, #bind, #can_merge?, #clear_model, #component_model?, #compute_port_mappings, #concrete_model?, #connected?, #create_dynamic_instantiation_context, #create_private_specialization, #create_proxy_task, #create_proxy_task_model, #data_service, #data_services, #deregister_placeholder_model, #deregister_submodels, #driver_for, #dynamic_service, #dynamic_services, #each_com_bus_driver_service, #each_data_service, #each_dynamic_service, #each_input_port, #each_master_driver_service, #each_output_port, #each_port, #each_required_dynamic_service, #each_required_model, #each_root_data_service, #each_slave_data_service, #each_stub_module, #ensure_model_is_specialized, #find_all_data_services_from_type, #find_data_service_from_type, #find_directional_port_mapping, #find_input_port, #find_matching_service, #find_output_port, #find_placeholder_model, #find_port, #find_through_method_missing, #fullfills?, #has_through_method_missing?, #if_already_present, #implicit_fullfilled_model, #instanciate, #instanciate_dynamic_input_port, #instanciate_dynamic_output_port, #merge, #merge_service_model, #method_missing, #needs_stub?, #placeholder?, #port_mappings_for, #port_mappings_for_task, #prefer_deployed_tasks, #prepare_stub, #private_specialization=, #private_specialization?, #promote_data_service, #promote_dynamic_service, #provides, #provides_dynamic, #proxy_task_model, #register_placeholder_model, #require_dynamic_service, #resolve, #selected_for, #self_port?, #self_port_to_component_port, #specialization_counter, #specialize, #stub, #stub_module, #supermodel, #to_component_model, #try_bind, #try_resolve, #use_conf, #use_deployments, #with_arguments, #with_conf, #with_dynamic_service
Methods included from DataService
Methods included from Models::Base
#dependency_injection_names, #pretty_print, #short_name, #to_instance_requirements, #to_s
Methods inherited from Component
#added_dynamic_service, #added_input_port_connection, #added_output_port_connection, #adding_input_port_connection, #adding_output_port_connection, #as, #bind, #can_be_deployed_by?, #can_finalize?, #can_merge?, #concrete_model, #configure, #connect_to, #create_fresh_copy, #data_accessor, #data_reader, #data_writer, #dependency_context, #deployment_hints, #duplicate_missing_services_from, #each_data_service, #each_dynamic_service, #each_fullfilled_model, #each_required_dynamic_service, #find_data_service, #find_data_service_from_type, #find_through_method_missing, #has_data_service?, #has_through_method_missing?, #initialize, #initialize_copy, #meets_configurationg_precedence_constraints?, #merge, #perform_setup, #placeholder?, #ready_for_setup?, #removed_input_port_connection, #removed_output_port_connection, #removing_input_port_connection, #removing_output_port_connection, #require_dynamic_service, #self_port_to_actual_port, #self_port_to_component_port, #setting_up!, #setting_up?, #setup, #setup=, #setup?, #setup_failed!, #setup_successful!, #should_configure_after, #specialize, #specialized_model?, #start_only_when_connected?, #to_instance_requirements, #update_requirements, #will_never_setup?
Methods included from PortAccess
#each_input_port, #each_output_port, #each_port, #find_input_port, #find_output_port, #find_port, #find_through_method_missing, #has_input_port?, #has_output_port?, #has_port?, #has_through_method_missing?
Constructor Details
This class inherits a constructor from Syskit::TaskContext
Class Method Details
.deployment_model ⇒ Object
Create a deployment model for this RubyTaskContext
The deployment is created with a single task named 'task'
14 15 16 17 18 19 |
# File 'lib/syskit/ruby_task_context.rb', line 14 def self.deployment_model orogen_model = self.orogen_model @deployment_model ||= Deployment.new_submodel(name: "Deployment::RubyTasks::#{name}") do task 'task', orogen_model end end |
.input_port(*args, &block) ⇒ Object
3 4 5 |
# File 'lib/syskit/ruby_task_context.rb', line 3 def self.input_port(*args, &block) orogen_model.input_port(*args, &block) end |
.output_port(*args, &block) ⇒ Object
7 8 9 |
# File 'lib/syskit/ruby_task_context.rb', line 7 def self.output_port(*args, &block) orogen_model.output_port(*args, &block) end |