Agent¶
-
public abstract class
Agent
implements Serializable¶ The base type for any agent that can interact with the Sepia environment.
Author: Tim
Fields¶
configuration¶
-
protected Configuration
configuration
¶
Constructors¶
Methods¶
clearVisualLog¶
-
public void
clearVisualLog
()¶ Clear the visual log maintained by this agent. If it is not initialized, this calls initializeVisualAgent.
closeVisualLog¶
-
public void
closeVisualLog
()¶ If the visual log is initialized, then close the window and release the reference.
initialStep¶
initializeVisualLog¶
-
protected void
initializeVisualLog
()¶ Initialize the visual log, constructing it.
loadPlayerData¶
-
public abstract void
loadPlayerData
(InputStream is)¶ Load data stored by the agent.
Parameters: - is – An input stream, such as from a file.
See also:
{@link.savePlayerData(OutputStream)}
middleStep¶
savePlayerData¶
-
public abstract void
savePlayerData
(OutputStream os)¶ Save data accumulated by the agent.
Parameters: - os – An output stream, such as to a file.
See also:
{@link.loadPlayerData(InputStream)}
setConfiguration¶
-
public void
setConfiguration
(Configuration configuration)¶
setVerbose¶
-
public void
setVerbose
(boolean verbosity)¶ Determines whether to print out the action list each time it is chosen by
getAction()
Parameters: - verbosity –
setVisualLogDimensions¶
-
public void
setVisualLogDimensions
(int width, int height)¶ Resize the visual log to a new size.
Parameters: - width –
- height –