kaos.robots.naimtsimulator
Class Simulator

java.lang.Object
  extended by kaos.robots.naimtsimulator.Simulator
All Implemented Interfaces:
java.lang.Runnable

public class Simulator
extends java.lang.Object
implements java.lang.Runnable


Field Summary
static int SLEEP
           
 
Constructor Summary
Simulator()
           
 
Method Summary
 void addObject(SimObject o)
           
 void dropBenign(double x, double y, double width, double height)
           
 void dropBot(java.lang.String name, double x, double y)
           
 void dropMine(double x, double y, double width, double height)
           
 java.util.List getKAoSRobots()
          Returns the list of KAoSRobots associated with the Bots in this simulation.
 java.util.Set getObjects()
           
 void pause()
          Thread continues to run, but objects don't move.
 void removeObject(SimObject o)
           
 void restart()
           
 void run()
           
 void step()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLEEP

public static int SLEEP
Constructor Detail

Simulator

public Simulator()
Method Detail

getKAoSRobots

public java.util.List getKAoSRobots()
Returns the list of KAoSRobots associated with the Bots in this simulation.


getObjects

public java.util.Set getObjects()

addObject

public void addObject(SimObject o)

removeObject

public void removeObject(SimObject o)

step

public void step()

pause

public void pause()
Thread continues to run, but objects don't move.


restart

public void restart()

stop

public void stop()

run

public void run()
Specified by:
run in interface java.lang.Runnable

dropBot

public void dropBot(java.lang.String name,
                    double x,
                    double y)

dropMine

public void dropMine(double x,
                     double y,
                     double width,
                     double height)

dropBenign

public void dropBenign(double x,
                       double y,
                       double width,
                       double height)