Class BranchStateHandler
- java.lang.Object
-
- UncertaintyVariationModel.statehandler.GenericStateHandler
-
- org.palladiosimulator.pcm.uncertainty.variation.UncertaintyVariationModel.gen.pcm.statespace.statehandler.pcm.BranchStateHandler
-
- All Implemented Interfaces:
StateHandler
public class BranchStateHandler extends GenericStateHandler
BranchStateHandler handles the state of variation points that vary the Transitions of the BranchActions (SEFF) or Branches (Usage Model) of the palladio component model
-
-
Constructor Summary
Constructors Constructor Description BranchStateHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>
getModelTypes()
returns a list of models which the StateHandler uses.int
getSizeOfDimension(VariationPoint variationPoint)
computes and return the size of a VariationPoints variation space.String
getValue(VariationPoint variationPoint, int variationIdx)
return the value of the variation point corresponding to the variationIdxvoid
patchModelWith(Map<String,List<EObject>> models, VariationPoint variationPoint, int variationIdx)
patches the models with a VariationPoint's variationIdx variation.-
Methods inherited from class UncertaintyVariationModel.statehandler.GenericStateHandler
findInstance, reslove, resolve, resolve, resolve
-
-
-
-
Method Detail
-
getSizeOfDimension
public int getSizeOfDimension(VariationPoint variationPoint)
Description copied from interface:StateHandler
computes and return the size of a VariationPoints variation space.- Specified by:
getSizeOfDimension
in interfaceStateHandler
- Specified by:
getSizeOfDimension
in classGenericStateHandler
- Parameters:
variationPoint
- the current VariationPoint- Returns:
- the computed size of the variation space
-
patchModelWith
public void patchModelWith(Map<String,List<EObject>> models, VariationPoint variationPoint, int variationIdx)
Description copied from interface:StateHandler
patches the models with a VariationPoint's variationIdx variation.- Specified by:
patchModelWith
in interfaceStateHandler
- Specified by:
patchModelWith
in classGenericStateHandler
- Parameters:
models
- the models which are uses by one of the StateHandlersvariationPoint
- the current VariationPointvariationIdx
- the current position in the VariationPoints variation space
-
getModelTypes
public List<String> getModelTypes()
Description copied from interface:StateHandler
returns a list of models which the StateHandler uses.- Returns:
- list of the names of the used models. It is never empty.
-
getValue
public String getValue(VariationPoint variationPoint, int variationIdx)
Description copied from interface:StateHandler
return the value of the variation point corresponding to the variationIdx- Parameters:
variationPoint
- the current VariationPointvariationIdx
- the current position in the VariationPoints variation space- Returns:
- the value as string containing either the name with id of the value, the id of value or the variationIdx based on the variation point description
-
-