public interface IModel extends IParameterized, IMetaContainer, IInitializable, IAdaptable
Modifier and Type | Method and Description |
---|---|
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.util.concurrent.locks.ReentrantReadWriteLock |
getLock() |
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(IExtension extension) |
void |
uninstall(IInstrument installable) |
getParameter, getPossibleParameters, getSetableParameters, setParameter
getMetaData, getMetaDataKeys, setMetaData
getAdapter
void initialize() throws java.lang.Exception
initialize
in interface IInitializable
java.lang.Exception
void 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
- void uninstall(IExtension 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)
java.util.concurrent.locks.ReentrantReadWriteLock getLock()