public class SADomain extends Domain
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,Action> |
actionMap |
protected java.util.List<Action> |
actions |
attributeMap, attributes, debugCode, objectClasses, objectClassMap, objectIdentifierDependentDomain, propFunctionMap, propFunctions
Constructor and Description |
---|
SADomain() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action act)
Add a single agent action that defines this domain.
|
void |
addActionObserverForAllAction(ActionObserver observer)
Adss the action observer to all actions associated with this domain.
|
void |
addSingleAction(SingleAction sa)
Add a stochastic game action that defines this domain that can be executed by an agent in the game.
|
void |
clearAllActionObserversForAllActions()
Clears all action observers for all action in this domain.
|
Action |
getAction(java.lang.String name)
Returns the single agent action with the given name.
|
java.util.List<Action> |
getActions()
Returns a list of the single agent actions that define this domain.
|
SingleAction |
getSingleAction(java.lang.String name)
Return the stochastic game action with the given name.
|
java.util.List<SingleAction> |
getSingleActions()
Returns a list of the stochastic game actions that that can be taken by individual agents in this domain.
|
protected Domain |
newInstance()
Will return a new instance of this Domain's class (either SADomain or SGDomain)
|
void |
setActionObserverForAllAction(ActionObserver observer)
Clears all action observers for all actions in this domain and then sets them to have the single action observer provided
|
addAttribute, addObjectClass, addPropositionalFunction, getAttribute, getAttributes, getDebugCode, getNewDomainWithCopiedObjectClasses, getObjectClass, getObjectClasses, getPropFunction, getPropFunctions, getPropositionlFunctionsFromObjectClass, getPropositionlFunctionsMap, isObjectIdentifierDependent, setDebugCode, setObjectIdentiferDependence, toggleDebugPrinting
protected java.util.List<Action> actions
protected java.util.Map<java.lang.String,Action> actionMap
public void setActionObserverForAllAction(ActionObserver observer)
observer
- the single action observer to set all actions to use.public void addActionObserverForAllAction(ActionObserver observer)
observer
- the observer to set all actions to use.public void clearAllActionObserversForAllActions()
public void addAction(Action act)
Domain
public java.util.List<Action> getActions()
Domain
getActions
in class Domain
public Action getAction(java.lang.String name)
Domain
public void addSingleAction(SingleAction sa)
Domain
addSingleAction
in class Domain
sa
- the stochastic game action that can be executed by an agent in the game.public java.util.List<SingleAction> getSingleActions()
Domain
getSingleActions
in class Domain
public SingleAction getSingleAction(java.lang.String name)
Domain
getSingleAction
in class Domain
name
- the name of the action to returnprotected Domain newInstance()
Domain
newInstance
in class Domain