Class StateSensorToPieAdapter
java.lang.Object
java.util.Observable
de.uka.ipd.sdq.sensorframework.adapter.DataAdapter
de.uka.ipd.sdq.sensorframework.adapter.StateSensorToPieAdapter
- All Implemented Interfaces:
IAdapter
- Direct Known Subclasses:
StateSensorToFrequencyFailurePieAdapter,StateSensorToFrequencyPieAdapter,StateSensorToTimeDeltaPieAdapter
Deprecated.
Superseded by EDP2.
Provides an adapter that allows to convert StateSensors to Pies.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SensorAndMeasurementsDeprecated.Information about the StateSensor and the measurements.Fields inherited from class de.uka.ipd.sdq.sensorframework.adapter.DataAdapter
adapterProperties, SETTINGS_CHANGED -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedStateSensorToPieAdapter(SensorAndMeasurements samInformation) Deprecated.Initializes the adapter with the given StateSensor measurements. -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract doublecalculateFractions(HashMap<String, Double> fractions) Deprecated.Calculates the fractions of the pie chart to create.Deprecated.Return the computed visualisation data structure, e.g., a time series, a histogram, etc.protected abstract AbstractPieinstantiatePie(String sensorName) Deprecated.Instantiates a Pie object.Methods inherited from class de.uka.ipd.sdq.sensorframework.adapter.DataAdapter
getProperties, setPropertiesMethods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Field Details
-
samInformation
Deprecated.Information about the StateSensor and the measurements.
-
-
Constructor Details
-
StateSensorToPieAdapter
Deprecated.Initializes the adapter with the given StateSensor measurements.- Parameters:
samInformation- Information about the StateSensor and the measurements.
-
-
Method Details
-
getAdaptedObject
Deprecated.Return the computed visualisation data structure, e.g., a time series, a histogram, etc.- Returns:
- The adapted object
-
calculateFractions
Deprecated.Calculates the fractions of the pie chart to create.- Parameters:
fractions- the fractions to calculate- Returns:
- the sum of all fractions
-
instantiatePie
Deprecated.Instantiates a Pie object.- Parameters:
sensorName- the sensor name- Returns:
- the Pie object
-