be.ac.ulg.montefiore.run.totem.repository.genericheuristics.model
Class HeuristicPopulation

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList<HeuristicSolution>
              extended by be.ac.ulg.montefiore.run.totem.repository.genericheuristics.model.HeuristicPopulation
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<HeuristicSolution>, java.util.Collection<HeuristicSolution>, java.util.List<HeuristicSolution>, java.util.RandomAccess

public class HeuristicPopulation
extends java.util.ArrayList<HeuristicSolution>

An heuristic population is a list of solution

Creation date: 24-Nov-2004 16:01:21

Author:
Fabian Skivee (skivee@run.montefiore.ulg.ac.be)
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
HeuristicPopulation()
          Create a list of solution
HeuristicPopulation(int size)
          Create a list of size solution
 
Method Summary
 void display()
          Display the solution.
 HeuristicSolution getMax()
          Get the solution with the maxmimum evaluation
 HeuristicSolution getMin()
          Get the solution with the minimum evaluation
 
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, toString
 
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

HeuristicPopulation

public HeuristicPopulation()
Create a list of solution


HeuristicPopulation

public HeuristicPopulation(int size)
Create a list of size solution

Parameters:
size -
Method Detail

getMax

public HeuristicSolution getMax()
Get the solution with the maxmimum evaluation

Returns:

getMin

public HeuristicSolution getMin()
Get the solution with the minimum evaluation

Returns:

display

public void display()
Display the solution. Use for debug



Copyright © 2004-2007 Research Unit in Networking, All Rights Reserved.