Class SampleImpl

java.lang.Object
de.uka.ipd.sdq.probfunction.math.impl.SampleImpl
All Implemented Interfaces:
ISample

public class SampleImpl extends Object implements ISample
  • Constructor Details

    • SampleImpl

      protected SampleImpl(Object value, double probability)
      Parameters:
      value -
      probability -
  • Method Details

    • getProbability

      public double getProbability()
      Description copied from interface: ISample
      Returns the probability of the value stored in the sample.
      Specified by:
      getProbability in interface ISample
      Returns:
      Probability of the value.
    • setProbability

      public void setProbability(double probability)
      Specified by:
      setProbability in interface ISample
    • getValue

      public Object getValue()
      Description copied from interface: ISample
      Returns the value for which the probability is specified.
      Specified by:
      getValue in interface ISample
      Returns:
      Value object.
    • setValue

      public void setValue(Object value)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      See Also:
    • toString

      public String toString()
      Overrides:
      toString in class Object