org.opt4j.core.genotype
Class SelectMapGenotype.SelectBounds<O,P>

java.lang.Object
  extended by org.opt4j.core.genotype.SelectMapGenotype.SelectBounds<O,P>
All Implemented Interfaces:
Bounds<java.lang.Integer>
Enclosing class:
SelectMapGenotype<K,V>

protected static class SelectMapGenotype.SelectBounds<O,P>
extends java.lang.Object
implements Bounds<java.lang.Integer>


Field Summary
protected  java.util.List<O> list
           
protected  java.util.Map<O,java.util.List<P>> map
           
 
Constructor Summary
SelectMapGenotype.SelectBounds(java.util.List<O> list, java.util.Map<O,java.util.List<P>> map)
           
 
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

list

protected java.util.List<O> list

map

protected java.util.Map<O,java.util.List<P>> map
Constructor Detail

SelectMapGenotype.SelectBounds

public SelectMapGenotype.SelectBounds(java.util.List<O> list,
                                      java.util.Map<O,java.util.List<P>> map)
Method Detail

getLowerBound

public java.lang.Integer getLowerBound(int index)
Description copied from interface: Bounds
Returns the lower bound for the i-th element.

Specified by:
getLowerBound in interface Bounds<java.lang.Integer>
Parameters:
index - the i-th element
Returns:
the lower bound of the i-th element

getUpperBound

public java.lang.Integer getUpperBound(int index)
Description copied from interface: Bounds
Returns the upper bound for the i-th element.

Specified by:
getUpperBound in interface Bounds<java.lang.Integer>
Parameters:
index - the i-th element
Returns:
the upper bound of the i-th element