Class Pool

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--java.util.Vector
                    |
                    +--Pool

public class Pool
extends java.util.Vector

The Pool class holds all of our Candidates for an election. After an election, the pool runs one cycle of a Genetic Algorithm to alter and update the candidate population.

See Also:
Serialized Form

Field Summary
 District parent
           
 int policies
           
 int positions
           
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Pool(District parent)
           
 
Method Summary
 void Adapt()
           
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

policies

public int policies

positions

public int positions

parent

public District parent
Constructor Detail

Pool

public Pool(District parent)
Method Detail

Adapt

public void Adapt()