public class MarioManager2Regression extends java.lang.Object implements StudiedSystem
Constructor and Description |
---|
MarioManager2Regression()
Instantiates a new mario manager 2 regression.
|
Modifier and Type | Method and Description |
---|---|
double |
average(java.util.ArrayList<java.lang.Double> list)
Average.
|
AMOEBA |
getAmoeba()
Gets the amoeba.
|
java.util.HashMap<java.lang.String,java.lang.Double> |
getOutput()
Gets the output.
|
void |
playOneStep(double action)
When the scheduler of AMOEBA has run one cycle, playOneStep is called to allow the studied system to perform it's own cycle.
|
void |
putInTempList(java.lang.Double d,
java.util.ArrayList<java.lang.Double> list)
Put in temp list.
|
void |
setAmoeba(AMOEBA amoeba)
Sets the amoeba.
|
void |
startMario()
Start mario.
|
void |
switchControlMode()
Switch control mode.
|
public MarioManager2Regression()
public void startMario()
public void playOneStep(double action)
StudiedSystem
playOneStep
in interface StudiedSystem
action
- : output action of AMOEBA.public java.util.HashMap<java.lang.String,java.lang.Double> getOutput()
StudiedSystem
getOutput
in interface StudiedSystem
public void switchControlMode()
StudiedSystem
switchControlMode
in interface StudiedSystem
public AMOEBA getAmoeba()
public double average(java.util.ArrayList<java.lang.Double> list)
list
- the listpublic void putInTempList(java.lang.Double d, java.util.ArrayList<java.lang.Double> list)
d
- the dlist
- the listpublic void setAmoeba(AMOEBA amoeba)
amoeba
- the new amoeba