org.jactr.core.module.declarative.six
Class DefaultDeclarativeModule6

java.lang.Object
  extended by org.jactr.core.module.AbstractModule
      extended by org.jactr.core.module.declarative.basic.AbstractDeclarativeModule
          extended by org.jactr.core.module.declarative.basic.DefaultDeclarativeModule
              extended by org.jactr.core.module.declarative.six.DefaultDeclarativeModule6
All Implemented Interfaces:
IDeclarativeModule5, IDeclarativeModule4, IDeclarativeModule, IModule, IInitializable, IInstallable, IParameterized

public class DefaultDeclarativeModule6
extends DefaultDeclarativeModule
implements IDeclarativeModule, IDeclarativeModule4, IDeclarativeModule5, IParameterized


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
 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)
           
 
Methods inherited from class org.jactr.core.module.declarative.basic.DefaultDeclarativeModule
dispose, findExactMatches, findPartialMatches, getNumberOfChunks, getPossibleParameters, initialize, isDisposalSuspended, reset, setDisposalSuspended, willEncode
 
Methods inherited from class org.jactr.core.module.declarative.basic.AbstractDeclarativeModule
addChunk, addChunkType, addListener, copyChunk, createChunk, createChunkType, getBusyChunk, getChunk, getChunks, getChunkType, getChunkTypes, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getNewChunk, getRequestedChunk, getUnrequestedChunk, removeListener
 
Methods inherited from class org.jactr.core.module.AbstractModule
delayedFuture, 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
addChunk, addChunkType, addListener, copyChunk, createChunk, createChunkType, dispose, findExactMatches, findPartialMatches, getBusyChunk, getChunk, getChunks, getChunkType, getChunkTypes, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getNewChunk, getNumberOfChunks, getRequestedChunk, getUnrequestedChunk, removeListener, willEncode
 
Methods inherited from interface org.jactr.core.module.IModule
getModel, getName, initialize, install, reset
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 
Methods inherited from interface org.jactr.core.module.declarative.IDeclarativeModule
addChunk, addChunkType, addListener, copyChunk, createChunk, createChunkType, dispose, findExactMatches, findPartialMatches, getBusyChunk, getChunk, getChunks, getChunkType, getChunkTypes, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getNewChunk, getNumberOfChunks, getRequestedChunk, getUnrequestedChunk, removeListener, willEncode
 
Methods inherited from interface org.jactr.core.module.IModule
getModel, getName, initialize, install, reset
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 
Methods inherited from interface org.jactr.core.module.declarative.IDeclarativeModule
addChunk, addChunkType, addListener, copyChunk, createChunk, createChunkType, dispose, findExactMatches, findPartialMatches, getBusyChunk, getChunk, getChunks, getChunkType, getChunkTypes, getEmptyChunk, getErrorChunk, getFreeChunk, getFullChunk, getNewChunk, getNumberOfChunks, getRequestedChunk, getUnrequestedChunk, removeListener, willEncode
 
Methods inherited from interface org.jactr.core.module.IModule
getModel, getName, initialize, install, reset
 
Methods inherited from interface org.jactr.core.utils.IInstallable
uninstall
 
Methods inherited from interface org.jactr.core.utils.parameter.IParameterized
getPossibleParameters
 

Constructor Detail

DefaultDeclarativeModule6

public DefaultDeclarativeModule6()
Method Detail

dispose

public void dispose()
Description copied from interface: IModule
release any resources. this should only be called by the model during its own dispose method (assuming that this module is still installed) and should not result in the propogation of ANY events. The module should dispose of all its resources, including buffers

Specified by:
dispose in interface IModule
Overrides:
dispose in class DefaultDeclarativeModule

getActivationNoise

public double getActivationNoise()
Specified by:
getActivationNoise in interface IDeclarativeModule4

getPermanentActivationNoise

public double getPermanentActivationNoise()
Specified by:
getPermanentActivationNoise in interface IDeclarativeModule4

isPartialMatchingEnabled

public boolean isPartialMatchingEnabled()
Specified by:
isPartialMatchingEnabled in interface IDeclarativeModule4

setActivationNoise

public void setActivationNoise(double noise)
Specified by:
setActivationNoise in interface IDeclarativeModule4

setPartialMatchingEnabled

public void setPartialMatchingEnabled(boolean enable)
Specified by:
setPartialMatchingEnabled in interface IDeclarativeModule4

setPermanentActivationNoise

public void setPermanentActivationNoise(double noise)
Specified by:
setPermanentActivationNoise in interface IDeclarativeModule4

getMismatchPenalty

public double getMismatchPenalty()
Description copied from interface: IDeclarativeModule4
return the activation penalty for mismatches this parameter only applies if partial matching is enabled

Specified by:
getMismatchPenalty in interface IDeclarativeModule5
Specified by:
getMismatchPenalty in interface IDeclarativeModule4
Returns:
The MismatchPenalty value

setMismatchPenalty

public void setMismatchPenalty(double mismatch)
Description copied from interface: IDeclarativeModule4
set the activation penalty for a mismatched slot value

Specified by:
setMismatchPenalty in interface IDeclarativeModule5
Specified by:
setMismatchPenalty in interface IDeclarativeModule4

getMaximumDifference

public double getMaximumDifference()
Specified by:
getMaximumDifference in interface IDeclarativeModule5

getMaximumSimilarity

public double getMaximumSimilarity()
Specified by:
getMaximumSimilarity in interface IDeclarativeModule5

setMaximumDifference

public void setMaximumDifference(double maxDiff)
Specified by:
setMaximumDifference in interface IDeclarativeModule5

setMaximumSimilarity

public void setMaximumSimilarity(double maxSim)
Specified by:
setMaximumSimilarity in interface IDeclarativeModule5

getBaseLevelConstant

public double getBaseLevelConstant()
Specified by:
getBaseLevelConstant in interface IDeclarativeModule4

setBaseLevelConstant

public void setBaseLevelConstant(double base)
Specified by:
setBaseLevelConstant in interface IDeclarativeModule4

getSimilarity

public double getSimilarity(java.lang.Object one,
                            java.lang.Object two)
Specified by:
getSimilarity in interface IDeclarativeModule5

setSimilarity

public void setSimilarity(java.lang.Object one,
                          java.lang.Object two,
                          double sim)
Specified by:
setSimilarity in interface IDeclarativeModule5

getParameter

public java.lang.String getParameter(java.lang.String key)
Description copied from interface: IParameterized
return parameter value - null if not defined.

Specified by:
getParameter in interface IParameterized
Overrides:
getParameter in class DefaultDeclarativeModule
Parameters:
key - Description of the Parameter
Returns:
The parameter value
See Also:
IParameterized.getParameter(java.lang.String)

getSetableParameters

public java.util.Collection<java.lang.String> getSetableParameters()
Description copied from interface: IParameterized
Return list of all parameters that can be set.

Specified by:
getSetableParameters in interface IParameterized
Overrides:
getSetableParameters in class DefaultDeclarativeModule
Returns:
The setableParameters value
See Also:
IParameterized.getSetableParameters()

setParameter

public void setParameter(java.lang.String key,
                         java.lang.String value)
Description copied from interface: IParameterized
Set the named parameter

Specified by:
setParameter in interface IParameterized
Overrides:
setParameter in class DefaultDeclarativeModule
See Also:
IParameterized.setParameter(java.lang.String, java.lang.String)