|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.HashMap<K,V>
java.util.LinkedHashMap<java.lang.Object,Dimension>
clarion.system.DimensionValueCollection
clarion.system.AbstractChunk
clarion.system.AbstractOutputChunk
public abstract class AbstractOutputChunk
This class implements an output chunk within CLARION. It extends the AbstractChunk class and implements the InterfaceTracksTime and InterfaceStochasticallySelectable interfaces. This class is abstract and therefore cannot be instantiated on its own.
Usage:
An output chunk is a specific case of a chunk that can be set as a node in the output layer of an implicit module. More specifically, unlike a normal chunk, an output chunk has an activation that can be used to store pertinent activation information for objects like drives, goals, or actions.
In addition, output chunks can also be used to keep track of selection measures for both the top and bottom level of the CLARION subsystems, which is used for combination and/or stochastic selection.
Known Subclasses:
This class contains both global (static) and local constants. The default is to use the local constants. If you want to change any of the global constants, you need to do so before any instances of this class are initialized.
Field Summary | |
---|---|
private double |
Activation
The activation of the output chunk. |
double |
C
Constant c. |
double |
D
Constant d. |
private double |
FinalSelectionMeasure
The final selection measure used during stochastic selection. |
double |
FULL_ACTIVATION_LEVEL
The level at which an output chunk is considered to be fully activated. |
static double |
GLOBAL_C
Constant c. |
static double |
GLOBAL_D
Constant d. |
static double |
GLOBAL_FULL_ACTIVATION_LEVEL
The level at which an output chunk is considered to be fully activated. |
static double |
GLOBAL_INITIAL_BLA
The initalBLA. |
static double |
GLOBAL_MINIMUM_ACTIVATION_THRESHOLD
The minimum threshold an output chunk activation must be above to be considered activated. |
static double |
GLOBAL_PERSISTENCE
The persistence factor for the previous selection (if used). |
double |
INITIAL_BLA
The initalBLA. |
double |
MINIMUM_ACTIVATION_THRESHOLD
The minimum threshold an output chunk activation must be above to be considered activated. |
double |
PERSISTENCE
The persistence factor for the previous selection (if used). |
private double |
SelectionMeasureBL
The selection measure used by the bottom level (usually the same as the activation). |
private double |
SelectionMeasureTL
The selection measure used by the top level (in the case of the ACS, can be: Support or Utility). |
private static long |
serialVersionUID
|
private java.util.LinkedList<java.lang.Long> |
T
Time stamps for each usage of the chunk. |
Constructor Summary | |
---|---|
AbstractOutputChunk(java.lang.Object id)
Initializes the output chunk with the ID specified. |
|
AbstractOutputChunk(java.lang.Object id,
java.util.Collection<? extends Dimension> dims)
Initializes the output chunk with the specified ID and dimensions. |
|
AbstractOutputChunk(java.lang.Object id,
java.util.Map<? extends java.lang.Object,? extends Dimension> dims)
Initializes the output chunk with the specified ID and map of dimensions. |
Method Summary | |
---|---|
void |
addTimeStamp(long stamp)
Adds a time stamp to this chunk. |
protected double |
adjustSelectionMeasure(double current,
double last)
Adjusts the specified selection measure by the persistence factor. |
abstract AbstractOutputChunk |
clone()
Clones the chunk (including all of it's dimensions). |
double |
getActivation()
Gets the activation level. |
double |
getBLA()
Gets the BLA of this chunk. |
double |
getBLSelectionMeasure()
Gets the bottom level selection measure. |
double |
getFinalSelectionMeasure()
Gets the final selection measure used for stochastic selection. |
double |
getTLSelectionMeasure()
Gets the top level selection measure. |
void |
resetActivation()
Resets the activation of the output chunk. |
void |
setActivation(double act)
Sets the activation level for the output chunk. |
void |
setBLSelectionMeasure(double Measure)
Sets the bottom level selection measure for this chunk. |
void |
setFinalSelectionMeasure(double Measure)
Sets the final selection measure. |
void |
setTLSelectionMeasure(double Measure)
Sets the top level selection measure for this chunk. |
Methods inherited from class clarion.system.AbstractChunk |
---|
equals, equalsID, getID, toString |
Methods inherited from class clarion.system.DimensionValueCollection |
---|
containsKeys, getNumDVPairs, getValueCollection, hashCode, put, putAll, size |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
---|
containsKey, entrySet, isEmpty, keySet, remove, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
---|
containsKey, entrySet, isEmpty, keySet, remove, values |
Field Detail |
---|
private static final long serialVersionUID
private double Activation
private double SelectionMeasureBL
private double SelectionMeasureTL
private double FinalSelectionMeasure
public static double GLOBAL_MINIMUM_ACTIVATION_THRESHOLD
public double MINIMUM_ACTIVATION_THRESHOLD
public static double GLOBAL_FULL_ACTIVATION_LEVEL
public double FULL_ACTIVATION_LEVEL
public static double GLOBAL_PERSISTENCE
public double PERSISTENCE
public static double GLOBAL_INITIAL_BLA
public static double GLOBAL_C
public static double GLOBAL_D
public double INITIAL_BLA
public double C
public double D
private java.util.LinkedList<java.lang.Long> T
Constructor Detail |
---|
public AbstractOutputChunk(java.lang.Object id)
id
- The ID of the output chunk.public AbstractOutputChunk(java.lang.Object id, java.util.Collection<? extends Dimension> dims)
id
- The ID of the output chunk.dims
- The dimensions for the output chunk.public AbstractOutputChunk(java.lang.Object id, java.util.Map<? extends java.lang.Object,? extends Dimension> dims)
id
- The ID of the output chunk.dims
- The map of dimensions for the output chunk.Method Detail |
---|
public double getActivation()
public void setActivation(double act)
act
- The activation level to set.public double getBLSelectionMeasure()
public void setBLSelectionMeasure(double Measure)
Measure
- The selection measure to set.public double getTLSelectionMeasure()
public void setTLSelectionMeasure(double Measure)
Measure
- The selection measure to set.public double getFinalSelectionMeasure()
getFinalSelectionMeasure
in interface InterfaceStochasticallySelectable
public void setFinalSelectionMeasure(double Measure)
setFinalSelectionMeasure
in interface InterfaceStochasticallySelectable
Measure
- The value to set for the final selection measure.public void resetActivation()
protected double adjustSelectionMeasure(double current, double last)
current
- The current level of the specified selection measure for the output chunk.last
- The level of the specified selection measure for the output chunk from the last time step.
public double getBLA()
getBLA
in interface InterfaceTracksTime
public void addTimeStamp(long stamp)
addTimeStamp
in interface InterfaceTracksTime
stamp
- The time stamp to add.public abstract AbstractOutputChunk clone()
AbstractChunk
clone
in class AbstractChunk
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |