Interface Value<V>

Type Parameters:
V - the type of the value
All Superinterfaces:
Comparable<Value<V>>
All Known Implementing Classes:
DoubleValue, IntegerValue

public interface Value<V> extends Comparable<Value<V>>
The Value represents the result for an Objective. Each Value has to be Comparable and have a double representation which is used by some optimization algorithms. Thus, an appropriate double representation is not necessary if the optimization algorithm does not require it.
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a double value.
    Returns the value.
    void
    setValue(V value)
    Sets the value.

    Methods inherited from interface java.lang.Comparable

    compareTo
  • Method Details

    • getValue

      V getValue()
      Returns the value.
      Returns:
      the value
      See Also:
    • setValue

      void setValue(V value)
      Sets the value.
      Parameters:
      value - the value to set
      See Also:
    • getDouble

      Double getDouble()
      Returns a double value.
      Returns:
      double value