org.jactr.entry.iterative
Interface IIterativeRunListener

All Known Implementing Classes:
AbstractModelFitAnalysis, AbstractParameterModifier, BufferParameterModifier, ChunkParameterModifier, ChunkTypeSlotModifier, GeneralPerformanceListener, ModelParameterModifier, ModuleParameterModifier, NetworkedIterativeRunListener, OrthogonalParameterSpaceSearcher, OrthogonalSliceAnalyzer, ProductionParameterModifier, RealTimeFactorPerformanceListener, ZipDataListener

public interface IIterativeRunListener

A handler to interact with the IterativeMain entry point

Author:
developer

Method Summary
 void exceptionThrown(int index, org.jactr.core.model.IModel model, java.lang.Throwable thrown)
          called if something goes horribly wrong.
 void postRun(int currentRunIndex, int totalRuns, java.util.Collection<org.jactr.core.model.IModel> models)
           
 void preBuild(int currentRunIndex, int totalRuns, java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
          called before each build of the models in the IterativeMain.
 void preLoad(int currentRunIndex, int totalRuns)
           
 void preRun(int currentRunIndex, int totalRuns, java.util.Collection<org.jactr.core.model.IModel> models)
          called before the run starts
 void start(int totalRuns)
           
 void stop()
           
 

Method Detail

start

void start(int totalRuns)

stop

void stop()

preLoad

void preLoad(int currentRunIndex,
             int totalRuns)

preBuild

void preBuild(int currentRunIndex,
              int totalRuns,
              java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
called before each build of the models in the IterativeMain. This gives the listener a chance to tweak the models before they are constructed

Parameters:
currentRunIndex -
totalRuns -
modelDescriptors - all the descriptors of the models to be created.

preRun

void preRun(int currentRunIndex,
            int totalRuns,
            java.util.Collection<org.jactr.core.model.IModel> models)
called before the run starts

Parameters:
currentRunIndex -
totalRuns -
models -

postRun

void postRun(int currentRunIndex,
             int totalRuns,
             java.util.Collection<org.jactr.core.model.IModel> models)

exceptionThrown

void exceptionThrown(int index,
                     org.jactr.core.model.IModel model,
                     java.lang.Throwable thrown)
called if something goes horribly wrong. This can be invoked at any of three locations:

During a model execution (in which case index>=1, model!=null)

If something goes wrong after the run during cleanup (index>=1, model==null)

or at the end if something goes wrong (index==0, model==null)

Parameters:
index -
thrown -