Interface Value<V>

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

    public interface Value<V>
    extends java.lang.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:
    DoubleValue, IntegerValue, Objectives.add(Objective, Value)
    • Method Detail

      • getValue

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

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

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