public class SGToSADomain extends java.lang.Object implements DomainGenerator
SGAgentType
object or for a given list of stochastic games agent actions (SGAgentAction
).
Each of the stochastic game agent actions is converted into a single agent Action
object with the same
action name and parametrization. The created SADomain
's Action
objects maintain the action specification of
the input SGDomain
's SGAgentAction
(that is, their name and parameter types), but
the Action.performAction(burlap.oomdp.core.states.State, burlap.oomdp.singleagent.GroundedAction)
method is undefined since the transition dynamics would depend on the action selection of other agents, which is unknown. Instead, actions can only
be executed through the Action.performInEnvironment(burlap.oomdp.singleagent.environment.Environment, burlap.oomdp.singleagent.GroundedAction)
method only
in which the specified Environment
handles the decisions of the other agents. For example, this domain
can typically be paired with the LearningAgentToSGAgentInterface
, which will handle these calls
indirectly by simultaneously acting as a stochastic game SGAgent
.Modifier and Type | Class and Description |
---|---|
static class |
SGToSADomain.GroundedSAAActionWrapper |
static class |
SGToSADomain.GroundedSObParamedAAActionWrapper |
static class |
SGToSADomain.SAActionWrapper
A single agent action wrapper for a stochastic game action.
|
Constructor and Description |
---|
SGToSADomain(SGDomain srcDomain,
java.util.List<SGAgentAction> useableActions)
Initializes.
|
SGToSADomain(SGDomain srcDomain,
SGAgentType asAgentType)
Initializes.
|
Modifier and Type | Method and Description |
---|---|
Domain |
generateDomain()
Returns a newly instanced Domain object
|
public SGToSADomain(SGDomain srcDomain, SGAgentType asAgentType)
srcDomain
- the source stochastic games domainasAgentType
- the SGAgentType
object specifying the actions that should be created in the single agent domain.public SGToSADomain(SGDomain srcDomain, java.util.List<SGAgentAction> useableActions)
srcDomain
- the source stochastic games domainuseableActions
- the stochastic game actions for which single agent actions should be created created in the single agent domain.public Domain generateDomain()
DomainGenerator
generateDomain
in interface DomainGenerator