public class ConstantWorldGenerator extends java.lang.Object implements WorldGenerator
World
constructor
and simply passes them to the World Constructor when a new World needs to be generated.Modifier and Type | Field and Description |
---|---|
protected StateMapping |
abstractionForAgents |
protected SGDomain |
domain |
protected StateGenerator |
initialStateGenerator |
protected JointRewardFunction |
jointRewardFunctionModel |
protected TerminalFunction |
tf |
protected JointModel |
worldModel |
Constructor and Description |
---|
ConstantWorldGenerator(SGDomain domain,
JointModel jam,
JointRewardFunction jr,
TerminalFunction tf,
StateGenerator sg)
Deprecated.
|
ConstantWorldGenerator(SGDomain domain,
JointModel jam,
JointRewardFunction jr,
TerminalFunction tf,
StateGenerator sg,
StateMapping abstractionForAgents)
Deprecated.
|
ConstantWorldGenerator(SGDomain domain,
JointRewardFunction jr,
TerminalFunction tf,
StateGenerator sg)
Initializes the WorldGenerator.
|
ConstantWorldGenerator(SGDomain domain,
JointRewardFunction jr,
TerminalFunction tf,
StateGenerator sg,
StateMapping abstractionForAgents)
Initializes the WorldGenerator.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CWGInit(SGDomain domain,
JointRewardFunction jr,
TerminalFunction tf,
StateGenerator sg,
StateMapping abstractionForAgents) |
World |
generateWorld()
Generates a new
World instance. |
protected SGDomain domain
protected JointModel worldModel
protected JointRewardFunction jointRewardFunctionModel
protected TerminalFunction tf
protected StateGenerator initialStateGenerator
protected StateMapping abstractionForAgents
@Deprecated public ConstantWorldGenerator(SGDomain domain, JointModel jam, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg)
SGDomain
objects are now expected
to have a JointModel
associated with them, making the constructor parameter for it
unnecessary. Instead use the constructor ConstantWorldGenerator(burlap.mdp.stochasticgames.SGDomain, JointRewardFunction, burlap.mdp.core.TerminalFunction, StateGenerator)
domain
- the SGDomain the world will usejam
- the joint action model that specifies the transition dynamicsjr
- the joint reward functiontf
- the terminal functionsg
- a state generator for generating initial states of a gamepublic ConstantWorldGenerator(SGDomain domain, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg)
domain
- the SGDomain the world will usejr
- the joint reward functiontf
- the terminal functionsg
- a state generator for generating initial states of a game@Deprecated public ConstantWorldGenerator(SGDomain domain, JointModel jam, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg, StateMapping abstractionForAgents)
SGDomain
objects are now expected
to have a JointModel
associated with them, making the constructor parameter for it
unnecessary. Instead use the constructor ConstantWorldGenerator(burlap.mdp.stochasticgames.SGDomain, JointRewardFunction, burlap.mdp.core.TerminalFunction, StateGenerator, burlap.mdp.auxiliary.StateMapping)
domain
- the SGDomain the world will usejam
- the joint action model that specifies the transition dynamicsjr
- the joint reward functiontf
- the terminal functionsg
- a state generator for generating initial states of a gameabstractionForAgents
- the abstract state representation that agents will be providedpublic ConstantWorldGenerator(SGDomain domain, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg, StateMapping abstractionForAgents)
domain
- the SGDomain the world will usejr
- the joint reward functiontf
- the terminal functionsg
- a state generator for generating initial states of a gameabstractionForAgents
- the abstract state representation that agents will be providedprotected void CWGInit(SGDomain domain, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg, StateMapping abstractionForAgents)
public World generateWorld()
WorldGenerator
World
instance.generateWorld
in interface WorldGenerator
World
instance.