Exception: Syskit::AmbiguousServiceMapping
- Inherits:
-
AmbiguousServiceSelection
- Object
- RuntimeError
- SpecError
- Ambiguous
- AmbiguousServiceSelection
- Syskit::AmbiguousServiceMapping
- Defined in:
- lib/syskit/exceptions.rb
Overview
Exception raised in composition instanciations if a selected component model provides multipe services that fullfills a child's model
Instance Attribute Summary collapse
-
#child_name ⇒ Object
readonly
Returns the value of attribute child_name.
-
#composition_model ⇒ Object
readonly
Returns the value of attribute composition_model.
Attributes inherited from AmbiguousServiceSelection
#candidates, #required_service, #task_model
Instance Method Summary collapse
-
#initialize(composition_model, child_name, task_model, required_service, candidates) ⇒ AmbiguousServiceMapping
constructor
A new instance of AmbiguousServiceMapping.
- #pretty_print(pp) ⇒ Object
Constructor Details
#initialize(composition_model, child_name, task_model, required_service, candidates) ⇒ AmbiguousServiceMapping
Returns a new instance of AmbiguousServiceMapping
237 238 239 240 241 |
# File 'lib/syskit/exceptions.rb', line 237 def initialize(composition_model, child_name, task_model, required_service, candidates) super(task_model, required_service, candidates) @composition_model, @child_name = composition_model, child_name end |
Instance Attribute Details
#child_name ⇒ Object (readonly)
Returns the value of attribute child_name
235 236 237 |
# File 'lib/syskit/exceptions.rb', line 235 def child_name @child_name end |
#composition_model ⇒ Object (readonly)
Returns the value of attribute composition_model
234 235 236 |
# File 'lib/syskit/exceptions.rb', line 234 def composition_model @composition_model end |
Instance Method Details
#pretty_print(pp) ⇒ Object
243 244 245 246 247 |
# File 'lib/syskit/exceptions.rb', line 243 def pretty_print(pp) pp.text "while trying to fullfill the constraints on the child #{child_name} of #{composition_model.short_name}" pp.breakable super end |