public class SGDomain extends Domain
Domain
class
by including an index for possible actions each individual agent can take and the joint action model that defines the
"physics" of the domain.Modifier and Type | Field and Description |
---|---|
protected JointActionModel |
jam
The joint action model of the domain
|
protected java.util.Map<java.lang.String,SingleAction> |
singleActionMap
A map from action names to their corresponding
SingleAction |
protected java.util.Set<SingleAction> |
singleActions
The full set of actions that could be taken by any agent.
|
attributeMap, attributes, debugCode, objectClasses, objectClassMap, objectIdentifierDependentDomain, propFunctionMap, propFunctions
Constructor and Description |
---|
SGDomain() |
Modifier and Type | Method and Description |
---|---|
void |
addAction(Action act)
Add a single agent action that defines 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.
|
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.
|
JointActionModel |
getJointActionModel()
Returns the joint action model associated with 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 |
setJointActionModel(JointActionModel jam)
Sets the joint action model associated with this domain.
|
addAttribute, addObjectClass, addPropositionalFunction, getAttribute, getAttributes, getDebugCode, getNewDomainWithCopiedObjectClasses, getObjectClass, getObjectClasses, getPropFunction, getPropFunctions, getPropositionlFunctionsFromObjectClass, getPropositionlFunctionsMap, isObjectIdentifierDependent, setDebugCode, setObjectIdentiferDependence, toggleDebugPrinting
protected java.util.Set<SingleAction> singleActions
protected java.util.Map<java.lang.String,SingleAction> singleActionMap
SingleAction
protected JointActionModel jam
public void setJointActionModel(JointActionModel jam)
jam
- the joint action model to associate with this domain.public JointActionModel getJointActionModel()
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 returnpublic void addAction(Action act)
Domain
public java.util.List<Action> getActions()
Domain
getActions
in class Domain
public Action getAction(java.lang.String name)
Domain
protected Domain newInstance()
Domain
newInstance
in class Domain