|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opt4j.core.genotype.IntegerBounds
public class IntegerBounds
The IntegerBounds is an implementation of the Bounds for the
IntegerGenotype that accepts arrays as well as lists for as bounds.
| Field Summary | |
|---|---|
protected int[] |
lower
|
protected int[] |
upper
|
| Constructor Summary | |
|---|---|
IntegerBounds(int[] lower,
int[] upper)
Constructs a IntegerBounds with arrays. |
|
IntegerBounds(java.util.List<java.lang.Integer> lower,
java.util.List<java.lang.Integer> upper)
Constructs a IntegerBounds with lists. |
|
| Method Summary | |
|---|---|
java.lang.Integer |
getLowerBound(int index)
Returns the lower bound for the i-th element. |
java.lang.Integer |
getUpperBound(int index)
Returns the upper bound for the i-th element. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final int[] lower
protected final int[] upper
| Constructor Detail |
|---|
public IntegerBounds(int[] lower,
int[] upper)
IntegerBounds with arrays.
lower - the lower boundsupper - the upper bounds
public IntegerBounds(java.util.List<java.lang.Integer> lower,
java.util.List<java.lang.Integer> upper)
IntegerBounds with lists.
lower - the lower boundsupper - the upper bounds| Method Detail |
|---|
public java.lang.Integer getLowerBound(int index)
Boundsi-th element.
getLowerBound in interface Bounds<java.lang.Integer>index - the i-th element
i-th elementpublic java.lang.Integer getUpperBound(int index)
Boundsi-th element.
getUpperBound in interface Bounds<java.lang.Integer>index - the i-th element
i-th element
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||