Class MeasuringPointSelectionWizardModel
java.lang.Object
org.palladiosimulator.measurementsui.wizardmodel.pages.MeasuringPointSelectionWizardModel
- All Implemented Interfaces:
WizardModel
-
Constructor Summary
ConstructorsConstructorDescriptionMeasuringPointSelectionWizardModel(org.palladiosimulator.monitorrepository.Monitor monitor, boolean isEditing) -
Method Summary
Modifier and TypeMethodDescriptionaddOnlyFilledLists(List<Object> fillerList, List<?> modelList) helper class to filter out empty model listsbooleanchecks whether the monitor repository and measuringpoint of a monitor is set.voidcreateMeasuringPoint(Object model) checks which element from the measuringpoint wizard is selected, creates the corresponding measuring point and adds it to the monitorObject[]returns all objects which are needed in the second step of the creation of a measuring point.Object[]returns all objects which are needed to be presented in the first step of the creation of a measuring pointReturns all models, which are needed for the hierarchical view in the measuring point selection wizard pagegetter for the selection of the second step in the creation of a measuring pointgetter for the selection of the first step in the creation of a measuring pointgetter for the selection of the third step in the creation of a measuring pointObject[]retrieves all measuring points, which exist and casts them to an object array for the treeviewerreturns the info text of the wizard pageorg.palladiosimulator.monitorrepository.Monitorgetter for the monitor the measuring point needs to be added toiterates over all repositories and returns all operation signaturesreturns the title text of the wizard pagebooleanindicates whether the wizard is in editing mode or notbooleanindicates whether the wizard model is complete, so the wizard can finishvoidsetCurrentSecondStageModel(Object currentSecondStageModel) setter for the selection of the second step in the creation of a measuring pointvoidsetCurrentSelection(Object current) setter for the selection of the first step in the creation of a measuring pointvoidsetCurrentThirdStageModel(Object currentThirdStageModel) setter for the selection of the third step in the creation of a measuring pointvoidsetEditing(boolean isEditing) sets the wizard models editing flag, true means it is in editing modevoidsetFinishable(boolean finishable) sets the wizard model to finishable, if true, the wizard can perform the finish operationsvoidsetMeasuringPointDependingOnEditMode(org.palladiosimulator.edp2.models.measuringpoint.MeasuringPoint measuringPoint) voidsetMonitor(org.palladiosimulator.monitorrepository.Monitor monitor) setter for the monitor the measuring point needs to be added to
-
Constructor Details
-
MeasuringPointSelectionWizardModel
public MeasuringPointSelectionWizardModel(org.palladiosimulator.monitorrepository.Monitor monitor, boolean isEditing) - Parameters:
monitor- the monitor with which the model should be initializedisEditing- indicates, whether it is in edit mode or not
-
-
Method Details
-
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:
canFinishin interfaceWizardModel- Returns:
- true if all necessary attributes are set in order to finish
-
getInfoText
returns the info text of the wizard page- Specified by:
getInfoTextin interfaceWizardModel- Returns:
- an info text based on the changes made in the model.
-
getTitleText
returns the title text of the wizard page- Specified by:
getTitleTextin interfaceWizardModel- 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
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
returns all objects which are needed to be presented in the first step of the creation of a measuring point- Returns:
- 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
helper class to filter out empty model lists- Parameters:
fillerList- the list of all the lists of models required for the second wizard pagemodelList- the list with all the models of a type- Returns:
- List
-
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
Returns all models, which are needed for the hierarchical view in the measuring point selection wizard page- Returns:
- list of all possible models
-
getSignatures
iterates over all repositories and returns all operation signatures- Returns:
- List
-
getCurrentSelection
getter for the selection of the first step in the creation of a measuring point- Returns:
- Object
-
setCurrentSelection
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
getter for the selection of the second step in the creation of a measuring point- Returns:
- Object
-
setCurrentSecondStageModel
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
getter for the selection of the third step in the creation of a measuring point- Returns:
- Object
-
setCurrentThirdStageModel
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
-