|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IModel
core model interface. the majority of functionality is distributed to the various modules that have been installed. It must have a IDeclarativeModule, IProceduralModule at minimal to run. IModules and IExtensions can only be installed, never removed - at least at this level of abstraction.
| 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()
|
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.. |
IProceduralModule |
getProceduralModule()
return the procedural module - this is the primary access point for procedural access and controls |
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. |
void |
install(IExtension extension)
install this extension |
void |
install(IInstrument installable)
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. |
void |
removeListener(IModelListener listener)
|
void |
removeListener(IParameterListener listener)
|
void |
setCycleProcessor(ICycleProcessor processor)
|
void |
uninstall(IInstrument installable)
|
| Methods inherited from interface org.jactr.core.utils.parameter.IParameterized |
|---|
getParameter, getPossibleParameters, getSetableParameters, setParameter |
| Methods inherited from interface org.jactr.core.utils.IMetaContainer |
|---|
getMetaData, getMetaDataKeys, setMetaData |
| Method Detail |
|---|
void initialize()
throws java.lang.Exception
initialize in interface IInitializablejava.lang.Exceptionvoid dispose()
boolean hasBeenInitialized()
TimedEventQueue getTimedEventQueue()
void addActivationBuffer(IActivationBuffer buffer)
buffer - IActivationBuffer getActivationBuffer(java.lang.String name)
name -
java.util.Collection<IActivationBuffer> getActivationBuffers()
void getActivationBuffers(java.util.Collection<IActivationBuffer> container)
void install(IModule module)
module - IDeclarativeModule getDeclarativeModule()
IProceduralModule getProceduralModule()
IModule getModule(java.lang.Class<? extends IModule> moduleClass)
moduleClass -
java.util.Collection<IModule> getModules()
void install(IExtension extension)
extension - IExtension getExtension(java.lang.Class<? extends IExtension> extensionClass)
extensionClass -
java.util.Collection<IExtension> getExtensions()
void install(IInstrument installable)
installable - void uninstall(IInstrument installable)
IInstrument getInstrument(java.lang.Class<? extends IInstrument> instrumentClass)
instrumentClass -
java.util.Collection<IInstrument> getInstruments()
void addListener(IModelListener listener,
java.util.concurrent.Executor executor)
void removeListener(IModelListener listener)
boolean hasListeners()
void dispatch(ModelEvent modelEvent)
void addListener(IParameterListener listener,
java.util.concurrent.Executor executor)
void removeListener(IParameterListener listener)
boolean hasParameterListeners()
void dispatch(ParameterEvent modelEvent)
java.lang.String getName()
long getCycle()
double getAge()
ICycleProcessor getCycleProcessor()
void setCycleProcessor(ICycleProcessor processor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||