Class SLOViewsWizard
java.lang.Object
org.eclipse.jface.wizard.Wizard
org.palladiosimulator.servicelevelobjective.edp2.visualization.wizards.SLOViewsWizard
- All Implemented Interfaces:
IShellProvider
,IWizard
,INewWizard
,IWorkbenchWizard
A wizard which is opened upon double clicking an experiment run or a measurement.
If the wizard is started by double clicking a measurement, the user is prompted to select either
a visualization for the raw data or a corresponding service level objective (SLO) fulfillment
report visualization. If the user selects a SLO visualization, a repository containing available
SLO has to be imported and an SLO applicable to the metric description of the selected
measurements has to be chosen. Next the thresholds of the SLO need to be specified. Then the
chosen SLO fulfillment report is generated.
If the wizard is started by double clicking an experiment run, the user can select an arbitrary
number of measurements, though all selected measurements need to have the same metric type. Next
a repository containing available SLO has to be imported and an SLO applicable to the metric
description of the selected measurements has to be chosen. If more than one measurement was
selected, the user needs to specify how the data are to be aggregated. After the thresholds of
the selected SLO are set the user can chose between available SLO fulfillment report
visualizations. The chosen report is then generated.
-
Field Summary
Fields inherited from class org.eclipse.jface.wizard.Wizard
DEFAULT_IMAGE
-
Constructor Summary
ConstructorDescriptionConstructor.SLOViewsWizard
(List<org.palladiosimulator.edp2.visualization.jfreechart.input.JFreeChartVisualizationSingleDatastreamInput> inputs) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addPages()
boolean
canAccept
(org.palladiosimulator.edp2.datastream.IDataSource source) Method checking whether a source is a two dimensional data source with a metric using real or integer values.boolean
double[][]
getNextPage
(IWizardPage currentPage) org.palladiosimulator.edp2.datastream.chaindescription.ChainDescription
List<org.palladiosimulator.edp2.models.ExperimentData.Measurement>
double
void
init
(IWorkbench workbench, IStructuredSelection selection) boolean
void
setAggregatedData
(double[][] aggregatedData) void
setAvailableSLOs
(List<ServiceLevelObjective> availableSLOs) void
setFinishable
(boolean finishable) void
setMeasuringPointLabel
(String label) void
setSelectedDefault
(org.palladiosimulator.edp2.datastream.chaindescription.ChainDescription selectedDefault) void
setSelectedMeasurements
(List<org.palladiosimulator.edp2.models.ExperimentData.Measurement> selectedMeasurements) void
setSelectedSLO
(ServiceLevelObjective selectedSLO) void
setSelectedTimestepInterval
(double selectedTimestepInterval) Methods inherited from class org.eclipse.jface.wizard.Wizard
addPage, createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getShell, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer, setDefaultPageImageDescriptor, setDialogSettings, setForcePreviousAndNextButtons, setHelpAvailable, setNeedsProgressMonitor, setTitleBarColor, setWindowTitle
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.jface.wizard.IWizard
createPageControls, dispose, getContainer, getDefaultPageImage, getDialogSettings, getPage, getPageCount, getPages, getPreviousPage, getStartingPage, getTitleBarColor, getWindowTitle, isHelpAvailable, needsPreviousAndNextButtons, needsProgressMonitor, performCancel, setContainer
-
Constructor Details
-
SLOViewsWizard
public SLOViewsWizard()Constructor. Used if the wizard is started from double clicking on an experiment run.- Parameters:
experimentRun
- The double clicked experiment run containing the measuring points.
-
SLOViewsWizard
public SLOViewsWizard(List<org.palladiosimulator.edp2.visualization.jfreechart.input.JFreeChartVisualizationSingleDatastreamInput> inputs)
-
-
Method Details
-
init
- Specified by:
init
in interfaceIWorkbenchWizard
-
performFinish
public boolean performFinish()- Specified by:
performFinish
in interfaceIWizard
- Specified by:
performFinish
in classWizard
-
addPages
public void addPages() -
getNextPage
- Specified by:
getNextPage
in interfaceIWizard
- Overrides:
getNextPage
in classWizard
-
canAccept
public boolean canAccept(org.palladiosimulator.edp2.datastream.IDataSource source) Method checking whether a source is a two dimensional data source with a metric using real or integer values. If not, false is returned.- Parameters:
source
- The source to check.- Returns:
-
canFinish
public boolean canFinish() -
setFinishable
public void setFinishable(boolean finishable) -
getSelectedMeasurements
-
setSelectedMeasurements
public void setSelectedMeasurements(List<org.palladiosimulator.edp2.models.ExperimentData.Measurement> selectedMeasurements) -
getSelectedSLO
-
setSelectedSLO
-
getSelectedDefault
public org.palladiosimulator.edp2.datastream.chaindescription.ChainDescription getSelectedDefault() -
setSelectedDefault
public void setSelectedDefault(org.palladiosimulator.edp2.datastream.chaindescription.ChainDescription selectedDefault) -
getAvailableSLOs
-
setAvailableSLOs
-
setAggregatedData
public void setAggregatedData(double[][] aggregatedData) -
getAggregatedData
public double[][] getAggregatedData() -
getSelectedTimestepInterval
public double getSelectedTimestepInterval() -
setSelectedTimestepInterval
public void setSelectedTimestepInterval(double selectedTimestepInterval) -
setMeasuringPointLabel
-
getMeasuringPointLabel
-