kaos.robots.naimtsimulator
Class CLI

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

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


Constructor Summary
CLI()
           
CLI(boolean robotsConnectToKaos)
           
CLI(java.io.PrintWriter periodicPrinter)
           
CLI(java.io.PrintWriter periodicPrinter, boolean robotsConnectToKaos)
           
CLI(Simulator sim)
           
CLI(Simulator sim, java.io.BufferedReader reader, java.io.PrintStream printer)
           
 
Method Summary
 SimObject getObject(int index)
           
 java.lang.String getStatsFor(SimObject obj)
           
 void process(java.lang.String command)
           
 void prompt()
           
 void run()
           
 void startListening(double period, Bot bot)
           
 void startViewing()
           
 void startViewing(Bot bot)
           
 void startWatching(double period, int index, MobileObject obj)
           
 void stop()
           
 void stopWatching(SimObject obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CLI

public CLI()

CLI

public CLI(boolean robotsConnectToKaos)

CLI

public CLI(java.io.PrintWriter periodicPrinter)

CLI

public CLI(java.io.PrintWriter periodicPrinter,
           boolean robotsConnectToKaos)

CLI

public CLI(Simulator sim)

CLI

public CLI(Simulator sim,
           java.io.BufferedReader reader,
           java.io.PrintStream printer)
Method Detail

run

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

stop

public void stop()

process

public void process(java.lang.String command)

prompt

public void prompt()

getObject

public SimObject getObject(int index)

getStatsFor

public java.lang.String getStatsFor(SimObject obj)

startWatching

public void startWatching(double period,
                          int index,
                          MobileObject obj)

startListening

public void startListening(double period,
                           Bot bot)

startViewing

public void startViewing(Bot bot)

startViewing

public void startViewing()

stopWatching

public void stopWatching(SimObject obj)