iterators
Class UberIteratorFunction

java.lang.Object
  extended byiterators.Function
      extended byiterators.UberIteratorFunction

public class UberIteratorFunction
extends Function


Field Summary
 
Fields inherited from class iterators.Function
runner
 
Constructor Summary
UberIteratorFunction(ModelRunner run, java.io.PrintWriter p)
           
 
Method Summary
 void addIterator(ModelIterator newIT, java.lang.String eval_type, java.lang.String class_name, java.lang.String id_tag, java.lang.String save_pars, java.lang.String start_where, boolean auto_pass)
           
 void addObject(Network network, Model model, BetterTokenizer tokenizer, java.lang.String eval_type, java.lang.String class_name, java.lang.String id_tag, java.lang.String save_pars, java.lang.String start_where, boolean auto_pass, java.lang.String int_mode)
           
 float evaluate(ParameterSet pars)
          this is the default evaluate method that just runs this models runner with its native stopper and parameter values defined by pars.
protected  void saveOutputTags()
          Save out a list of all the types of data that might be output together with a good parameter set.
 void setFPStabilizer(float fps)
           
 void setOutputStream(java.io.PrintWriter ps)
           
 void setRunMode(int rm)
           
 void stopRun()
          This is here to gracefully stop processing when the user stops the iterator before its finished.
 
Methods inherited from class iterators.Function
addObject, continueEvaluate, copy, getStopper, init, loadParameter, loadParameters, setStopper
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UberIteratorFunction

public UberIteratorFunction(ModelRunner run,
                            java.io.PrintWriter p)
Method Detail

setRunMode

public void setRunMode(int rm)

setOutputStream

public void setOutputStream(java.io.PrintWriter ps)

setFPStabilizer

public void setFPStabilizer(float fps)

addObject

public void addObject(Network network,
                      Model model,
                      BetterTokenizer tokenizer,
                      java.lang.String eval_type,
                      java.lang.String class_name,
                      java.lang.String id_tag,
                      java.lang.String save_pars,
                      java.lang.String start_where,
                      boolean auto_pass,
                      java.lang.String int_mode)
               throws java.lang.Exception
Throws:
java.lang.Exception

addIterator

public void addIterator(ModelIterator newIT,
                        java.lang.String eval_type,
                        java.lang.String class_name,
                        java.lang.String id_tag,
                        java.lang.String save_pars,
                        java.lang.String start_where,
                        boolean auto_pass)

saveOutputTags

protected void saveOutputTags()
Save out a list of all the types of data that might be output together with a good parameter set. This list goes in the header of the cam file.


evaluate

public float evaluate(ParameterSet pars)
               throws java.lang.Exception
Description copied from class: Function
this is the default evaluate method that just runs this models runner with its native stopper and parameter values defined by pars. The state of pars reflects any parameter changes and the resultant score is returned.

Overrides:
evaluate in class Function
Throws:
java.lang.Exception

stopRun

public void stopRun()
This is here to gracefully stop processing when the user stops the iterator before its finished. Currently just calls stopRun for all iterators in its object list that are running. Also calls super.stopRun() to stop its modelRunner.

Overrides:
stopRun in class Function