iterators
Class ACSCIterator
java.lang.Object
iterators.ModelIterator
iterators.ACSCIterator
- All Implemented Interfaces:
- java.lang.Runnable
- public class ACSCIterator
- extends ModelIterator
- implements java.lang.Runnable
Fields inherited from class iterators.ModelIterator |
cells, finalScore, model, network, nParsTV, numCells, numFunctionCalls, origStopper, outFileName, p, parsTV, ps, running, runThread, theFunction, TheIteratorViewer, verbose |
Methods inherited from class iterators.ModelIterator |
continueF, didBomb, doStartRun, F, getOutputFileName, getParameterSet, getState, getStopper, getValue, isRunning, isSaveExtra, iterError, print, println, println, quit, reset, resetStopper, run, saveExtra, setFunction, setIteratorViewer, setOutputFile, setPrint, setPrintStream, setState, setStopper, startRun, stopRun |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.lang.Runnable |
run |
ACSCIterator
public ACSCIterator()
init
public void init(Network network,
Model model)
- Overrides:
init
in class ModelIterator
copy
public ModelIterator copy()
throws java.lang.Exception
- Overrides:
copy
in class ModelIterator
- Throws:
java.lang.Exception
saveOutputTags
public void saveOutputTags(java.io.PrintWriter ps,
java.lang.String inset)
- Description copied from class:
ModelIterator
- This is called when a cam file is being set up. It should print a list of
the tags which this iterator will be outputting for each parameter set
saved in the file. Following each tag should be either the string "number"
or the string "flag", indicating whether the output will be numerical or
text.
Most iterators will not need to implement this function since they have no
extra information to save beyond score, num function calls, and the parameters themselves
- Overrides:
saveOutputTags
in class ModelIterator
saveOutput
public void saveOutput(java.io.PrintWriter ps,
java.lang.String inset)
- Description copied from class:
ModelIterator
- Saves tagged output from this iterator to a cam file. This is called
by the UberIteratorFunction whenever it gets a good score. This function
should save any useful information the iterator possesses about the set
of parameters using the standard &tag format. The data should be either
a number or a string. The cam file can't handle more complex data objects
currently. Note that the Score is saved directly by the UberIteratorFunction.
Other Iterators should call super.saveOutput() to get things that are general
to all iterators saved (i.e. NumFunctionCalls).
Most iterators will not need to implement this function since they have no
extra information to save beyond score, num function calls, and the parameters themselves
- Overrides:
saveOutput
in class ModelIterator
loadParameters
public void loadParameters(BetterTokenizer tokenizer)
throws java.lang.Exception
- Overrides:
loadParameters
in class ModelIterator
- Throws:
java.lang.Exception
loadParameter
protected void loadParameter(java.lang.String info,
BetterTokenizer tokenizer)
throws java.lang.Exception
- Overrides:
loadParameter
in class ModelIterator
- Throws:
java.lang.Exception
doRun
public void doRun()
- Overrides:
doRun
in class ModelIterator
didPass
public boolean didPass()
- Overrides:
didPass
in class ModelIterator