public class NondeterministicVacuumEnvironment extends VacuumEnvironment
VacuumEnvironment.LocationState
ACTION_MOVE_LEFT, ACTION_MOVE_RIGHT, ACTION_SUCK, envState, isDone, LOCATION_A, LOCATION_B
agents, envObjects, performanceMeasures, views
Constructor and Description |
---|
NondeterministicVacuumEnvironment()
Construct a vacuum environment with two locations, in which dirt is
placed at random.
|
NondeterministicVacuumEnvironment(VacuumEnvironment.LocationState locAState,
VacuumEnvironment.LocationState locBState)
Construct a vacuum environment with two locations, in which dirt is
placed as specified.
|
Modifier and Type | Method and Description |
---|---|
void |
executeAction(Agent a,
Action agentAction)
Execute the agent action
|
addAgent, addAgent, getAgentLocation, getCurrentState, getLocations, getLocationState, getPerceptSeenBy, isDone
addEnvironmentObject, addEnvironmentView, createExogenousChange, getAgents, getEnvironmentObjects, getPerformanceMeasure, notifyEnvironmentViews, notifyEnvironmentViews, notifyViews, removeAgent, removeEnvironmentObject, removeEnvironmentView, step, step, stepUntilDone, updatePerformanceMeasure
public NondeterministicVacuumEnvironment()
public NondeterministicVacuumEnvironment(VacuumEnvironment.LocationState locAState, VacuumEnvironment.LocationState locBState)
locAState
- the initial state of location A, which is either
Clean or Dirty.locBState
- the initial state of location B, which is either
Clean or Dirty.public void executeAction(Agent a, Action agentAction)
executeAction
in class VacuumEnvironment