Environment

public class Environment

Simulates the environment component in a standard Reinforcement Learning setting. One can run episodes from this class.

Constructors

Environment

public Environment(Agent[] connectedagents, Model model, int seed)

Environment

public Environment(Agent[] connectedagents, Model model, TurnTracker turnTracker)

Methods

forceNewEpisode

public void forceNewEpisode()

getAgents

public final Agent[] getAgents()

getModel

public final Model getModel()

getStepNumber

public int getStepNumber()

isTerminated

public boolean isTerminated()

runEpisode

public final void runEpisode()

step

public boolean step()

Step through an episode

Throws:
Returns:

Return whether it has terminated.

terminalStep

public final void terminalStep()