public class ALEMDP extends Object implements MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>
| Modifier and Type | Class and Description |
|---|---|
static class |
ALEMDP.Configuration |
static class |
ALEMDP.GameScreen |
| Modifier and Type | Field and Description |
|---|---|
protected int[] |
actions |
protected org.bytedeco.ale.ALEInterface |
ale |
protected ALEMDP.Configuration |
configuration |
protected DiscreteSpace |
discreteSpace |
protected ObservationSpace<ALEMDP.GameScreen> |
observationSpace |
protected boolean |
render |
protected String |
romFile |
protected double |
scaleFactor |
| Constructor and Description |
|---|
ALEMDP(String romFile) |
ALEMDP(String romFile,
boolean render) |
ALEMDP(String romFile,
boolean render,
ALEMDP.Configuration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
DiscreteSpace |
getActionSpace() |
ObservationSpace<ALEMDP.GameScreen> |
getObservationSpace() |
boolean |
isDone() |
ALEMDP |
newInstance() |
ALEMDP.GameScreen |
reset() |
void |
setupGame() |
StepReply<ALEMDP.GameScreen> |
step(Integer action) |
protected org.bytedeco.ale.ALEInterface ale
protected final int[] actions
protected final DiscreteSpace discreteSpace
protected final ObservationSpace<ALEMDP.GameScreen> observationSpace
protected final String romFile
protected final boolean render
protected final ALEMDP.Configuration configuration
protected double scaleFactor
public ALEMDP(String romFile)
public ALEMDP(String romFile, boolean render)
public ALEMDP(String romFile, boolean render, ALEMDP.Configuration configuration)
public void setupGame()
public boolean isDone()
isDone in interface MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>public ALEMDP.GameScreen reset()
reset in interface MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>public void close()
close in interface MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>public StepReply<ALEMDP.GameScreen> step(Integer action)
step in interface MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>public ObservationSpace<ALEMDP.GameScreen> getObservationSpace()
getObservationSpace in interface MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>public DiscreteSpace getActionSpace()
getActionSpace in interface MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>public ALEMDP newInstance()
newInstance in interface MDP<ALEMDP.GameScreen,Integer,DiscreteSpace>Copyright © 2021. All rights reserved.