|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.model.basic.BasicModel
public class BasicModel
| Field Summary | |
|---|---|
static java.lang.String |
AGE_PARAM
|
static java.lang.String |
CYCLE_SKIPPING_PARAM
|
static java.lang.String |
PERSISTENT_PARAM
|
| Constructor Summary | |
|---|---|
BasicModel()
|
|
BasicModel(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addActivationBuffer(IActivationBuffer buffer)
install a buffer into this model, usually called during a modules installation |
void |
addListener(IModelListener listener,
java.util.concurrent.Executor executor)
|
void |
addListener(IParameterListener listener,
java.util.concurrent.Executor executor)
|
void |
dispatch(ModelEvent modelEvent)
|
void |
dispatch(ParameterEvent modelEvent)
|
void |
dispose()
release all resources |
IActivationBuffer |
getActivationBuffer(java.lang.String name)
returned the named activation buffer. |
java.util.Collection<IActivationBuffer> |
getActivationBuffers()
return the installed activation buffers |
void |
getActivationBuffers(java.util.Collection<IActivationBuffer> container)
|
double |
getAge()
age of the model used to shift the clock during runs |
long |
getCycle()
|
ICycleProcessor |
getCycleProcessor()
|
IDeclarativeModule |
getDeclarativeModule()
return the declarative module - this is the primary access point for declarative memory operations and controls |
IExtension |
getExtension(java.lang.Class<? extends IExtension> extensionClass)
return the extension that implements this interface. |
java.util.Collection<IExtension> |
getExtensions()
return all the installed extensions |
IInstrument |
getInstrument(java.lang.Class<? extends IInstrument> instrumentClass)
|
java.util.Collection<IInstrument> |
getInstruments()
|
java.lang.Object |
getMetaData(java.lang.String key)
Gets the MetaData attribute of the MetaContainer object |
java.util.Collection<java.lang.String> |
getMetaDataKeys()
return all the keys |
IModule |
getModule(java.lang.Class<? extends IModule> moduleClass)
get the module that is of class. |
java.util.Collection<IModule> |
getModules()
get all the installed moduels |
java.lang.String |
getName()
everyone needs a name.. |
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined. |
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read |
IProceduralModule |
getProceduralModule()
return the procedural module - this is the primary access point for procedural access and controls |
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set. |
TimedEventQueue |
getTimedEventQueue()
the model must have a timed event queue. |
boolean |
hasBeenInitialized()
has this models intiialize been called |
boolean |
hasListeners()
|
boolean |
hasParameterListeners()
|
void |
initialize()
initialize the model, calling initialize on buffers, and extensions in that order. |
void |
install(IExtension extension)
install this extension |
void |
install(IInstrument instrument)
install some other installable element, attempting to install a module or an extention here will reroute it to the more specific methods. |
void |
install(IModule module)
install an IModule into the model. |
boolean |
isCycleSkippingEnabled()
|
boolean |
isPersistentExecutionEnabled()
|
void |
removeListener(IModelListener listener)
|
void |
removeListener(IParameterListener listener)
|
void |
setAge(double age)
|
void |
setCycle(long cycle)
|
void |
setCycleProcessor(ICycleProcessor processor)
|
void |
setCycleSkippingEnabled(boolean skipping)
|
void |
setMetaData(java.lang.String key,
java.lang.Object value)
Sets the MetaData attribute of the MetaContainer object |
void |
setName(java.lang.String modelName)
|
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter |
void |
setPersistentExecutionEnabled(boolean persistent)
|
java.lang.String |
toString()
|
void |
uninstall(IInstrument installable)
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CYCLE_SKIPPING_PARAM
public static final java.lang.String PERSISTENT_PARAM
public static final java.lang.String AGE_PARAM
| Constructor Detail |
|---|
public BasicModel()
public BasicModel(java.lang.String name)
| Method Detail |
|---|
public void setCycleProcessor(ICycleProcessor processor)
setCycleProcessor in interface IModelpublic ICycleProcessor getCycleProcessor()
getCycleProcessor in interface IModelpublic void dispose()
IModel
dispose in interface IModelpublic void addActivationBuffer(IActivationBuffer buffer)
IModel
addActivationBuffer in interface IModelpublic IActivationBuffer getActivationBuffer(java.lang.String name)
IModel
getActivationBuffer in interface IModelpublic java.util.Collection<IActivationBuffer> getActivationBuffers()
IModel
getActivationBuffers in interface IModelpublic void getActivationBuffers(java.util.Collection<IActivationBuffer> container)
getActivationBuffers in interface IModelpublic IDeclarativeModule getDeclarativeModule()
IModel
getDeclarativeModule in interface IModelpublic IExtension getExtension(java.lang.Class<? extends IExtension> extensionClass)
IModel
getExtension in interface IModelpublic java.util.Collection<IExtension> getExtensions()
IModel
getExtensions in interface IModelpublic IInstrument getInstrument(java.lang.Class<? extends IInstrument> instrumentClass)
getInstrument in interface IModelpublic java.util.Collection<IInstrument> getInstruments()
getInstruments in interface IModelpublic IModule getModule(java.lang.Class<? extends IModule> moduleClass)
IModel
getModule in interface IModelpublic java.util.Collection<IModule> getModules()
IModel
getModules in interface IModelpublic IProceduralModule getProceduralModule()
IModel
getProceduralModule in interface IModelpublic void install(IModule module)
IModel
install in interface IModelpublic void install(IExtension extension)
IModel
install in interface IModelpublic void install(IInstrument instrument)
IModel
install in interface IModelpublic void uninstall(IInstrument installable)
uninstall in interface IModelIModel.uninstall(org.jactr.instrument.IInstrument)public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter in interface IParameterizedkey - Description of the Parameter
public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters in interface IParameterizedpublic 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 IParameterizedpublic java.lang.Object getMetaData(java.lang.String key)
IMetaContainer
getMetaData in interface IMetaContainerkey - Description of Parameter
public void setMetaData(java.lang.String key,
java.lang.Object value)
IMetaContainer
setMetaData in interface IMetaContainerkey - The new MetaData valuevalue - The new MetaData valuepublic java.util.Collection<java.lang.String> getMetaDataKeys()
IMetaContainer
getMetaDataKeys in interface IMetaContainerpublic void setAge(double age)
public double getAge()
IModel
getAge in interface IModelpublic void setCycleSkippingEnabled(boolean skipping)
public boolean isCycleSkippingEnabled()
public void setPersistentExecutionEnabled(boolean persistent)
public boolean isPersistentExecutionEnabled()
public TimedEventQueue getTimedEventQueue()
IModel
getTimedEventQueue in interface IModelpublic boolean hasBeenInitialized()
IModel
hasBeenInitialized in interface IModel
public void initialize()
throws java.lang.Exception
initialize in interface IModelinitialize in interface IInitializablejava.lang.ExceptionIModel.initialize()
public void addListener(IModelListener listener,
java.util.concurrent.Executor executor)
addListener in interface IModelpublic void removeListener(IModelListener listener)
removeListener in interface IModelpublic boolean hasListeners()
hasListeners in interface IModelpublic void dispatch(ModelEvent modelEvent)
dispatch in interface IModel
public void addListener(IParameterListener listener,
java.util.concurrent.Executor executor)
addListener in interface IModelpublic void removeListener(IParameterListener listener)
removeListener in interface IModelpublic boolean hasParameterListeners()
hasParameterListeners in interface IModelpublic void dispatch(ParameterEvent modelEvent)
dispatch in interface IModelpublic java.lang.String getName()
IModel
getName in interface IModelpublic void setName(java.lang.String modelName)
public long getCycle()
getCycle in interface IModelpublic void setCycle(long cycle)
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||