Class SLOViewsWizard
- java.lang.Object
-
- org.eclipse.jface.wizard.Wizard
-
- org.palladiosimulator.servicelevelobjective.edp2.visualization.wizards.SLOViewsWizard
-
- All Implemented Interfaces:
IShellProvider
,IWizard
,INewWizard
,IWorkbenchWizard
public class SLOViewsWizard extends Wizard implements INewWizard
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
Constructors Constructor Description SLOViewsWizard()
Constructor.SLOViewsWizard(List<org.palladiosimulator.edp2.visualization.jfreechart.input.JFreeChartVisualizationSingleDatastreamInput> inputs)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
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
canFinish()
double[][]
getAggregatedData()
List<ServiceLevelObjective>
getAvailableSLOs()
String
getMeasuringPointLabel()
IWizardPage
getNextPage(IWizardPage currentPage)
org.palladiosimulator.edp2.datastream.chaindescription.ChainDescription
getSelectedDefault()
List<org.palladiosimulator.edp2.models.ExperimentData.Measurement>
getSelectedMeasurements()
ServiceLevelObjective
getSelectedSLO()
double
getSelectedTimestepInterval()
void
init(IWorkbench workbench, IStructuredSelection selection)
boolean
performFinish()
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 Detail
-
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 Detail
-
init
public void init(IWorkbench workbench, IStructuredSelection selection)
- Specified by:
init
in interfaceIWorkbenchWizard
-
performFinish
public boolean performFinish()
- Specified by:
performFinish
in interfaceIWizard
- Specified by:
performFinish
in classWizard
-
addPages
public void addPages()
-
getNextPage
public IWizardPage getNextPage(IWizardPage currentPage)
- 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
public List<org.palladiosimulator.edp2.models.ExperimentData.Measurement> getSelectedMeasurements()
-
setSelectedMeasurements
public void setSelectedMeasurements(List<org.palladiosimulator.edp2.models.ExperimentData.Measurement> selectedMeasurements)
-
getSelectedSLO
public ServiceLevelObjective getSelectedSLO()
-
setSelectedSLO
public void setSelectedSLO(ServiceLevelObjective selectedSLO)
-
getSelectedDefault
public org.palladiosimulator.edp2.datastream.chaindescription.ChainDescription getSelectedDefault()
-
setSelectedDefault
public void setSelectedDefault(org.palladiosimulator.edp2.datastream.chaindescription.ChainDescription selectedDefault)
-
getAvailableSLOs
public List<ServiceLevelObjective> getAvailableSLOs()
-
setAvailableSLOs
public void setAvailableSLOs(List<ServiceLevelObjective> availableSLOs)
-
setAggregatedData
public void setAggregatedData(double[][] aggregatedData)
-
getAggregatedData
public double[][] getAggregatedData()
-
getSelectedTimestepInterval
public double getSelectedTimestepInterval()
-
setSelectedTimestepInterval
public void setSelectedTimestepInterval(double selectedTimestepInterval)
-
setMeasuringPointLabel
public void setMeasuringPointLabel(String label)
-
getMeasuringPointLabel
public String getMeasuringPointLabel()
-
-