Class SampleImpl
- java.lang.Object
-
- de.uka.ipd.sdq.probfunction.math.impl.SampleImpl
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
SampleImpl(Object value, double probability)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
double
getProbability()
Returns the probability of the value stored in the sample.Object
getValue()
Returns the value for which the probability is specified.void
setProbability(double probability)
void
setValue(Object value)
String
toString()
-
-
-
Constructor Detail
-
SampleImpl
protected SampleImpl(Object value, double probability)
- Parameters:
value
-probability
-
-
-
Method Detail
-
getProbability
public double getProbability()
Description copied from interface:ISample
Returns the probability of the value stored in the sample.- Specified by:
getProbability
in interfaceISample
- Returns:
- Probability of the value.
-
setProbability
public void setProbability(double probability)
- Specified by:
setProbability
in interfaceISample
-
getValue
public Object getValue()
Description copied from interface:ISample
Returns the value for which the probability is specified.
-
setValue
public void setValue(Object value)
-
equals
public boolean equals(Object obj)
- Overrides:
equals
in classObject
- See Also:
Object.equals(java.lang.Object)
-
-