anthill.antnet
Class Executor

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--anthill.antnet.Executor
All Implemented Interfaces:
java.lang.Runnable

public class Executor
extends java.lang.Thread

This interface contains method receive(), which should be implemented by a anthill in order to receive an agent from other nests. The interface is implemented as a remote interface (it extends Remote and method receive() throws RemoteException); however, implementations of this class are not required to be based on RMI.

Version:
$Revision$
Author:
Alberto Montresor

Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
 void run()
          Method run() of the thread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, 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
 

Method Detail

run

public void run()
Method run() of the thread. The thread waits for an agent by calling method waitStart(); executes the run() method of the thread; and then notifies the thread manager of its completion, in order that the thread manager can schedule another work.
Overrides:
run in class java.lang.Thread