Class PAResultsModel.MeasureValueImpl

java.lang.Object
common.definitions.PAResultsModel.MeasureValueImpl
All Implemented Interfaces:
MeasureValue
Enclosing class:
PAResultsModel

public class PAResultsModel.MeasureValueImpl extends Object implements MeasureValue
Inner class that implements Value interface
  • Constructor Details

    • MeasureValueImpl

      public MeasureValueImpl(double meanValue, double upperBound, double lowerBound, boolean isValid)
      Creates a new MeasureValue object
      Parameters:
      meanValue - mean value of the sample
      upperBound - sample upper bound
      lowerBound - sample lower bound
      isValid - true if the measure could be computed with the requested precision
  • Method Details

    • getMeanValue

      public double getMeanValue()
      Specified by:
      getMeanValue in interface MeasureValue
      Returns:
      the mean value
    • getUpperBound

      public double getUpperBound()
      Specified by:
      getUpperBound in interface MeasureValue
      Returns:
      the upper bound of value. Infinity if not set
    • getLowerBound

      public double getLowerBound()
      Specified by:
      getLowerBound in interface MeasureValue
      Returns:
      the lower bound of value. Infinity if not set
    • setMeanValue

      public void setMeanValue(double x)
    • setUpperBound

      public void setUpperBound(double x)
    • setLowerBound

      public void setLowerBound(double x)
    • setValid

      public void setValid(boolean x)
    • isValid

      public boolean isValid()
    • getLastIntervalAvgValue

      public double getLastIntervalAvgValue()
      Specified by:
      getLastIntervalAvgValue in interface MeasureValue
      Returns:
      the last measured value
    • getSimTime

      public double getSimTime()
      Specified by:
      getSimTime in interface MeasureValue
      Returns:
      the simulation time