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

public abstract class StateSensorToPieAdapter extends DataAdapter
Deprecated.
Superseded by EDP2.
Provides an adapter that allows to convert StateSensors to Pies.
  • Field Details

    • samInformation

      protected SensorAndMeasurements samInformation
      Deprecated.
      Information about the StateSensor and the measurements.
  • Constructor Details

    • StateSensorToPieAdapter

      protected StateSensorToPieAdapter(SensorAndMeasurements samInformation)
      Deprecated.
      Initializes the adapter with the given StateSensor measurements.
      Parameters:
      samInformation - Information about the StateSensor and the measurements.
  • Method Details

    • getAdaptedObject

      public Object getAdaptedObject()
      Deprecated.
      Return the computed visualisation data structure, e.g., a time series, a histogram, etc.
      Returns:
      The adapted object
    • calculateFractions

      protected abstract double calculateFractions(HashMap<String,Double> fractions)
      Deprecated.
      Calculates the fractions of the pie chart to create.
      Parameters:
      fractions - the fractions to calculate
      Returns:
      the sum of all fractions
    • instantiatePie

      protected abstract AbstractPie instantiatePie(String sensorName)
      Deprecated.
      Instantiates a Pie object.
      Parameters:
      sensorName - the sensor name
      Returns:
      the Pie object