org.opt4j.core.genotype
Interface Bounds<E extends java.lang.Number>

Type Parameters:
E - the type of number
All Known Implementing Classes:
DoubleBounds, IntegerBounds, SelectMapGenotype.SelectBounds

public interface Bounds<E extends java.lang.Number>

The Bounds define bounds for Genotype objects that consist of lists of numbers.

See Also:
DoubleGenotype, IntegerGenotype

Method Summary
 E getLowerBound(int index)
          Returns the lower bound for the i-th element.
 E getUpperBound(int index)
          Returns the upper bound for the i-th element.
 

Method Detail

getLowerBound

E getLowerBound(int index)
Returns the lower bound for the i-th element.

Parameters:
index - the i-th element
Returns:
the lower bound of the i-th element

getUpperBound

E getUpperBound(int index)
Returns the upper bound for the i-th element.

Parameters:
index - the i-th element
Returns:
the upper bound of the i-th element