com.uwyn.drone.core
Class BotsRunner

java.lang.Object
  extended byjava.lang.Thread
      extended bycom.uwyn.drone.core.BotsRunner
All Implemented Interfaces:
BotListener, Runnable

public class BotsRunner
extends Thread
implements BotListener


Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
BotsRunner(Collection bots)
           
 
Method Summary
 boolean addBotsRunnerListener(BotsRunnerListener listener)
           
 void connectionError(Bot bot, Throwable e)
           
 Collection getBots()
           
 void loggedOff(Bot bot)
           
 void loggedOn(Bot bot)
           
 void nickChanged(Bot bot)
           
 void nickInUse(Bot bot, String nick)
           
 boolean removeBotsRunnerListener(BotsRunnerListener listener)
           
 void run()
           
 
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
 

Constructor Detail

BotsRunner

public BotsRunner(Collection bots)
Method Detail

getBots

public Collection getBots()

run

public void run()
Specified by:
run in interface Runnable

loggedOff

public void loggedOff(Bot bot)
Specified by:
loggedOff in interface BotListener

loggedOn

public void loggedOn(Bot bot)
Specified by:
loggedOn in interface BotListener

nickChanged

public void nickChanged(Bot bot)
Specified by:
nickChanged in interface BotListener

nickInUse

public void nickInUse(Bot bot,
                      String nick)
Specified by:
nickInUse in interface BotListener

connectionError

public void connectionError(Bot bot,
                            Throwable e)
Specified by:
connectionError in interface BotListener

addBotsRunnerListener

public boolean addBotsRunnerListener(BotsRunnerListener listener)

removeBotsRunnerListener

public boolean removeBotsRunnerListener(BotsRunnerListener listener)


Copyright © 2002-2004 Geert Bevin and UWYN. All Rights Reserved.