|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.tools.itr.ParameterSetModifier
org.jactr.tools.itr.LongitudinalParameterSetModifier
public class LongitudinalParameterSetModifier
saves models of terminal runs and restores them to the run directory so that longitudinal runs can be bootstrapped from prior runs
| Field Summary |
|---|
| Fields inherited from interface org.jactr.tools.itr.IParameterModifier |
|---|
PARAMETER_NAME, PARAMETER_VALUES |
| Constructor Summary | |
|---|---|
LongitudinalParameterSetModifier()
|
|
| Method Summary | |
|---|---|
void |
associate(java.lang.String modelName,
java.lang.String modelFile)
called by the parser.. |
void |
copyModels(java.util.Collection<org.jactr.core.model.IModel> models,
long iteration)
serializes the models to the temp directory |
void |
deleteModels()
delete the models from working dir.. |
boolean |
isFirstSlice(java.lang.String parameterValue)
is this the first slice in a longitudinal run? |
boolean |
isLastSlice(java.lang.String parameterValue)
|
void |
setParameter(org.antlr.runtime.tree.CommonTree modelDescriptor,
int parameterValueIndex)
|
void |
startIteration(ISlice slice,
long iteration,
java.util.Collection<org.jactr.core.model.IModel> models)
called just before the models are to be run, but after their parameters have been set |
void |
startSlice(ISlice slice)
called before loading, we get a chance to copy models in.. |
void |
stopIteration(ISlice slice,
long iteration,
java.util.Collection<org.jactr.core.model.IModel> models)
|
void |
stopSlice(ISlice slice)
called after a slice has completed |
| Methods inherited from class org.jactr.tools.itr.ParameterSetModifier |
|---|
add, getNestedParameterValues, getParameter, getParameterDisplayName, getParameterName, getParameterValues, getPossibleParameters, getSetableParameters, remove, setParameter, setParameter |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LongitudinalParameterSetModifier()
| Method Detail |
|---|
public void associate(java.lang.String modelName,
java.lang.String modelFile)
modelName - modelFile - public void deleteModels()
public void copyModels(java.util.Collection<org.jactr.core.model.IModel> models,
long iteration)
models -
public void setParameter(org.antlr.runtime.tree.CommonTree modelDescriptor,
int parameterValueIndex)
setParameter in interface IParameterModifiersetParameter in class ParameterSetModifierpublic boolean isFirstSlice(java.lang.String parameterValue)
parameterValue -
public boolean isLastSlice(java.lang.String parameterValue)
public void startSlice(ISlice slice)
startSlice in interface ISliceListener
public void startIteration(ISlice slice,
long iteration,
java.util.Collection<org.jactr.core.model.IModel> models)
ISliceListener
startIteration in interface ISliceListener
public void stopIteration(ISlice slice,
long iteration,
java.util.Collection<org.jactr.core.model.IModel> models)
stopIteration in interface ISliceListenerpublic void stopSlice(ISlice slice)
ISliceListener
stopSlice in interface ISliceListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||