org.jactr.core.chunk.four
Class DefaultSubsymbolicChunk4

java.lang.Object
  extended by org.jactr.core.chunk.basic.AbstractSubsymbolicChunk
      extended by org.jactr.core.chunk.four.DefaultSubsymbolicChunk4
All Implemented Interfaces:
ISubsymbolicChunk4, ISubsymbolicChunk, IParameterized
Direct Known Subclasses:
DefaultSubsymbolicChunk5

public class DefaultSubsymbolicChunk4
extends AbstractSubsymbolicChunk
implements ISubsymbolicChunk4


Field Summary
 
Fields inherited from interface org.jactr.core.chunk.four.ISubsymbolicChunk4
CREATION_CYCLE, LINKS
 
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
 
Constructor Summary
DefaultSubsymbolicChunk4(IChunk parent)
           
 
Method Summary
 void addLink(Link l)
          add a link, it will be inspected to determine whether it is a J,I link
 void dispose()
          Description of the Method
 void encode(double when)
          non-locking since this will set creation time
 long getCreationCycle()
           
 Link getIAssociation(IChunk iChunk)
          get the I association between this chunk (J) and i
 java.util.Collection<Link> getIAssociations(java.util.Collection<Link> container)
          return the associations where this is the j chunk
 Link getJAssociation(IChunk jChunk)
          get the J association between this chunk (I) and j
 java.util.Collection<Link> getJAssociations(java.util.Collection<Link> container)
          return the associations where this is the i chunk
 int getNumberOfIAssociations()
          return the number of associations where this is the j chunk
 int getNumberOfJAssociations()
          return the number of associations where this is the i chunk
 java.lang.String getParameter(java.lang.String key)
          return parameter value - null if not defined.
 java.util.Collection<java.lang.String> getPossibleParameters()
          Return all parameters that can be read
 void removeLink(Link l)
          Description of the Method
 void setCreationCycle(long cycle)
           
 void setParameter(java.lang.String key, java.lang.String value)
          Set the named parameter
 
Methods inherited from class org.jactr.core.chunk.basic.AbstractSubsymbolicChunk
accessed, getActivation, getBaseLevelActivation, getCreationTime, getReferences, getSetableParameters, getSourceActivation, getSpreadingActivation, getTimesInContext, getTimesNeeded, incrementTimesInContext, incrementTimesNeeded, setActivation, setBaseLevelActivation, setCreationTime, setSourceActivation, setSpreadingActivation, setTimesInContext, setTimesNeeded
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jactr.core.chunk.ISubsymbolicChunk
accessed, getActivation, getBaseLevelActivation, getCreationTime, getReferences, getSourceActivation, getSpreadingActivation, getTimesInContext, getTimesNeeded, incrementTimesInContext, incrementTimesNeeded, setActivation, setBaseLevelActivation, setCreationTime, setSourceActivation, setSpreadingActivation, setTimesInContext, setTimesNeeded
 
Methods inherited from interface org.jactr.core.utils.parameter.IParameterized
getSetableParameters
 

Constructor Detail

DefaultSubsymbolicChunk4

public DefaultSubsymbolicChunk4(IChunk parent)
Method Detail

encode

public void encode(double when)
Description copied from class: AbstractSubsymbolicChunk
non-locking since this will set creation time

Specified by:
encode in interface ISubsymbolicChunk
Overrides:
encode in class AbstractSubsymbolicChunk
See Also:
ISubsymbolicChunk.encode(double)

dispose

public void dispose()
Description copied from interface: ISubsymbolicChunk
Description of the Method

Specified by:
dispose in interface ISubsymbolicChunk
Overrides:
dispose in class AbstractSubsymbolicChunk

setCreationCycle

public void setCreationCycle(long cycle)
Specified by:
setCreationCycle in interface ISubsymbolicChunk4

getCreationCycle

public long getCreationCycle()
Specified by:
getCreationCycle in interface ISubsymbolicChunk4

addLink

public void addLink(Link l)
Description copied from interface: ISubsymbolicChunk4
add a link, it will be inspected to determine whether it is a J,I link

Specified by:
addLink in interface ISubsymbolicChunk4
Parameters:
l - The feature to be added to the Link attribute

getIAssociation

public Link getIAssociation(IChunk iChunk)
Description copied from interface: ISubsymbolicChunk4
get the I association between this chunk (J) and i

Specified by:
getIAssociation in interface ISubsymbolicChunk4
Parameters:
iChunk - Description of the Parameter
Returns:
the Link between this(J) and ref(I) or null if none exists

getIAssociations

public java.util.Collection<Link> getIAssociations(java.util.Collection<Link> container)
Description copied from interface: ISubsymbolicChunk4
return the associations where this is the j chunk

Specified by:
getIAssociations in interface ISubsymbolicChunk4
Parameters:
container - TODO
Returns:
The iAssociations value

getJAssociation

public Link getJAssociation(IChunk jChunk)
Description copied from interface: ISubsymbolicChunk4
get the J association between this chunk (I) and j

Specified by:
getJAssociation in interface ISubsymbolicChunk4
Parameters:
jChunk - Description of the Parameter
Returns:
the Link between this(I) and ref(J) or null if none exists

getJAssociations

public java.util.Collection<Link> getJAssociations(java.util.Collection<Link> container)
Description copied from interface: ISubsymbolicChunk4
return the associations where this is the i chunk

Specified by:
getJAssociations in interface ISubsymbolicChunk4
Parameters:
container - TODO
Returns:
The jAssociations value

getNumberOfIAssociations

public int getNumberOfIAssociations()
Description copied from interface: ISubsymbolicChunk4
return the number of associations where this is the j chunk

Specified by:
getNumberOfIAssociations in interface ISubsymbolicChunk4
Returns:
The numberOfIAssociations value

getNumberOfJAssociations

public int getNumberOfJAssociations()
Description copied from interface: ISubsymbolicChunk4
return the number of associations where this is the i chunk

Specified by:
getNumberOfJAssociations in interface ISubsymbolicChunk4
Returns:
The numberOfJAssociations value

removeLink

public void removeLink(Link l)
Description copied from interface: ISubsymbolicChunk4
Description of the Method

Specified by:
removeLink in interface ISubsymbolicChunk4
Parameters:
l - Description of the Parameter

getPossibleParameters

public java.util.Collection<java.lang.String> getPossibleParameters()
Description copied from interface: IParameterized
Return all parameters that can be read

Specified by:
getPossibleParameters in interface IParameterized
Overrides:
getPossibleParameters in class AbstractSubsymbolicChunk
Returns:
The possibleParameters value

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 AbstractSubsymbolicChunk
Parameters:
key - Description of the Parameter
Returns:
The parameter value

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 AbstractSubsymbolicChunk