@Deprecated public abstract class AbstractModelFitAnalysis extends java.lang.Object implements IIterativeRunListener, IParameterized
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLUSTER_PREFIX
Deprecated.
|
static java.lang.String |
CLUSTERS
Deprecated.
|
static java.lang.String |
FILENAME
Deprecated.
|
Constructor and Description |
---|
AbstractModelFitAnalysis()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void |
collectData(int runIndex,
java.lang.String clusterName,
java.util.Collection<IModel> models,
ModelFitStatistics fit)
Deprecated.
called after each iteration
|
protected abstract void |
collectData(int runIndex,
java.lang.String clusterName,
ModelFitStatistics fit)
Deprecated.
called at the end of each cluster
|
void |
exceptionThrown(int index,
IModel model,
java.lang.Throwable thrown)
Deprecated.
called if something goes horribly wrong.
|
protected java.io.PrintWriter |
getOutput()
Deprecated.
|
java.lang.String |
getParameter(java.lang.String key)
Deprecated.
return parameter value - null if not defined.
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Deprecated.
Return all parameters that can be read
|
java.util.Collection<java.lang.String> |
getSetableParameters()
Deprecated.
Return list of all parameters that can be set.
|
protected abstract void |
outputFooter(java.io.PrintWriter out)
Deprecated.
|
protected abstract void |
outputHeader(java.io.PrintWriter out)
Deprecated.
|
protected abstract void |
outputStatistics(ModelFitStatistics fit,
java.io.PrintWriter out)
Deprecated.
|
void |
postRun(int currentRunIndex,
int totalRuns,
java.util.Collection<IModel> models)
Deprecated.
|
void |
preBuild(int currentRunIndex,
int totalRuns,
java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors)
Deprecated.
called before each build of the models in the IterativeMain.
|
void |
preRun(int currentRunIndex,
int totalRuns,
java.util.Collection<IModel> models)
Deprecated.
called before the run starts
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Deprecated.
Set the named parameter
|
void |
start(int totalRuns)
Deprecated.
|
void |
stop()
Deprecated.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
preLoad
public static final java.lang.String CLUSTERS
public static final java.lang.String FILENAME
public static final java.lang.String CLUSTER_PREFIX
protected java.io.PrintWriter getOutput()
public void exceptionThrown(int index, IModel model, java.lang.Throwable thrown) throws TerminateIterativeRunException
IIterativeRunListener
TerminateIterativeRunException
when model!=null,
as it will not be caught by the IterativeMain entry point. If you need to
terminate the iterative run entirely because of a model level exception,
you should record that the exception occured and then terminate from
postRun()exceptionThrown
in interface IIterativeRunListener
TerminateIterativeRunException
- if the iterative run should be killed. TODOpublic void postRun(int currentRunIndex, int totalRuns, java.util.Collection<IModel> models) throws TerminateIterativeRunException
postRun
in interface IIterativeRunListener
TerminateIterativeRunException
public void preBuild(int currentRunIndex, int totalRuns, java.util.Collection<org.antlr.runtime.tree.CommonTree> modelDescriptors) throws TerminateIterativeRunException
IIterativeRunListener
preBuild
in interface IIterativeRunListener
modelDescriptors
- all the descriptors of the models to be created.TerminateIterativeRunException
- TODOpublic void preRun(int currentRunIndex, int totalRuns, java.util.Collection<IModel> models) throws TerminateIterativeRunException
IIterativeRunListener
preRun
in interface IIterativeRunListener
TerminateIterativeRunException
- TODOpublic void start(int totalRuns) throws TerminateIterativeRunException
start
in interface IIterativeRunListener
TerminateIterativeRunException
public void stop()
stop
in interface IIterativeRunListener
protected abstract void collectData(int runIndex, java.lang.String clusterName, java.util.Collection<IModel> models, ModelFitStatistics fit)
models
- protected abstract void collectData(int runIndex, java.lang.String clusterName, ModelFitStatistics fit)
runIndex
- fit
- protected abstract void outputStatistics(ModelFitStatistics fit, java.io.PrintWriter out)
protected abstract void outputHeader(java.io.PrintWriter out)
protected abstract void outputFooter(java.io.PrintWriter out)
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
key
- Description of the Parameterpublic java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters
in interface IParameterized
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized