org.jactr.core.chunk.five
Interface ISubsymbolicChunk5

All Superinterfaces:
IParameterized, ISubsymbolicChunk
All Known Implementing Classes:
DefaultSubsymbolicChunk5

public interface ISubsymbolicChunk5
extends ISubsymbolicChunk


Field Summary
static java.lang.String SIMILARITIES
           
 
Fields inherited from interface org.jactr.core.chunk.ISubsymbolicChunk
ACTIVATION, BASE_LEVEL_ACTIVATION, CREATION_TIME, REFERENCE_COUNT, REFERENCE_TIMES, SOURCE_ACTIVATION, SPREADING_ACTIVATION, TIMES_IN_CONTEXT, TIMES_NEEDED
 
Method Summary
 double getActivation(ChunkTypeRequest retr)
          Return the activation given this pattern.
 java.util.Collection<java.lang.Object[]> getSimilarities(java.util.Collection<java.lang.Object[]> container)
           
 double getSimilarity(IChunk c)
           
 double getSimilarityActivation()
           
 void setSimilarity(IChunk c, double value)
          The similarity between two chunks can either be computed by the similarity computer or it can be set directly by the modeler.
 void setSimilarityActivation(double similarity)
           
 
Methods inherited from interface org.jactr.core.chunk.ISubsymbolicChunk
accessed, dispose, encode, getActivation, getBaseLevelActivation, getCreationTime, getParentChunk, getReferences, getSourceActivation, getSpreadingActivation, getTimesInContext, getTimesNeeded, incrementTimesInContext, incrementTimesNeeded, setActivation, setBaseLevelActivation, setCreationTime, setSourceActivation, setSpreadingActivation, setTimesInContext, setTimesNeeded
 
Methods inherited from interface org.jactr.core.utils.parameter.IParameterized
getParameter, getPossibleParameters, getSetableParameters, setParameter
 

Field Detail

SIMILARITIES

static final java.lang.String SIMILARITIES
See Also:
Constant Field Values
Method Detail

setSimilarity

void setSimilarity(IChunk c,
                   double value)
The similarity between two chunks can either be computed by the similarity computer or it can be set directly by the modeler. This sets the similarity between this chunk and c to value.

Parameters:
c - The new similarity value
value - The new similarity value

getSimilarity

double getSimilarity(IChunk c)
Parameters:
c - Description of the Parameter
Returns:
Double.NaN if no similarity is defined

getSimilarities

java.util.Collection<java.lang.Object[]> getSimilarities(java.util.Collection<java.lang.Object[]> container)
Parameters:
container - TODO
Returns:
an array of [[IChunk, Double],[IChunk, Double],....]

getSimilarityActivation

double getSimilarityActivation()

setSimilarityActivation

void setSimilarityActivation(double similarity)

getActivation

double getActivation(ChunkTypeRequest retr)
Return the activation given this pattern. This is for retrieving activation when partial matching is enabled. Mismatches will result in a decrement in activation as a function of similarity.

Parameters:
retr - Description of the Parameter
Returns:
The activation value