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)
StudiedSystemplayOneStep in interface StudiedSystemaction - : output action of AMOEBA.public java.util.HashMap<java.lang.String,java.lang.Double> getOutput()
StudiedSystemgetOutput in interface StudiedSystempublic structs.Key computeKey(structs.FrameData frameData,
boolean player)
frameData - the frame dataplayer - the playerpublic void switchControlMode()
StudiedSystemswitchControlMode in interface StudiedSystempublic void setAmoeba(AMOEBA amoeba)
amoeba - the new amoeba