Package org.opt4j.core
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>>
TheValue
represents the result for anObjective
. EachValue
has to beComparable
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Double
getDouble()
Returns a double value.V
getValue()
Returns the value.void
setValue(V value)
Sets the value.-
Methods inherited from interface java.lang.Comparable
compareTo
-
-
-
-
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
Double getDouble()
Returns a double value.- Returns:
- double value
-
-