Test
Class TestAgent

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--Test.TestAgent
All Implemented Interfaces:
java.lang.Runnable

public class TestAgent
extends java.lang.Thread

User: hf Date: 21.09.2003 Time: 14:55:48


Field Summary
static int MOVE_EAST
           
static int MOVE_NORTH
           
static int MOVE_SOUTH
           
static int MOVE_WEST
           
static int NO_MOVE
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
TestAgent(int id, TestServer server)
           
 
Method Summary
 int calculateMove()
           
 int getId()
           
 void run()
           
 void sendMove(int moveorder)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

NO_MOVE

public static final int NO_MOVE
See Also:
Constant Field Values

MOVE_NORTH

public static final int MOVE_NORTH
See Also:
Constant Field Values

MOVE_WEST

public static final int MOVE_WEST
See Also:
Constant Field Values

MOVE_SOUTH

public static final int MOVE_SOUTH
See Also:
Constant Field Values

MOVE_EAST

public static final int MOVE_EAST
See Also:
Constant Field Values
Constructor Detail

TestAgent

public TestAgent(int id,
                 TestServer server)
Method Detail

run

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

calculateMove

public int calculateMove()

sendMove

public void sendMove(int moveorder)

getId

public int getId()