Class MeasuringPointSelectionWizardModel

    • Constructor Detail

      • MeasuringPointSelectionWizardModel

        public MeasuringPointSelectionWizardModel​(org.palladiosimulator.monitorrepository.Monitor monitor,
                                                  boolean isEditing)
        Parameters:
        monitor - the monitor with which the model should be initialized
        isEditing - indicates, whether it is in edit mode or not
    • Method Detail

      • canFinish

        public boolean canFinish()
        checks whether the monitor repository and measuringpoint of a monitor is set. If this is the case the wizard can be finished
        Specified by:
        canFinish in interface WizardModel
        Returns:
        true if all necessary attributes are set in order to finish
      • getInfoText

        public String getInfoText()
        returns the info text of the wizard page
        Specified by:
        getInfoText in interface WizardModel
        Returns:
        an info text based on the changes made in the model.
      • getTitleText

        public String getTitleText()
        returns the title text of the wizard page
        Specified by:
        getTitleText in interface WizardModel
        Returns:
        the title of the wizard page
      • setMeasuringPointDependingOnEditMode

        public void setMeasuringPointDependingOnEditMode​(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint)
        Parameters:
        measuringPoint - the measuringpoint which needs to be added to the monitor
      • createMeasuringPoint

        public void createMeasuringPoint​(Object model)
        checks which element from the measuringpoint wizard is selected, creates the corresponding measuring point and adds it to the monitor
        Parameters:
        model - the model, which indicates which measuringpoint needs to be created
      • getAllSecondPageObjects

        public Object[] getAllSecondPageObjects()
        returns all objects which are needed to be presented in the first step of the creation of a measuring point
        Returns:
        Object[]
      • getExistingMeasuringPoints

        public Object[] getExistingMeasuringPoints()
        retrieves all measuring points, which exist and casts them to an object array for the treeviewer
        Returns:
        array of all existing measuring points
      • addOnlyFilledLists

        public List<Object> addOnlyFilledLists​(List<Object> fillerList,
                                               List<?> modelList)
        helper class to filter out empty model lists
        Parameters:
        fillerList - the list of all the lists of models required for the second wizard page
        modelList - the list with all the models of a type
        Returns:
        List
      • getAllAdditionalModels

        public Object[] getAllAdditionalModels()
        returns all objects which are needed in the second step of the creation of a measuring point. It differentiates between the different models of the first step to return the corresponding models
        Returns:
        Object[]
      • getAlternativeModels

        public List<Object> getAlternativeModels()
        Returns all models, which are needed for the hierarchical view in the measuring point selection wizard page
        Returns:
        list of all possible models
      • getSignatures

        public List<EObject> getSignatures()
        iterates over all repositories and returns all operation signatures
        Returns:
        List
      • getCurrentSelection

        public Object getCurrentSelection()
        getter for the selection of the first step in the creation of a measuring point
        Returns:
        Object
      • setCurrentSelection

        public void setCurrentSelection​(Object current)
        setter for the selection of the first step in the creation of a measuring point
        Parameters:
        current - the current object selected in the tree
      • getMonitor

        public org.palladiosimulator.monitorrepository.Monitor getMonitor()
        getter for the monitor the measuring point needs to be added to
        Returns:
        Monitor
      • setMonitor

        public void setMonitor​(org.palladiosimulator.monitorrepository.Monitor monitor)
        setter for the monitor the measuring point needs to be added to
        Parameters:
        monitor - the monitor the wizard operates on
      • getCurrentSecondStageModel

        public Object getCurrentSecondStageModel()
        getter for the selection of the second step in the creation of a measuring point
        Returns:
        Object
      • setCurrentSecondStageModel

        public void setCurrentSecondStageModel​(Object currentSecondStageModel)
        setter for the selection of the second step in the creation of a measuring point
        Parameters:
        currentSecondStageModel - the current secondary model selected in the measuring point wizard
      • getCurrentThirdStageModel

        public Object getCurrentThirdStageModel()
        getter for the selection of the third step in the creation of a measuring point
        Returns:
        Object
      • setCurrentThirdStageModel

        public void setCurrentThirdStageModel​(Object currentThirdStageModel)
        setter for the selection of the third step in the creation of a measuring point
        Parameters:
        currentThirdStageModel - the current third model selected in the measuring point wizard
      • isFinishable

        public boolean isFinishable()
        indicates whether the wizard model is complete, so the wizard can finish
        Returns:
        boolean
      • setFinishable

        public void setFinishable​(boolean finishable)
        sets the wizard model to finishable, if true, the wizard can perform the finish operations
        Parameters:
        finishable - boolean indicating whether finish operations of wizard can be performed or not
      • isEditing

        public boolean isEditing()
        indicates whether the wizard is in editing mode or not
        Returns:
        boolean
      • setEditing

        public void setEditing​(boolean isEditing)
        sets the wizard models editing flag, true means it is in editing mode
        Parameters:
        isEditing - flag for editing mode