Class 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 Detail

      • BranchStateHandler

        public BranchStateHandler()
    • Method Detail

      • 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 interface StateHandler
        Specified by:
        patchModelWith in class GenericStateHandler
        Parameters:
        models - the models which are uses by one of the StateHandlers
        variationPoint - the current VariationPoint
        variationIdx - 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 VariationPoint
        variationIdx - 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