moea.commons
Class Population<I extends Individual>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<I>
              extended by moea.commons.Population<I>
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<I>, java.util.Collection<I>, java.util.List<I>, java.util.RandomAccess

public class Population<I extends Individual>
extends java.util.ArrayList<I>

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
Population()
           
 
Method Summary
 void add(Population<I> population)
           
 double calculateSpacing()
           
 double calculateSpread()
           
 I getBestIndividual(java.util.Comparator<Entity> comparator)
           
 Population<I> keepNonDominated()
           
 java.lang.String toString()
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

Population

public Population()
Method Detail

keepNonDominated

public Population<I> keepNonDominated()

getBestIndividual

public I getBestIndividual(java.util.Comparator<Entity> comparator)

add

public void add(Population<I> population)

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<I extends Individual>

calculateSpread

public double calculateSpread()

calculateSpacing

public double calculateSpacing()