Interface StateHandler

    • 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 StateHandlers
        variationPoint - the current VariationPoint
        variationIdx - 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 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