/** * Initializes the WorldGenerator. * @param domain the SGDomain the world will use * @param jr the joint reward function * @param tf the terminal function * @param sg a state generator for generating initial states of a game */ public ConstantWorldGenerator(SGDomain domain, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg){ this.CWGInit(domain, jr, tf, sg, new IdentityStateMapping()); }
/** * This constructor is deprecated, because {@link burlap.mdp.stochasticgames.SGDomain} objects are now expected * to have a {@link JointModel} associated with them, making the constructor parameter for it * unnecessary. Instead use the constructor {@link #ConstantWorldGenerator(burlap.mdp.stochasticgames.SGDomain, JointRewardFunction, burlap.mdp.core.TerminalFunction, StateGenerator)} * @param domain the SGDomain the world will use * @param jam the joint action model that specifies the transition dynamics * @param jr the joint reward function * @param tf the terminal function * @param sg a state generator for generating initial states of a game */ @Deprecated public ConstantWorldGenerator(SGDomain domain, JointModel jam, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg){ this.CWGInit(domain, jr, tf, sg, new IdentityStateMapping()); }
/** * Initializes the world. * @param domain the SGDomain the world will use * @param jr the joint reward function * @param tf the terminal function * @param sg a state generator for generating initial states of a game */ public World(SGDomain domain, JointRewardFunction jr, TerminalFunction tf, StateGenerator sg){ this.init(domain, domain.getJointActionModel(), jr, tf, sg, new IdentityStateMapping()); }
/** * Initializes the world. * @param domain the SGDomain the world will use * @param jr the joint reward function * @param tf the terminal function * @param initialState the initial state of the world every time a new game starts */ public World(SGDomain domain, JointRewardFunction jr, TerminalFunction tf, State initialState){ this.init(domain, domain.getJointActionModel(), jr, tf, new ConstantStateGenerator(initialState), new IdentityStateMapping()); }