|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jactr.core.chunk.basic.AbstractSubsymbolicChunk
public abstract class AbstractSubsymbolicChunk
| Field Summary |
|---|
| 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 | |
|---|---|
AbstractSubsymbolicChunk(IChunk parent)
|
|
| Method Summary | |
|---|---|
void |
accessed(double time)
Is called whenever the chunk is accessed (check via a condition or modified via an action in a IProduction) ? it can only be called once per cycle since the ReferenceList maintains a listing of unique access times. |
void |
dispose()
Description of the Method |
void |
encode(double when)
non-locking since this will set creation time |
double |
getActivation()
Return the total activation (summation of base-level, spreading, and noise). |
double |
getBaseLevelActivation()
Return the current base level activation. |
double |
getCreationTime()
|
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 |
IReferences |
getReferences()
The org.jactr.misc.ReferenceList class maintains an optimized list of access times and access counts. |
java.util.Collection<java.lang.String> |
getSetableParameters()
Return list of all parameters that can be set. |
double |
getSourceActivation()
returns the transient amount of source activation |
double |
getSpreadingActivation()
Get the transient amount of spreading activation to this chunk. |
int |
getTimesInContext()
Get the number of times this chunk has been a slot value of a chunk in the goal buffer. |
int |
getTimesNeeded()
Return the number of times that this chunk has been needed in a buffer other than the goal buffer. |
void |
incrementTimesInContext()
Description of the Method |
void |
incrementTimesNeeded()
Description of the Method |
void |
setActivation(double act)
Set the total activation. |
void |
setBaseLevelActivation(double base)
Set the base-level activation. |
void |
setCreationTime(double time)
set the creation time and pass on an event. |
void |
setParameter(java.lang.String key,
java.lang.String value)
Set the named parameter |
void |
setSourceActivation(double source)
Set the source activation of this chunk. |
void |
setSpreadingActivation(double spread)
Sets the spreadingActivation attribute of the ISubsymbolicChunk object |
void |
setTimesInContext(int context)
Set number of times this chunk has been a slot value of a chunk in the goal buffer. |
void |
setTimesNeeded(int needed)
Sets the number of times that this chunk has been needed in a buffer other than the goal buffer. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractSubsymbolicChunk(IChunk parent)
| Method Detail |
|---|
public void accessed(double time)
ISubsymbolicChunk
accessed in interface ISubsymbolicChunktime - TODOpublic void dispose()
ISubsymbolicChunk
dispose in interface ISubsymbolicChunkpublic void encode(double when)
encode in interface ISubsymbolicChunkISubsymbolicChunk.encode(double)public double getActivation()
ISubsymbolicChunk
getActivation in interface ISubsymbolicChunkpublic double getBaseLevelActivation()
ISubsymbolicChunk
getBaseLevelActivation in interface ISubsymbolicChunkpublic double getCreationTime()
getCreationTime in interface ISubsymbolicChunkpublic IReferences getReferences()
ISubsymbolicChunk
getReferences in interface ISubsymbolicChunkpublic double getSourceActivation()
ISubsymbolicChunk
getSourceActivation in interface ISubsymbolicChunkpublic double getSpreadingActivation()
ISubsymbolicChunk
getSpreadingActivation in interface ISubsymbolicChunkpublic int getTimesInContext()
ISubsymbolicChunk
getTimesInContext in interface ISubsymbolicChunkpublic int getTimesNeeded()
ISubsymbolicChunk
getTimesNeeded in interface ISubsymbolicChunkpublic void incrementTimesInContext()
ISubsymbolicChunk
incrementTimesInContext in interface ISubsymbolicChunkpublic void incrementTimesNeeded()
ISubsymbolicChunk
incrementTimesNeeded in interface ISubsymbolicChunkpublic void setActivation(double act)
ISubsymbolicChunk
setActivation in interface ISubsymbolicChunkact - The new activation valuepublic void setBaseLevelActivation(double base)
ISubsymbolicChunk
setBaseLevelActivation in interface ISubsymbolicChunkbase - The new baseLevelActivation valuepublic void setCreationTime(double time)
ISubsymbolicChunk
setCreationTime in interface ISubsymbolicChunktime - The new creationTime valuepublic void setSourceActivation(double source)
ISubsymbolicChunk
setSourceActivation in interface ISubsymbolicChunksource - The new sourceActivation valuepublic void setSpreadingActivation(double spread)
ISubsymbolicChunk
setSpreadingActivation in interface ISubsymbolicChunkspread - The new spreadingActivation valuepublic void setTimesInContext(int context)
ISubsymbolicChunk
setTimesInContext in interface ISubsymbolicChunkcontext - The new timesInContext valuepublic void setTimesNeeded(int needed)
ISubsymbolicChunk
setTimesNeeded in interface ISubsymbolicChunkneeded - The new timesNeeded valuepublic java.lang.String getParameter(java.lang.String key)
IParameterized
getParameter in interface IParameterizedkey - Description of the Parameter
public java.util.Collection<java.lang.String> getPossibleParameters()
IParameterized
getPossibleParameters in interface IParameterizedpublic java.util.Collection<java.lang.String> getSetableParameters()
IParameterized
getSetableParameters in interface IParameterized
public void setParameter(java.lang.String key,
java.lang.String value)
IParameterized
setParameter in interface IParameterized
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||