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 StateAbstraction |
abstractionForAgents |
protected SGDomain |
domain |
protected SGStateGenerator |
initialStateGenerator |
protected JointReward |
jointRewardModel |
protected TerminalFunction |
tf |
protected JointActionModel |
worldModel |
Constructor and Description |
---|
ConstantWorldGenerator(SGDomain domain,
JointActionModel jam,
JointReward jr,
TerminalFunction tf,
SGStateGenerator sg)
Deprecated.
|
ConstantWorldGenerator(SGDomain domain,
JointActionModel jam,
JointReward jr,
TerminalFunction tf,
SGStateGenerator sg,
StateAbstraction abstractionForAgents)
Deprecated.
|
ConstantWorldGenerator(SGDomain domain,
JointReward jr,
TerminalFunction tf,
SGStateGenerator sg)
Initializes the WorldGenerator.
|
ConstantWorldGenerator(SGDomain domain,
JointReward jr,
TerminalFunction tf,
SGStateGenerator sg,
StateAbstraction abstractionForAgents)
Initializes the WorldGenerator.
|
Modifier and Type | Method and Description |
---|---|
protected void |
CWGInit(SGDomain domain,
JointReward jr,
TerminalFunction tf,
SGStateGenerator sg,
StateAbstraction abstractionForAgents) |
World |
generateWorld()
Generates a new
World instance. |
protected SGDomain domain
protected JointActionModel worldModel
protected JointReward jointRewardModel
protected TerminalFunction tf
protected SGStateGenerator initialStateGenerator
protected StateAbstraction abstractionForAgents
@Deprecated public ConstantWorldGenerator(SGDomain domain, JointActionModel jam, JointReward jr, TerminalFunction tf, SGStateGenerator sg)
SGDomain
objects are now expected
to have a JointActionModel
associated with them, making the constructor parameter for it
unnecessary. Instead use the constructor ConstantWorldGenerator(burlap.oomdp.stochasticgames.SGDomain, burlap.oomdp.stochasticgames.JointReward, burlap.oomdp.core.TerminalFunction, burlap.oomdp.stochasticgames.SGStateGenerator)
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, JointReward jr, TerminalFunction tf, SGStateGenerator 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, JointActionModel jam, JointReward jr, TerminalFunction tf, SGStateGenerator sg, StateAbstraction abstractionForAgents)
SGDomain
objects are now expected
to have a JointActionModel
associated with them, making the constructor parameter for it
unnecessary. Instead use the constructor ConstantWorldGenerator(burlap.oomdp.stochasticgames.SGDomain, burlap.oomdp.stochasticgames.JointReward, burlap.oomdp.core.TerminalFunction, burlap.oomdp.stochasticgames.SGStateGenerator, burlap.oomdp.auxiliary.StateAbstraction)
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, JointReward jr, TerminalFunction tf, SGStateGenerator sg, StateAbstraction 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, JointReward jr, TerminalFunction tf, SGStateGenerator sg, StateAbstraction abstractionForAgents)
public World generateWorld()
WorldGenerator
World
instance.generateWorld
in interface WorldGenerator
World
instance.