iterators
Class ACSC_SwitchIterator

java.lang.Object
  extended byiterators.ModelIterator
      extended byiterators.ACSC_SwitchIterator
All Implemented Interfaces:
java.lang.Runnable

public class ACSC_SwitchIterator
extends ModelIterator
implements java.lang.Runnable


Field Summary
 
Fields inherited from class iterators.ModelIterator
cells, finalScore, model, network, nParsTV, numCells, numFunctionCalls, origStopper, outFileName, p, parsTV, ps, running, runThread, theFunction, TheIteratorViewer, verbose
 
Constructor Summary
ACSC_SwitchIterator()
           
 
Method Summary
 ModelIterator copy()
           
 boolean didPass()
           
 void doRun()
           
protected  void loadParameter(java.lang.String info, BetterTokenizer tokenizer)
           
 void loadParameters(BetterTokenizer tokenizer)
           
 void saveOutput(java.io.PrintWriter ps, java.lang.String inset)
          Saves tagged output from this iterator to a cam file.
 void saveOutputTags(java.io.PrintWriter ps, java.lang.String inset)
          This is called when a cam file is being set up.
 
Methods inherited from class iterators.ModelIterator
continueF, didBomb, doStartRun, F, getOutputFileName, getParameterSet, getState, getStopper, getValue, init, 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
 

Constructor Detail

ACSC_SwitchIterator

public ACSC_SwitchIterator()
Method Detail

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