public class DefaultDeclarativeModule6 extends DefaultDeclarativeModule implements IDeclarativeModule, IDeclarativeModule4, IDeclarativeModule5, IParameterized
IDeclarativeConfigurator
to set the chunk's
various equations (IBaseLevelActivationEquation
,
ISpreadingActivationEquation
, IRandomActivationEquation
).
Clients extending this should be sure to delegate to the original
configurator as to keep this functionality ( #getConfigurator()
). http://jactr.org/node/87
Modifier and Type | Field and Description |
---|---|
protected double |
_activationNoise |
protected double |
_baseLevelConstant |
protected double |
_maximumDifference |
protected double |
_maximumSimilarity |
protected double |
_mismatchPenalty |
protected boolean |
_partialMatchingEnabled |
protected double |
_permanentActivationNoise |
protected java.util.Map<Pair,java.lang.Double> |
_similarities |
_allChunks, _allChunkTypes, _chunkLock, _chunkTypeLock, _encodeChunksOnRemove, _searchSystem, CHUNK_CONFIGURATOR_PARAM, CHUNK_FACTORY_PARAM, CHUNK_NAMER_PARAM, CHUNK_TYPE_CONFIGURATOR_PARAM, CHUNK_TYPE_FACTORY_PARAM, CHUNK_TYPE_NAMER_PARAM, SUBSYMBOLIC_CHUNK_FACTORY_PARAM, SUBSYMBOLIC_CHUNK_TYPE_FACTORY_PARAM, SYMBOLIC_CHUNK_FACTORY_PARAM, SYMBOLIC_CHUNK_TYPE_FACTORY_PARAM
_activationSorter, SUSPEND_DISPOSAL_KEY
ACTIVATION_NOISE, BASE_LEVEL_CONSTANT, PARTIAL_MATCHING, PERMANENT_ACTIVATION_NOISE
MAXIMUM_DIFFERENCE, MAXIMUM_SIMILARITY, MISMATCH_PENALTY
Constructor and Description |
---|
DefaultDeclarativeModule6() |
Modifier and Type | Method and Description |
---|---|
protected void |
configure(IChunk newChunk)
make sure that the appropriate activation equations are configured for the
chunks
|
void |
dispose()
release any resources.
|
double |
getActivationNoise() |
double |
getBaseLevelConstant() |
double |
getMaximumDifference() |
double |
getMaximumSimilarity() |
double |
getMismatchPenalty()
return the activation penalty for mismatches this parameter only applies if
partial matching is enabled
|
java.lang.String |
getParameter(java.lang.String key)
return parameter value - null if not defined.
|
double |
getPermanentActivationNoise() |
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) |
boolean |
isPartialMatchingEnabled() |
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) |
addChunkInternal, addChunkTypeInternal, findExactMatches, findExactMatchesInternal, findPartialMatches, findPartialMatchesInternal, getChunkInternal, getChunksInternal, getChunkTypeInternal, getChunkTypesInternal, getNumberOfChunks, getPossibleParameters, initialize, removeChunk, removeChunkInternal, reset
addChunk, addChunkType, addListener, configure, copyChunk, copyChunk, copyChunkInternal, createChunk, createChunkInternal, createChunkType, createChunkType, createChunkTypeInternal, deferredEncode, deferredEncode, dispatch, dispose, disposeInternal, fireChunkAdded, fireChunkCreated, fireChunkDisposed, fireChunkRemoved, fireChunksMerged, fireChunkTypeAdded, fireChunkTypeCreated, fireChunkTypeDisposed, fireChunkTypesMerged, flush, getAssociativeLinkageSystem, getBusyChunk, getChunk, getChunkConfigurator, getChunkFactory, getChunkNamer, getChunks, getChunkType, getChunkTypeConfigurator, getChunkTypeFactory, getChunkTypeNamer, getChunkTypes, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getNewChunk, getRequestedChunk, getSubsymbolicChunkFactory, getSubsymbolicChunkTypeFactory, getSymbolicChunkFactory, getSymbolicChunkTypeFactory, getUnrequestedChunk, hasListeners, install, isDisposalSuspended, merge, mergeChunksInternal, processPendingDisposals, processPendingEncodingAndDisposals, processPendingEncodings, removeListener, setAssociativeLinkageSystem, setChunkConfigurator, setChunkFactory, setChunkNamer, setChunkTypeConfigurator, setChunkTypeFactory, setChunkTypeNamer, setDisposalSuspended, setSubsymbolicChunkFactory, setSubsymbolicChunkTypeFactory, setSymbolicChunkFactory, setSymbolicChunkTypeFactory, uninstall, willEncode
createBuffers, delayedFuture, delayedFuture, getExecutor, getModel, getName, getSafeName, immediateFuture, immediateReturn, setExecutor
addAdapterFactory, getAdapter, removeAdapterFactory
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addChunk, addChunkType, addListener, copyChunk, copyChunk, createChunk, createChunkType, createChunkType, dispose, findExactMatches, findPartialMatches, flush, getAssociativeLinkageSystem, getBusyChunk, getChunk, getChunks, getChunkType, getChunkTypes, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getNewChunk, getNumberOfChunks, getRequestedChunk, getUnrequestedChunk, removeListener, setAssociativeLinkageSystem, willEncode
getModel, getName, initialize, install, reset
uninstall
getAdapter
getPossibleParameters
protected double _activationNoise
protected double _permanentActivationNoise
protected boolean _partialMatchingEnabled
protected double _mismatchPenalty
protected double _baseLevelConstant
protected double _maximumSimilarity
protected double _maximumDifference
protected java.util.Map<Pair,java.lang.Double> _similarities
protected void configure(IChunk newChunk)
configure
in class AbstractDeclarativeModule
public void dispose()
IModule
dispose
in interface IModule
dispose
in class DefaultDeclarativeModule
public double getActivationNoise()
getActivationNoise
in interface IDeclarativeModule4
public double getPermanentActivationNoise()
getPermanentActivationNoise
in interface IDeclarativeModule4
public boolean isPartialMatchingEnabled()
isPartialMatchingEnabled
in interface IDeclarativeModule4
public void setActivationNoise(double noise)
setActivationNoise
in interface IDeclarativeModule4
public void setPartialMatchingEnabled(boolean enable)
setPartialMatchingEnabled
in interface IDeclarativeModule4
public void setPermanentActivationNoise(double noise)
setPermanentActivationNoise
in interface IDeclarativeModule4
public double getMismatchPenalty()
IDeclarativeModule4
getMismatchPenalty
in interface IDeclarativeModule5
getMismatchPenalty
in interface IDeclarativeModule4
public void setMismatchPenalty(double mismatch)
IDeclarativeModule4
setMismatchPenalty
in interface IDeclarativeModule5
setMismatchPenalty
in interface IDeclarativeModule4
public double getMaximumDifference()
getMaximumDifference
in interface IDeclarativeModule5
public double getMaximumSimilarity()
getMaximumSimilarity
in interface IDeclarativeModule5
public void setMaximumDifference(double maxDiff)
setMaximumDifference
in interface IDeclarativeModule5
public void setMaximumSimilarity(double maxSim)
setMaximumSimilarity
in interface IDeclarativeModule5
public double getBaseLevelConstant()
getBaseLevelConstant
in interface IDeclarativeModule4
public void setBaseLevelConstant(double base)
setBaseLevelConstant
in interface IDeclarativeModule4
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 IDeclarativeModule5
public java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter
in interface IParameterized
getParameter
in class DefaultDeclarativeModule
key
- Description of the ParameterIParameterized.getParameter(java.lang.String)
public java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters
in interface IParameterized
getSetableParameters
in class DefaultDeclarativeModule
IParameterized.getSetableParameters()
public void setParameter(java.lang.String key, java.lang.String value)
IParameterized
setParameter
in interface IParameterized
setParameter
in class DefaultDeclarativeModule
IParameterized.setParameter(java.lang.String,
java.lang.String)