jaga.pj.gral
Class PopulationLogReader

java.lang.Object
  |
  +--jaga.pj.gral.PopulationLogReader

public class PopulationLogReader
extends java.lang.Object

Used to read in logs of populations as logged by the classes in the islandev package.

Limitations:


Field Summary
static boolean fullOrderGenotypes
           
 
Constructor Summary
PopulationLogReader(java.lang.String fileName)
          Creates new PopulationLogReader
PopulationLogReader(java.lang.String fileName, boolean old)
           
 
Method Summary
 java.lang.String getDeclared(java.lang.String line, java.lang.String declMark)
           
static java.util.Vector getElites(java.lang.String fileName)
           
static java.util.Vector getElites(java.lang.String fileName, boolean oldLog)
           
 Population getGeneration(int gen)
          Returns population of this generation or first one after
 java.util.Enumeration getPopulationEnumeration()
          This will return an enumeration giving out populations in order of appearance in the log file.
 Population readNextPopulation()
           
 void restartReader()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fullOrderGenotypes

public static boolean fullOrderGenotypes
Constructor Detail

PopulationLogReader

public PopulationLogReader(java.lang.String fileName)
                    throws java.io.FileNotFoundException
Creates new PopulationLogReader

PopulationLogReader

public PopulationLogReader(java.lang.String fileName,
                           boolean old)
                    throws java.io.FileNotFoundException
Method Detail

restartReader

public void restartReader()
                   throws java.io.FileNotFoundException

getDeclared

public java.lang.String getDeclared(java.lang.String line,
                                    java.lang.String declMark)

readNextPopulation

public Population readNextPopulation()

getPopulationEnumeration

public java.util.Enumeration getPopulationEnumeration()
                                               throws java.io.FileNotFoundException
This will return an enumeration giving out populations in order of appearance in the log file.

getGeneration

public Population getGeneration(int gen)
                         throws java.io.FileNotFoundException
Returns population of this generation or first one after

getElites

public static java.util.Vector getElites(java.lang.String fileName)

getElites

public static java.util.Vector getElites(java.lang.String fileName,
                                         boolean oldLog)