clarion.system
Class WorkingMemoryAction
java.lang.Object
java.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
clarion.system.AbstractAction
clarion.system.WorkingMemoryAction
- All Implemented Interfaces:
- InterfaceStochasticallySelectable, InterfaceTracksTime, java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,Dimension>
public class WorkingMemoryAction
- extends AbstractAction
This class implements a working memory action within CLARION. It extends the AbstractAction class.
Usage:
A working memory action is an action that is performed internally. Working memory actions are used internally by CLARION to
set, reset, remove, or change the activations of the values for a working memory chunks in the working memory.
An action chunk is attached to the output layer of the bottom level implicit modules in the ACS as well as to rules
on the top level. Actions are not required to have dimension-value pairs, but it is advised they be provided as
they act as the "instructions" that dictate how an action is to be performed.
Activated values within the action chunk indicate the parts of the action that should be performed. Non-activated values in the
action chunk are used to specify those components that should NOT be performed. Therefore, both activation and non-activation of
values provide important information for how to handle the action.
Currently, working memory actions are delivered to the task environment in which the agent exists and it is the user's
responsibility to handle the directives of the working memory action. However, in future versions of this Library, the performing
of these actions will be internalized.
- Version:
- 6.0.4
- Author:
- Nick Wilson
- See Also:
- Serialized Form
Fields inherited from class clarion.system.AbstractOutputChunk |
C, D, FULL_ACTIVATION_LEVEL, GLOBAL_C, GLOBAL_D, GLOBAL_FULL_ACTIVATION_LEVEL, GLOBAL_INITIAL_BLA, GLOBAL_MINIMUM_ACTIVATION_THRESHOLD, GLOBAL_PERSISTENCE, INITIAL_BLA, MINIMUM_ACTIVATION_THRESHOLD, PERSISTENCE |
Constructor Summary |
WorkingMemoryAction(java.lang.Object id)
Initializes the working memory action with the ID specified. |
WorkingMemoryAction(java.lang.Object id,
java.util.Collection<? extends Dimension> dims)
Initializes the working memory action with the specified ID and dimensions. |
WorkingMemoryAction(java.lang.Object id,
java.util.Map<? extends java.lang.Object,? extends Dimension> dims)
Initializes the working memory action with the specified ID and map of dimensions. |
Methods inherited from class clarion.system.AbstractOutputChunk |
addTimeStamp, adjustSelectionMeasure, getActivation, getBLA, getBLSelectionMeasure, getFinalSelectionMeasure, getTLSelectionMeasure, resetActivation, setActivation, setBLSelectionMeasure, setFinalSelectionMeasure, setTLSelectionMeasure |
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 |
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
hash
private int hash
- The hash for this object. When this item is cloned, so is this hash.
WorkingMemoryAction
public WorkingMemoryAction(java.lang.Object id)
- Initializes the working memory action with the ID specified.
- Parameters:
id
- The ID of the working memory action.
WorkingMemoryAction
public WorkingMemoryAction(java.lang.Object id,
java.util.Collection<? extends Dimension> dims)
- Initializes the working memory action with the specified ID and dimensions.
- Parameters:
id
- The ID of the working memory action.dims
- The dimensions for the working memory action.
WorkingMemoryAction
public WorkingMemoryAction(java.lang.Object id,
java.util.Map<? extends java.lang.Object,? extends Dimension> dims)
- Initializes the working memory action with the specified ID and map of dimensions.
- Parameters:
id
- The ID of the working memory action.dims
- The map of dimensions for the working memory action.
hashCode
public int hashCode()
- Specified by:
hashCode
in interface java.util.Map<java.lang.Object,Dimension>
- Overrides:
hashCode
in class DimensionValueCollection
clone
public WorkingMemoryAction clone()
- Clones the working memory action (including all of it's dimensions).
- Specified by:
clone
in class AbstractAction
- Returns:
- A copy of the working memory action.