java.lang.Object
org.palladiosimulator.servicelevelobjective.edp2.visualization.util.SLODataAggregationMode

public class SLODataAggregationMode extends Object
Class handling the aggregation of data from several Measurements into a double[][] array. Aggregation type is determined by the DataAggregationModeTypes type.
  • Constructor Summary

    Constructors
    Constructor
    Description
    SLODataAggregationMode(org.palladiosimulator.edp2.visualization.util.DataAggregationModeTypes type)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    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.
    double[][]
    computeAggregateddata(List<org.palladiosimulator.edp2.models.ExperimentData.Measurement> measurements)
    Computes aggregated data from a list of Measurements.
     
    void
    setTimestep(double timestep)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SLODataAggregationMode

      public SLODataAggregationMode(org.palladiosimulator.edp2.visualization.util.DataAggregationModeTypes type)
      Constructor.
      Parameters:
      type - The DataAggregationModeTypes type to be used for aggregation of data.
  • Method Details

    • computeAggregateddata

      public double[][] computeAggregateddata(List<org.palladiosimulator.edp2.models.ExperimentData.Measurement> measurements)
      Computes aggregated data from a list of Measurements. Aggregation type is determined by the DataAggregationModeTypes type.
      Parameters:
      measurements - The Measurements to aggregate.
      Returns:
      a double[][] array containing the aggregated data.
    • 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:
    • getDescription

      public String getDescription()
    • setTimestep

      public void setTimestep(double timestep)