JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.evolvableDoubleList
Class SelectModulo

java.lang.Object
  extended bygov.nasa.javaGenes.evolvableDoubleList.Selector
      extended bygov.nasa.javaGenes.evolvableDoubleList.SelectModulo
All Implemented Interfaces:
java.io.Serializable

public class SelectModulo
extends Selector

See Also:
Serialized Form

Field Summary
protected  int modulo
           
protected  int offset
           
protected  Selector selector
           
 
Fields inherited from class gov.nasa.javaGenes.evolvableDoubleList.Selector
MAXIMUM_TRIES
 
Constructor Summary
SelectModulo(Selector selector, int modulo)
           
SelectModulo(Selector selector, int modulo, int offset)
           
 
Method Summary
protected  int convertBack(int indexToDummy)
           
protected  int getDummySize(int oldSize)
           
 Indices getIndices(int size)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.evolvableDoubleList.Selector
getIndicesArray, getIndicesArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

selector

protected Selector selector

modulo

protected int modulo

offset

protected int offset
Constructor Detail

SelectModulo

public SelectModulo(Selector selector,
                    int modulo)

SelectModulo

public SelectModulo(Selector selector,
                    int modulo,
                    int offset)
Method Detail

getIndices

public Indices getIndices(int size)
Specified by:
getIndices in class Selector

getDummySize

protected int getDummySize(int oldSize)

convertBack

protected int convertBack(int indexToDummy)

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus