public class FTGManager extends java.lang.Object implements StudiedSystem
Modifier and Type | Field and Description |
---|---|
gameInterface.AIInterface |
AI
The ai.
|
Constructor and Description |
---|
FTGManager()
Instantiates a new FTG manager.
|
Modifier and Type | Method and Description |
---|---|
structs.Key |
computeKey(structs.FrameData frameData,
boolean player)
Compute the output for FTGAI.
|
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 |
setAmoeba(AMOEBA amoeba)
Sets the amoeba.
|
void |
switchControlMode()
Switch control mode.
|
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 structs.Key computeKey(structs.FrameData frameData, boolean player)
frameData
- the frame dataplayer
- the playerpublic void switchControlMode()
StudiedSystem
switchControlMode
in interface StudiedSystem
public void setAmoeba(AMOEBA amoeba)
amoeba
- the new amoeba