org.jactr.entry.iterative.impl
Class GeneralPerformanceListener
java.lang.Object
org.jactr.entry.iterative.impl.GeneralPerformanceListener
- All Implemented Interfaces:
- org.jactr.core.utils.parameter.IParameterized, IIterativeRunListener
public class GeneralPerformanceListener
- extends java.lang.Object
- implements IIterativeRunListener, org.jactr.core.utils.parameter.IParameterized
- Author:
- developer
|
Method Summary |
void |
exceptionThrown(int index,
org.jactr.core.model.IModel model,
java.lang.Throwable thrown)
called if something goes horribly wrong. |
java.lang.String |
getParameter(java.lang.String key)
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
|
java.util.Collection<java.lang.String> |
getSetableParameters()
|
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 |
setParameter(java.lang.String key,
java.lang.String value)
|
void |
start(int totalRuns)
|
void |
stop()
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ROW_HEADER
public static final java.lang.String ROW_HEADER
- See Also:
- Constant Field Values
BLOCK_SIZE
public static final java.lang.String BLOCK_SIZE
- See Also:
- Constant Field Values
FILE_NAME
public static final java.lang.String FILE_NAME
- See Also:
- Constant Field Values
GeneralPerformanceListener
public GeneralPerformanceListener()
exceptionThrown
public void exceptionThrown(int index,
org.jactr.core.model.IModel model,
java.lang.Throwable thrown)
- Description copied from interface:
IIterativeRunListener
- 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)
- Specified by:
exceptionThrown in interface IIterativeRunListener
- See Also:
IIterativeRunListener.exceptionThrown(int,
org.jactr.core.model.IModel, java.lang.Throwable)
postRun
public void postRun(int currentRunIndex,
int totalRuns,
java.util.Collection<org.jactr.core.model.IModel> models)
- Specified by:
postRun in interface IIterativeRunListener
- See Also:
IIterativeRunListener.postRun(int, int,
java.util.Collection)
preBuild
public void preBuild(int currentRunIndex,
int totalRuns,
java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
- Description copied from interface:
IIterativeRunListener
- called before each build of the models in the IterativeMain. This gives the
listener a chance to tweak the models before they are constructed
- Specified by:
preBuild in interface IIterativeRunListener
modelDescriptors - all the descriptors of the models to be created.- See Also:
IIterativeRunListener.preBuild(int, int,
java.util.Collection)
preRun
public void preRun(int currentRunIndex,
int totalRuns,
java.util.Collection<org.jactr.core.model.IModel> models)
- Description copied from interface:
IIterativeRunListener
- called before the run starts
- Specified by:
preRun in interface IIterativeRunListener
- See Also:
IIterativeRunListener.preRun(int, int,
java.util.Collection)
getParameter
public java.lang.String getParameter(java.lang.String key)
- Specified by:
getParameter in interface org.jactr.core.utils.parameter.IParameterized
- See Also:
IParameterized.getParameter(java.lang.String)
getPossibleParameters
public java.util.Collection<java.lang.String> getPossibleParameters()
- Specified by:
getPossibleParameters in interface org.jactr.core.utils.parameter.IParameterized
- See Also:
IParameterized.getPossibleParameters()
getSetableParameters
public java.util.Collection<java.lang.String> getSetableParameters()
- Specified by:
getSetableParameters in interface org.jactr.core.utils.parameter.IParameterized
- See Also:
IParameterized.getSetableParameters()
setParameter
public void setParameter(java.lang.String key,
java.lang.String value)
- Specified by:
setParameter in interface org.jactr.core.utils.parameter.IParameterized
- See Also:
IParameterized.setParameter(java.lang.String,
java.lang.String)
start
public void start(int totalRuns)
- Specified by:
start in interface IIterativeRunListener
- See Also:
IIterativeRunListener.start(int)
stop
public void stop()
- Specified by:
stop in interface IIterativeRunListener
- See Also:
IIterativeRunListener.stop()
preLoad
public void preLoad(int currentRunIndex,
int totalRuns)
- Specified by:
preLoad in interface IIterativeRunListener