|
||||||||||
| 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.six.DefaultDeclarativeModule6
public class DefaultDeclarativeModule6
| Field Summary |
|---|
| Fields inherited from interface org.jactr.core.module.declarative.four.IDeclarativeModule4 |
|---|
ACTIVATION_NOISE, BASE_LEVEL_CONSTANT, PARTIAL_MATCHING, PERMANENT_ACTIVATION_NOISE |
| Fields inherited from interface org.jactr.core.module.declarative.five.IDeclarativeModule5 |
|---|
MAXIMUM_DIFFERENCE, MAXIMUM_SIMILARITY, MISMATCH_PENALTY |
| Constructor Summary | |
|---|---|
DefaultDeclarativeModule6()
|
|
| Method Summary | |
|---|---|
java.util.concurrent.Future<IChunk> |
addChunk(IChunk chunk)
add this chunk to the model and optionally check for duplicates so that it can be merged if necessary |
java.util.concurrent.Future<IChunkType> |
addChunkType(IChunkType chunkType)
add the chunktype to the model. |
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 to later be inserted. |
java.util.concurrent.Future<IChunkType> |
createChunkType(IChunkType parent,
java.lang.String name)
create a new chunktype to be added after its symbolic contents have been set. |
void |
dispose()
release any resources. |
java.util.concurrent.Future<java.util.Collection<IChunk>> |
findExactMatches(ChunkTypeRequest request,
java.util.Comparator<IChunk> sorter,
double activationThreshold,
boolean bestOne)
search DM for all the chunks that match pattern, sorting using sorter, that are above activationThreshold |
java.util.concurrent.Future<java.util.Collection<IChunk>> |
findPartialMatches(ChunkTypeRequest request,
java.util.Comparator<IChunk> sorter,
double activationThreshold,
boolean bestOne)
search DM for all the chunks that partially match |
double |
getActivationNoise()
|
double |
getBaseLevelConstant()
|
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)
return the named chunk, case insensitive but preserving |
java.util.concurrent.Future<java.util.Collection<IChunk>> |
getChunks()
return all chunks. |
java.util.concurrent.Future<IChunkType> |
getChunkType(java.lang.String name)
return the named chunktype. |
java.util.concurrent.Future<java.util.Collection<IChunkType>> |
getChunkTypes()
return all the chunk types in this model |
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. |
double |
getMaximumDifference()
|
double |
getMaximumSimilarity()
|
double |
getMismatchPenalty()
return the activation penalty for mismatches this parameter only applies if partial matching is enabled |
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. |
long |
getNumberOfChunks()
return the number of chunks in the model. |
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined. |
double |
getPermanentActivationNoise()
|
java.util.Collection<java.lang.String> |
getPossibleParameters()
Return all parameters that can be read |
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. |
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set. |
double |
getSimilarity(java.lang.Object one,
java.lang.Object two)
|
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()
here we attach a buffer listener to all the buffers and catch the removal notifications to see if we should encode the chunk.. |
boolean |
isPartialMatchingEnabled()
|
void |
removeListener(IDeclarativeModuleListener listener)
|
void |
setActivationNoise(double noise)
|
void |
setBaseLevelConstant(double base)
|
void |
setMaximumDifference(double maxDiff)
|
void |
setMaximumSimilarity(double maxSim)
|
void |
setMismatchPenalty(double mismatch)
set the activation penalty for a mismatched slot value |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter |
void |
setPartialMatchingEnabled(boolean enable)
|
void |
setPermanentActivationNoise(double noise)
|
void |
setSimilarity(java.lang.Object one,
java.lang.Object two,
double sim)
|
| Methods inherited from class org.jactr.core.module.AbstractModule |
|---|
delayedFuture, getExecutor, getModel, getName, getSafeName, 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.IModule |
|---|
getModel, getName, install |
| Methods inherited from interface org.jactr.core.utils.IInstallable |
|---|
uninstall |
| Methods inherited from interface org.jactr.core.module.IModule |
|---|
getModel, getName, install |
| Methods inherited from interface org.jactr.core.utils.IInstallable |
|---|
uninstall |
| Methods inherited from interface org.jactr.core.module.IModule |
|---|
getModel, getName, install |
| Methods inherited from interface org.jactr.core.utils.IInstallable |
|---|
uninstall |
| Constructor Detail |
|---|
public DefaultDeclarativeModule6()
| Method Detail |
|---|
public void dispose()
IModule
dispose in interface IModuledispose in class AbstractModulepublic double getActivationNoise()
getActivationNoise in interface IDeclarativeModule4public double getPermanentActivationNoise()
getPermanentActivationNoise in interface IDeclarativeModule4public boolean isPartialMatchingEnabled()
isPartialMatchingEnabled in interface IDeclarativeModule4public void setActivationNoise(double noise)
setActivationNoise in interface IDeclarativeModule4public void setPartialMatchingEnabled(boolean enable)
setPartialMatchingEnabled in interface IDeclarativeModule4public void setPermanentActivationNoise(double noise)
setPermanentActivationNoise in interface IDeclarativeModule4public double getMismatchPenalty()
IDeclarativeModule4
getMismatchPenalty in interface IDeclarativeModule5getMismatchPenalty in interface IDeclarativeModule4public void setMismatchPenalty(double mismatch)
IDeclarativeModule4
setMismatchPenalty in interface IDeclarativeModule5setMismatchPenalty in interface IDeclarativeModule4public double getMaximumDifference()
getMaximumDifference in interface IDeclarativeModule5public double getMaximumSimilarity()
getMaximumSimilarity in interface IDeclarativeModule5public void setMaximumDifference(double maxDiff)
setMaximumDifference in interface IDeclarativeModule5public void setMaximumSimilarity(double maxSim)
setMaximumSimilarity in interface IDeclarativeModule5public double getBaseLevelConstant()
getBaseLevelConstant in interface IDeclarativeModule4public void setBaseLevelConstant(double base)
setBaseLevelConstant in interface IDeclarativeModule4public long getNumberOfChunks()
IDeclarativeModule
getNumberOfChunks in interface IDeclarativeModule
public double getSimilarity(java.lang.Object one,
java.lang.Object two)
getSimilarity in interface IDeclarativeModule5
public void setSimilarity(java.lang.Object one,
java.lang.Object two,
double sim)
setSimilarity in interface IDeclarativeModule5public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter in interface IParameterizedkey - Description of the Parameter
IParameterized.getParameter(java.lang.String)public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters in interface IParameterizedIParameterized.getPossibleParameters()public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters in interface IParameterizedIParameterized.getSetableParameters()
public void setParameter(java.lang.String key,
java.lang.String value)
IParameterized
setParameter in interface IParameterizedIParameterized.setParameter(java.lang.String,
java.lang.String)public void initialize()
initialize in interface IModuleinitialize in interface IInitializableinitialize in class AbstractModuleAbstractModule.initialize()public java.util.concurrent.Future<IChunk> addChunk(IChunk chunk)
IDeclarativeModule
addChunk in interface IDeclarativeModuleIDeclarativeModule.addChunk(org.jactr.core.chunk.IChunk)public java.util.concurrent.Future<IChunkType> addChunkType(IChunkType chunkType)
IDeclarativeModule
addChunkType in interface IDeclarativeModuleIDeclarativeModule.addChunkType(org.jactr.core.chunktype.IChunkType)
public java.util.concurrent.Future<IChunk> createChunk(IChunkType parent,
java.lang.String name)
IDeclarativeModule
createChunk in interface IDeclarativeModuleparent - must not be null (duh)
IDeclarativeModule.createChunk(org.jactr.core.chunktype.IChunkType,
java.lang.String)
public java.util.concurrent.Future<IChunkType> createChunkType(IChunkType parent,
java.lang.String name)
IDeclarativeModule
createChunkType in interface IDeclarativeModuleparent - maybe null
IDeclarativeModule.createChunkType(org.jactr.core.chunktype.IChunkType,
java.lang.String)public java.util.concurrent.Future<IChunk> copyChunk(IChunk sourceChunk)
IDeclarativeModule
copyChunk in interface IDeclarativeModule
public java.util.concurrent.Future<java.util.Collection<IChunk>> findExactMatches(ChunkTypeRequest request,
java.util.Comparator<IChunk> sorter,
double activationThreshold,
boolean bestOne)
IDeclarativeModule
findExactMatches in interface IDeclarativeModulesorter - may be nullbestOne - find only best one
IDeclarativeModule.findExactMatches(ChunkTypeRequest,
java.util.Comparator, double, boolean)
public java.util.concurrent.Future<java.util.Collection<IChunk>> findPartialMatches(ChunkTypeRequest request,
java.util.Comparator<IChunk> sorter,
double activationThreshold,
boolean bestOne)
IDeclarativeModule
findPartialMatches in interface IDeclarativeModulesorter - may be nullbestOne - true if you only want the best one chunk
IDeclarativeModule.findPartialMatches(ChunkTypeRequest,
java.util.Comparator, double, boolean)public java.util.concurrent.Future<IChunk> getChunk(java.lang.String name)
IDeclarativeModule
getChunk in interface IDeclarativeModuleIDeclarativeModule.getChunk(java.lang.String)public java.util.concurrent.Future<IChunkType> getChunkType(java.lang.String name)
IDeclarativeModule
getChunkType in interface IDeclarativeModuleIDeclarativeModule.getChunkType(java.lang.String)public java.util.concurrent.Future<java.util.Collection<IChunkType>> getChunkTypes()
IDeclarativeModule
getChunkTypes in interface IDeclarativeModuleIDeclarativeModule.getChunkTypes()public java.util.concurrent.Future<java.util.Collection<IChunk>> getChunks()
IDeclarativeModule
getChunks in interface IDeclarativeModuleIDeclarativeModule.getChunks()public 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 void addListener(IDeclarativeModuleListener listener,
java.util.concurrent.Executor executor)
addListener in interface IDeclarativeModulepublic void removeListener(IDeclarativeModuleListener listener)
removeListener in interface IDeclarativeModule
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||