Class PAResultsModel.MeasureValueImpl
java.lang.Object
common.definitions.PAResultsModel.MeasureValueImpl
- All Implemented Interfaces:
MeasureValue
- Enclosing class:
PAResultsModel
Inner class that implements Value interface
-
Constructor Summary
ConstructorsConstructorDescriptionMeasureValueImpl(double meanValue, double upperBound, double lowerBound, boolean isValid) Creates a new MeasureValue object -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubledoubledoubledoublebooleanisValid()voidsetLowerBound(double x) voidsetMeanValue(double x) voidsetUpperBound(double x) voidsetValid(boolean x)
-
Constructor Details
-
MeasureValueImpl
public MeasureValueImpl(double meanValue, double upperBound, double lowerBound, boolean isValid) Creates a new MeasureValue object- Parameters:
meanValue- mean value of the sampleupperBound- sample upper boundlowerBound- sample lower boundisValid- true if the measure could be computed with the requested precision
-
-
Method Details
-
getMeanValue
public double getMeanValue()- Specified by:
getMeanValuein interfaceMeasureValue- Returns:
- the mean value
-
getUpperBound
public double getUpperBound()- Specified by:
getUpperBoundin interfaceMeasureValue- Returns:
- the upper bound of value. Infinity if not set
-
getLowerBound
public double getLowerBound()- Specified by:
getLowerBoundin interfaceMeasureValue- 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:
getLastIntervalAvgValuein interfaceMeasureValue- Returns:
- the last measured value
-
getSimTime
public double getSimTime()- Specified by:
getSimTimein interfaceMeasureValue- Returns:
- the simulation time
-