Class: Syskit::Actions::Profile::Definition

Inherits:
ProfileInstanceRequirements show all
Defined in:
lib/syskit/actions/profile.rb

Instance Attribute Summary

Attributes inherited from ProfileInstanceRequirements

#profile

Attributes inherited from InstanceRequirements

#arguments, #base_model, #deployment_group, #deployment_hints, #dynamics, #model, #name, #required_host, #specialization_hints, #template

Instance Method Summary collapse

Methods inherited from ProfileInstanceRequirements

#advanced=, #advanced?, #initialize, #rebind

Methods inherited from InstanceRequirements

#==, #abstract, #abstract?, #add_models, #add_port_period, #as, #as_plan, #as_real_model, #as_real_model!, #bind, #can_use_template=, #can_use_template?, #component_model, #component_model?, #composition_model?, #compute_template, #create_proxy_task, #do_copy, #each_child, #each_fullfilled_model, #each_input_port, #each_output_port, #each_port, #each_required_model, #each_required_service_model, #eql?, #find_all_data_services_from_type, #find_child, #find_data_service, #find_data_service_from_type, #find_input_port, #find_output_port, #find_port, #find_port_dynamics, #find_through_method_missing, from_object, #fullfilled_model, #fullfills?, #has_child?, #has_data_service?, #has_port?, #has_template?, #has_through_method_missing?, #hash, #if_already_present, #initialize, #initialize_copy, #instanciate, #instanciate_from_template, #invalidate_dependency_injection, #invalidate_template, #map_use_selections!, #merge, #narrow_model, #not_abstract, #on_server, #period, #placeholder_model, #plain?, #port_by_name, #post_instanciation_setup, #prefer_deployed_tasks, #prefer_specializations, #pretty_print, #push_dependency_injection, #push_selections, #reset_deployment_selection, #resolved_dependency_injection, #select_service, #selected_for, #self_port_to_component_port, #service, #simplest_model_representation, #specialize, #to_action, #to_component_model, #to_coordination_task, #to_instance_requirements, #to_s, #try_bind, #try_resolve, #unselect_service, #use, #use_conf, #use_configured_deployment, #use_deployment, #use_deployment_group, #with_arguments, #with_conf, #with_no_arguments

Constructor Details

This class inherits a constructor from Syskit::Actions::Profile::ProfileInstanceRequirements

Instance Method Details

#resolveObject



61
62
63
64
65
66
67
68
# File 'lib/syskit/actions/profile.rb', line 61

def resolve
    result = ProfileInstanceRequirements.new(profile, name, advanced: advanced?)
    result.merge(self)
    result.name = name
    profile.inject_di_context(result)
    result.doc(doc)
    result
end

#to_action_model(profile = self.profile, doc = self.doc) ⇒ Object



57
58
59
# File 'lib/syskit/actions/profile.rb', line 57

def to_action_model(profile = self.profile, doc = self.doc)
    resolve.to_action_model(profile, doc || "defined in #{profile}")
end