|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object agent.Environment vacworld.VacuumWorld
public class VacuumWorld
A simulator for the vacuum cleaning world environment. This environment is inaccessible, deterministic, static and discrete.
Constructor Summary | |
---|---|
VacuumWorld()
|
|
VacuumWorld(boolean interactive)
|
|
VacuumWorld(java.io.PrintStream output,
boolean interactive)
|
Method Summary | |
---|---|
void |
addAgent(Agent agent)
Add a new agent to the environment. |
int |
getPerformanceMeasure(Agent ag)
Returns the performance measure of the agent in the current environment. |
int |
getTeamPerformanceMeasure()
Returns the performance measure of an agent team in the current environment. |
boolean |
gotHome()
Returns true if the robot has turned itself off in its origin square. |
static void |
main(java.lang.String[] args)
Runs the program. |
void |
start(State initState)
Starts the simulation. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public VacuumWorld()
public VacuumWorld(boolean interactive)
public VacuumWorld(java.io.PrintStream output, boolean interactive)
Method Detail |
---|
public void addAgent(Agent agent)
addAgent
in class Environment
public int getPerformanceMeasure(Agent ag)
getPerformanceMeasure
in class Environment
public int getTeamPerformanceMeasure()
getTeamPerformanceMeasure
in class Environment
public boolean gotHome()
public static void main(java.lang.String[] args)
public void start(State initState)
start
in class Environment
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |