|
||||||||||
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
clarion.system.AbstractAction
public abstract class AbstractAction
This class implements an action chunk within CLARION. It extends the AbstractOutputChunk class. This class is abstract and therefore cannot be instantiated on its own.
Usage:
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.
Known Subclasses:
Field Summary | |
---|---|
private static long |
serialVersionUID
|
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 | |
---|---|
AbstractAction(java.lang.Object id)
Initializes the action with the ID specified. |
|
AbstractAction(java.lang.Object id,
java.util.Collection<? extends Dimension> dims)
Initializes the action with the specified ID and dimensions. |
|
AbstractAction(java.lang.Object id,
java.util.Map<? extends java.lang.Object,? extends Dimension> dims)
Initializes the action with the specified ID and map of dimensions. |
Method Summary | |
---|---|
abstract AbstractAction |
clone()
Clones the chunk (including all of it's dimensions). |
Dimension |
put(java.lang.Object key,
Dimension dim)
Puts the dimension into the action as long as the dimension is not already in the action. |
void |
putAll(java.util.Map<? extends java.lang.Object,? extends Dimension> map)
Puts all of the dimensions in the specified map into the action as long as the dimensions are not already in the action. |
Methods inherited from class clarion.system.AbstractOutputChunk |
---|
addTimeStamp, adjustSelectionMeasure, getActivation, getBLA, getBLSelectionMeasure, getFinalSelectionMeasure, getTLSelectionMeasure, resetActivation, setActivation, setBLSelectionMeasure, setFinalSelectionMeasure, setTLSelectionMeasure |
Methods inherited from class clarion.system.AbstractChunk |
---|
equals, equalsID, getID, toString |
Methods inherited from class clarion.system.DimensionValueCollection |
---|
containsKeys, getNumDVPairs, getValueCollection, hashCode, 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
Constructor Detail |
---|
public AbstractAction(java.lang.Object id)
id
- The ID of the action.public AbstractAction(java.lang.Object id, java.util.Collection<? extends Dimension> dims)
id
- The ID of the action.dims
- The dimensions for the action.public AbstractAction(java.lang.Object id, java.util.Map<? extends java.lang.Object,? extends Dimension> dims)
id
- The ID of the action.dims
- The map of dimensions for the action.Method Detail |
---|
public Dimension put(java.lang.Object key, Dimension dim) throws java.lang.IllegalArgumentException
put
in interface java.util.Map<java.lang.Object,Dimension>
put
in class DimensionValueCollection
key
- The key with which the specified dimension is to be associated. This MUST be the ID
of the specified dimension.dim
- The dimension to add to the action.
java.lang.IllegalArgumentException
- If the dimension is already in the action
or the specified key is not the ID of the specified dimension.public void putAll(java.util.Map<? extends java.lang.Object,? extends Dimension> map)
putAll
in interface java.util.Map<java.lang.Object,Dimension>
putAll
in class DimensionValueCollection
map
- The map of dimensions to add.public abstract AbstractAction clone()
AbstractChunk
clone
in class AbstractOutputChunk
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |