|
||||||||||
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,C>
clarion.system.AbstractChunkCollection<C>
clarion.system.AbstractOutputChunkCollection<AbstractAction>
clarion.system.ActionCollection
public class ActionCollection
This class implements an action collection within CLARION. It extends the AbstractOutputChunkCollection class.
Usage:
This class acts as a container for holding actions.
Field Summary | |
---|---|
private int |
hash
The hash for this object. |
private static long |
serialVersionUID
|
protected boolean |
USE_DO_NOTHING_EXTERNAL
The flag indicating whether or not the "DO_NOTHING_EXTERNAL" action should be returned by the getExternalActions methods. |
protected boolean |
USE_DO_NOTHING_GOAL
The flag indicating whether or not the "DO_NOTHING_GOAL" action should be returned by the getGoalActions methods. |
protected boolean |
USE_DO_NOTHING_WM
The flag indicating whether or not the "DO_NOTHING_WM" action should be returned by the getWMActions methods. |
Constructor Summary | |
---|---|
ActionCollection()
Initializes an action collection. |
|
ActionCollection(java.util.Collection<? extends AbstractAction> Actions)
Initializes an action collection with the collection of actions specified. |
|
ActionCollection(java.util.Map<? extends java.lang.Object,? extends AbstractAction> map)
Initializes the action collection with the map of actions. |
Method Summary | |
---|---|
ActionCollection |
clone()
Clones the action collection (including all of the actions in the collection). |
boolean |
containsKeys(java.lang.Object ActCollection)
Checks to see if the specified object is an action collection and that all of the keys within the specified action collection are specified within this collection. |
boolean |
equals(java.lang.Object ActCollection)
Checks to see if the specified object is an action collection and that all of the actions within the specified action collection are equal to the actions in this collection. |
java.util.Collection<AbstractAction> |
getExternalActions()
Gets the external actions in this collection. |
java.util.Collection<AbstractAction> |
getGoalActions()
Gets the goal actions in this collection. |
java.util.Collection<AbstractAction> |
getWMActions()
Gets the working memory actions in this collection. |
int |
hashCode()
|
DimensionValueCollection |
toDimensionValueCollection()
Returns the action collection as a dimension-value collection that contains a dimension for each unique dimension within the action of the action collection. |
Methods inherited from class clarion.system.AbstractChunkCollection |
---|
put, putAll |
Methods inherited from class java.util.LinkedHashMap |
---|
clear, containsValue, get, removeEldestEntry |
Methods inherited from class java.util.HashMap |
---|
containsKey, entrySet, isEmpty, keySet, remove, size, values |
Methods inherited from class java.util.AbstractMap |
---|
toString |
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, size, values |
Field Detail |
---|
private static final long serialVersionUID
private int hash
protected boolean USE_DO_NOTHING_EXTERNAL
protected boolean USE_DO_NOTHING_WM
protected boolean USE_DO_NOTHING_GOAL
Constructor Detail |
---|
public ActionCollection()
public ActionCollection(java.util.Collection<? extends AbstractAction> Actions)
Actions
- The actions for the collection.public ActionCollection(java.util.Map<? extends java.lang.Object,? extends AbstractAction> map)
map
- The map of actions for the action collection.Method Detail |
---|
public java.util.Collection<AbstractAction> getExternalActions()
public java.util.Collection<AbstractAction> getWMActions()
public java.util.Collection<AbstractAction> getGoalActions()
public DimensionValueCollection toDimensionValueCollection()
This method is used to provide the actions to the subsystems in a format that can be used as input.
toDimensionValueCollection
in class AbstractChunkCollection<AbstractAction>
public boolean containsKeys(java.lang.Object ActCollection)
containsKeys
in class AbstractChunkCollection<AbstractAction>
ActCollection
- The collection to compare to this collection.
public boolean equals(java.lang.Object ActCollection)
equals
in interface java.util.Map<java.lang.Object,AbstractAction>
equals
in class AbstractChunkCollection<AbstractAction>
ActCollection
- The collection to compare to this collection.
public int hashCode()
hashCode
in interface java.util.Map<java.lang.Object,AbstractAction>
hashCode
in class java.util.AbstractMap<java.lang.Object,AbstractAction>
public ActionCollection clone()
clone
in class AbstractOutputChunkCollection<AbstractAction>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |