|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.module.AbstractModule
org.jactr.core.module.declarative.basic.AbstractDeclarativeModule
public abstract class AbstractDeclarativeModule
| Constructor Summary | |
|---|---|
AbstractDeclarativeModule(java.lang.String name)
|
|
| Method Summary | |
|---|---|
java.util.concurrent.Future<IChunk> |
addChunk(IChunk chunk)
add chunk to DM. |
java.util.concurrent.Future<IChunkType> |
addChunkType(IChunkType chunkType)
add chunktype to DM, delegated to addChunkTypeInternal(IChunkType)
on AbstractModule.getExecutor() |
void |
addListener(IDeclarativeModuleListener listener,
java.util.concurrent.Executor executor)
|
java.util.concurrent.Future<IChunk> |
copyChunk(IChunk sourceChunk)
return a copy of source chunk |
java.util.concurrent.Future<IChunk> |
createChunk(IChunkType parent,
java.lang.String name)
create a chunk by delegating to createChunkInternal(IChunkType, String) on AbstractModule.getExecutor() |
java.util.concurrent.Future<IChunkType> |
createChunkType(IChunkType parent,
java.lang.String name)
create chunktype, delegates to createChunkTypeInternal(IChunkType, String) on
AbstractModule.getExecutor() |
IChunk |
getBusyChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
java.util.concurrent.Future<IChunk> |
getChunk(java.lang.String name)
delegated |
java.util.concurrent.Future<java.util.Collection<IChunk>> |
getChunks()
return all chunks. |
java.util.concurrent.Future<IChunkType> |
getChunkType(java.lang.String name)
delegated |
java.util.concurrent.Future<java.util.Collection<IChunkType>> |
getChunkTypes()
delegated |
IChunk |
getEmptyChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
IChunk |
getErrorChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
IChunk |
getFreeChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
IChunk |
getFullChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
IChunk |
getNewChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
IChunk |
getRequestedChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
IChunk |
getUnrequestedChunk()
snag the busy chunk. Note : this should not be called by the declarative memory module if the retrieval will access the future methods as it might result in deadlock. |
void |
initialize()
this will be called after all the modules have been installed permitting the module to attach listeners to other modules. |
void |
removeListener(IDeclarativeModuleListener listener)
|
| Methods inherited from class org.jactr.core.module.AbstractModule |
|---|
delayedFuture, dispose, getExecutor, getModel, getName, immediateFuture, immediateReturn, install, uninstall |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.jactr.core.module.declarative.IDeclarativeModule |
|---|
dispose, findExactMatches, findPartialMatches, getNumberOfChunks, willEncode |
| Methods inherited from interface org.jactr.core.module.IModule |
|---|
dispose, getModel, getName, install, reset |
| Methods inherited from interface org.jactr.core.utils.IInstallable |
|---|
uninstall |
| Constructor Detail |
|---|
public AbstractDeclarativeModule(java.lang.String name)
| Method Detail |
|---|
public void initialize()
IModule
initialize in interface IModuleinitialize in interface IInitializableinitialize in class AbstractModule
public void addListener(IDeclarativeModuleListener listener,
java.util.concurrent.Executor executor)
addListener in interface IDeclarativeModulepublic void removeListener(IDeclarativeModuleListener listener)
removeListener in interface IDeclarativeModulepublic IChunk getBusyChunk()
IDeclarativeModule
getBusyChunk in interface IDeclarativeModulepublic IChunk getEmptyChunk()
IDeclarativeModule
getEmptyChunk in interface IDeclarativeModulepublic IChunk getErrorChunk()
IDeclarativeModule
getErrorChunk in interface IDeclarativeModulepublic IChunk getFreeChunk()
IDeclarativeModule
getFreeChunk in interface IDeclarativeModulepublic IChunk getFullChunk()
IDeclarativeModule
getFullChunk in interface IDeclarativeModulepublic IChunk getNewChunk()
IDeclarativeModule
getNewChunk in interface IDeclarativeModulepublic IChunk getRequestedChunk()
IDeclarativeModule
getRequestedChunk in interface IDeclarativeModulepublic IChunk getUnrequestedChunk()
IDeclarativeModule
getUnrequestedChunk in interface IDeclarativeModule
public java.util.concurrent.Future<IChunk> createChunk(IChunkType parent,
java.lang.String name)
createChunkInternal(IChunkType, String) on AbstractModule.getExecutor()
createChunk in interface IDeclarativeModuleparent - name -
IDeclarativeModule.createChunk(org.jactr.core.chunktype.IChunkType,
java.lang.String)public java.util.concurrent.Future<IChunk> addChunk(IChunk chunk)
addChunkInternal(IChunk) on
AbstractModule.getExecutor()
addChunk in interface IDeclarativeModulechunk -
IDeclarativeModule.addChunk(org.jactr.core.chunk.IChunk)public java.util.concurrent.Future<IChunk> copyChunk(IChunk sourceChunk)
IDeclarativeModule
copyChunk in interface IDeclarativeModulepublic java.util.concurrent.Future<IChunk> getChunk(java.lang.String name)
getChunk in interface IDeclarativeModulename -
IDeclarativeModule.getChunk(java.lang.String)public java.util.concurrent.Future<java.util.Collection<IChunk>> getChunks()
IDeclarativeModule
getChunks in interface IDeclarativeModuleIDeclarativeModule.getChunks()
public java.util.concurrent.Future<IChunkType> createChunkType(IChunkType parent,
java.lang.String name)
createChunkTypeInternal(IChunkType, String) on
AbstractModule.getExecutor()
createChunkType in interface IDeclarativeModuleparent - name -
IDeclarativeModule.createChunkType(org.jactr.core.chunktype.IChunkType,
java.lang.String)public java.util.concurrent.Future<IChunkType> addChunkType(IChunkType chunkType)
addChunkTypeInternal(IChunkType)
on AbstractModule.getExecutor()
addChunkType in interface IDeclarativeModulechunkType -
IDeclarativeModule.addChunkType(org.jactr.core.chunktype.IChunkType)public java.util.concurrent.Future<IChunkType> getChunkType(java.lang.String name)
getChunkType in interface IDeclarativeModulename -
IDeclarativeModule.getChunkType(java.lang.String)public java.util.concurrent.Future<java.util.Collection<IChunkType>> getChunkTypes()
getChunkTypes in interface IDeclarativeModuleIDeclarativeModule.getChunkTypes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||