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:
- Currently only supports runs with single populations evolving.
- Generation number must be declared before individuals
- Assumes properties are doubles.
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fullOrderGenotypes
public static boolean fullOrderGenotypes
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
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)