A selection is given by the instance of a variant (alternative or optional) model element and the information whether it is indeed selected (default: isPositive) or not. (The latter is used only for optional elements to denote the branching point of selecting or not selecting the element in a service process. For alternative elements this is not necessary because always one alternative is selected.).
More...
List of all members.
Detailed Description
A selection is given by the instance of a variant (alternative or optional) model element and the information whether it is indeed selected (default: isPositive) or not. (The latter is used only for optional elements to denote the branching point of selecting or not selecting the element in a service process. For alternative elements this is not necessary because always one alternative is selected.).
- Author:
- mgrosse
- Version:
- 0.9.0
- Since:
- 0.9.0
Constructor & Destructor Documentation
de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.Selection |
( |
IGlobalInstance |
theSelectedInstance |
) |
|
constructor, sets the default value isPositive = true
- Parameters:
-
| theSelectedInstance | the model element instance (must be an alternative or an optional element) |
de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.Selection |
( |
IGlobalInstance |
theSelectedInstance, |
|
|
boolean |
sign | |
|
) |
| | |
constructor with a slot for isPositive
- Parameters:
-
| theSelectedInstance | theSelectedInstance the model element instance (must be an alternative or an optional element) |
| sign | true if the element is selected (as in the default case), false if it is a negative selection |
Member Function Documentation
static Collection<ISelection> de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.copySelectionSet |
( |
Collection< ISelection > |
selectionSet |
) |
[static] |
boolean de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.equals |
( |
Object |
obj |
) |
|
static Collection<ISelection> de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.getAllSelections |
( |
IGlobalInstance |
choicePoint |
) |
[static] |
maps an instance that should be an xor-element or an optional element to its possible selections, i.e. all alternatives (xor) or the positive and the negative selection of the model element instance (option)
- Parameters:
-
| choicePoint | the model element instance whose possible selections are sought |
- Returns:
- the collection of all possible selections (xor: all alternatives; option: positive and negative selection)
IGlobalInstance de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.getChoicePoint |
( |
|
) |
|
If the selected instance is an alternative subcomponent instance, the choice point is the corresponding instance of the xor-component the alternative belongs to. If the selected instance is optional, the choice point is the instance itself.
- Returns:
- the xor-instance the alternative instance belongs to, or the instance itself if the instance is optional
- Return values:
-
| null | if the instance is neither an alternative nor optional |
Implements de.fraunhofer.isst.axbench.api.simulation.ISelection.
IGlobalInstance de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.getSelectedInstance |
( |
|
) |
|
int de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.hashCode |
( |
|
) |
|
String de.fraunhofer.isst.axbench.operations.simulator.valuestorage.Selection.toString |
( |
|
) |
|
Member Data Documentation