public class SGToSADomain extends java.lang.Object implements DomainGenerator
AgentType
object or for a given list of stochastic games single actions (SingleAction
).
Each of the stochastic game single actions is converted into a single agent Action
object with the same
action name and parameterizatiosn. Execution of the resulting Action
object tells a SingleAgentInterface
object
which action was selected so that it may be passed to a corresponding stochastic games world.
Note: subsequent calls to the generateDomain()
method
will not produce new single agent domain objects and will always return the same reference.Modifier and Type | Class and Description |
---|---|
protected class |
SGToSADomain.SAActionWrapper
A single agent action wrapper for a stochastic game action.
|
Modifier and Type | Field and Description |
---|---|
protected SADomain |
domainWrapper
The singel agent domain object that will be returned
|
protected SingleAgentInterface |
saInterface
The agent interface which single agent action objects will call
|
Constructor and Description |
---|
SGToSADomain(SGDomain srcDomain,
AgentType asAgentType,
SingleAgentInterface saInterface)
Initializes.
|
SGToSADomain(SGDomain srcDomain,
java.util.List<SingleAction> useableActions,
SingleAgentInterface saInterface)
Initializes.
|
Modifier and Type | Method and Description |
---|---|
Domain |
generateDomain()
Returns a newly instanced Domain object
|
protected SADomain domainWrapper
protected SingleAgentInterface saInterface
public SGToSADomain(SGDomain srcDomain, AgentType asAgentType, SingleAgentInterface saInterface)
srcDomain
- the source stochastic games domainasAgentType
- the AgentType
object specifying the actions that should be created in the single agent domain.saInterface
- the interface to single agent learning algorithms that the single agent actions created in this domain generator will call.public SGToSADomain(SGDomain srcDomain, java.util.List<SingleAction> useableActions, SingleAgentInterface saInterface)
srcDomain
- the source stochastic games domainuseableActions
- the stochastic game actions for whichsingle agent actions should be created created in the single agent domain.saInterface
- the interface to single agent learning algorithms that the single agent actions created in this domain generator will call.public Domain generateDomain()
DomainGenerator
generateDomain
in interface DomainGenerator