Interface StateHandler
-
- All Known Implementing Classes:
AllocationStateHandler
,AssemblyStateHandler
,BranchStateHandler
,CharacteristicsStateHandler
,GenericStateHandler
public interface StateHandler
StateHandler describes an implementation of the StateHandler for sizing and patching the variation space of a VariationPoint.
-
-
Method Summary
All Methods Instance Methods Abstract 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.
-
-
-
Method Detail
-
getSizeOfDimension
int getSizeOfDimension(VariationPoint variationPoint)
computes and return the size of a VariationPoints variation space.- Parameters:
variationPoint
- the current VariationPoint- Returns:
- the computed size of the variation space
-
getModelTypes
List<String> getModelTypes()
returns a list of models which the StateHandler uses.- Returns:
- list of the names of the used models. It is never empty.
-
patchModelWith
void patchModelWith(Map<String,List<EObject>> models, VariationPoint variationPoint, int variationIdx)
patches the models with a VariationPoint's variationIdx variation.- Parameters:
models
- the models which are uses by one of the StateHandlersvariationPoint
- the current VariationPointvariationIdx
- the current position in the VariationPoints variation space
-
getValue
String getValue(VariationPoint variationPoint, int variationIdx)
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
-
-