Class ContinuousSampleImpl
- java.lang.Object
-
- de.uka.ipd.sdq.probfunction.math.impl.ContinuousSampleImpl
-
- All Implemented Interfaces:
IContinuousSample
public class ContinuousSampleImpl extends Object implements IContinuousSample
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedContinuousSampleImpl(Double value, Double probability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)DoublegetProbability()Probability that a sample lies in the interval specified by the ContinuousSample.doublegetValue()Value represents the right border of the specified interval.voidsetProbability(Double probability)voidsetValue(Double value)
-
-
-
Method Detail
-
getProbability
public Double getProbability()
Description copied from interface:IContinuousSampleProbability that a sample lies in the interval specified by the ContinuousSample.- Specified by:
getProbabilityin interfaceIContinuousSample- Returns:
- Probability for the interval.
-
setProbability
public void setProbability(Double probability)
-
getValue
public double getValue()
Description copied from interface:IContinuousSampleValue represents the right border of the specified interval. (The left is given by the ContinuousSample with the next smaller value).- Specified by:
getValuein interfaceIContinuousSample- Returns:
- Right border of the interval.
-
setValue
public void setValue(Double value)
-
-