|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectiterators.ModelIterator
Field Summary | |
Cell[] |
cells
|
protected float |
finalScore
|
protected Model |
model
|
protected Network |
network
|
protected int |
nParsTV
|
int |
numCells
|
int |
numFunctionCalls
|
SimpleStop |
origStopper
|
protected java.lang.String |
outFileName
|
protected float[] |
p
local copy of Parameters. |
protected ParameterSet |
parsTV
Local copy of Parameters.nParsTV |
protected java.io.PrintWriter |
ps
The general purpose output file from an iterator. |
protected boolean |
running
|
protected java.lang.Thread |
runThread
|
Function |
theFunction
|
protected IteratorViewer |
TheIteratorViewer
Pointer the the viewer that displays results for this iterator |
protected boolean |
verbose
This is here to say whether the iterator should be saving stuff out to a file or not. |
Constructor Summary | |
ModelIterator()
|
Method Summary | |
float |
continueF(float[] thePoint)
//ELI 7/7/99 This method calls Function.continueEvaluate() to continue evaluating whatever function was running before. |
ModelIterator |
copy()
|
boolean |
didBomb()
|
boolean |
didPass()
|
void |
doRun()
|
void |
doStartRun()
|
float |
F(float[] thePoint)
|
java.lang.String |
getOutputFileName()
Returns the name of the iterator output file. |
ParameterSet |
getParameterSet()
Returns the current ParameterSet for the Iterator |
void |
getState(ParameterSet state)
|
SimpleStop |
getStopper()
|
float |
getValue()
|
void |
init(Network network,
Model model)
|
boolean |
isRunning()
|
boolean |
isSaveExtra()
If an iterator wants to save large amounts of information that doesn't fit into the tag format above, then it should return true in this method. |
void |
iterError(java.lang.String err)
|
protected void |
loadParameter(java.lang.String info,
BetterTokenizer tokenizer)
|
void |
loadParameters(BetterTokenizer tokenizer)
|
void |
print(java.lang.String outString)
|
void |
println()
|
void |
println(java.lang.String outString)
|
void |
quit()
|
void |
reset()
Called before each run of an iterator. |
void |
resetStopper()
|
void |
run()
|
void |
saveExtra(java.io.PrintWriter ps)
Called when the iterator finishes running if isSaveExtra returns true. |
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. |
void |
setFunction(Function fun)
|
void |
setIteratorViewer(IteratorViewer viewer)
Sets the IteratorViewer that this iterator reports to. |
void |
setOutputFile(java.lang.String fileName)
Called when the output file is changed. |
void |
setPrint(boolean m)
|
void |
setPrintStream(java.io.PrintWriter ps)
|
void |
setState(ParameterSet state)
|
void |
setStopper(SimpleStop stop)
|
void |
startRun()
|
void |
stopRun()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Network network
protected Model model
protected java.io.PrintWriter ps
protected java.lang.String outFileName
public SimpleStop origStopper
public Cell[] cells
public int numCells
protected java.lang.Thread runThread
protected boolean running
public Function theFunction
protected float finalScore
protected ParameterSet parsTV
protected int nParsTV
protected float[] p
protected boolean verbose
public int numFunctionCalls
protected IteratorViewer TheIteratorViewer
Constructor Detail |
public ModelIterator()
Method Detail |
public void init(Network network, Model model)
public void reset()
public ModelIterator copy() throws java.lang.Exception
java.lang.Exception
public java.lang.String getOutputFileName()
public ParameterSet getParameterSet()
public void setOutputFile(java.lang.String fileName) throws java.lang.Exception
java.lang.Exception
public void setStopper(SimpleStop stop)
public SimpleStop getStopper()
public void resetStopper()
public void setFunction(Function fun)
public void setPrint(boolean m)
public void print(java.lang.String outString)
public void println(java.lang.String outString)
public void println()
public void setPrintStream(java.io.PrintWriter ps)
public void saveOutputTags(java.io.PrintWriter ps, java.lang.String inset)
public void saveOutput(java.io.PrintWriter ps, java.lang.String inset)
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
public boolean isSaveExtra()
public void saveExtra(java.io.PrintWriter ps)
public void loadParameters(BetterTokenizer tokenizer) throws java.lang.Exception
java.lang.Exception
protected void loadParameter(java.lang.String info, BetterTokenizer tokenizer) throws java.lang.Exception
java.lang.Exception
public void setIteratorViewer(IteratorViewer viewer)
public void startRun()
public void doStartRun()
public void run()
run
in interface java.lang.Runnable
public void doRun()
public void stopRun()
public boolean didPass()
public boolean isRunning()
public boolean didBomb()
public float getValue()
public void setState(ParameterSet state)
public void getState(ParameterSet state)
public void quit()
public void iterError(java.lang.String err)
public float F(float[] thePoint)
public float continueF(float[] thePoint)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |