edu.ou.mlfw
Interface Client<WORLD_STATE,CLIENT_STATE,ACTION>
- All Known Subinterfaces:
- InteractiveClient
- All Known Implementing Classes:
- AbstractClient, AbstractMancalaClient, AbstractPacmanClient, ClosePelletGrabber, DepthFirstClient, PacmanFinder, PelletFinder, RandomClient, RandomClient
public interface Client<WORLD_STATE,CLIENT_STATE,ACTION>
An interface for defining clients that can be used in the mlfw framework.
A client is responsible for selecting actions for a controllable. Hooks are
provided to observe the resulting state after an action has been taken, to
initialize the client from a file-based configuration, and to load data into
the client from a file. There is also a method provided that will set the
display name for the client that will be used in mlfw-generated reports and
in a gui if one is enabled.
startAction
ACTION startAction(WORLD_STATE world,
CLIENT_STATE client)
endAction
void endAction(WORLD_STATE world,
CLIENT_STATE client)
initialize
void initialize(java.io.File config)
loadData
void loadData(java.io.File data)
shutdown
void shutdown()
setDisplayName
void setDisplayName(java.lang.String name)
getDisplayName
java.lang.String getDisplayName()