|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.kaariboga.core.Kaariboga | +--org.kaariboga.agents.BillyTheBit
Travels around in a domain at random and lets a message pop up on every computer at random choices. The domain server must be running for this agent to work. After a number of maxTravels it kills itself.
Inner Class Summary | |
class |
BillyTheBit.Popup
Use a thread to let a window pop up. |
Inner classes inherited from class org.kaariboga.core.Kaariboga |
Kaariboga.FireEventThread, Kaariboga.FireMessageThread |
Field Summary | |
(package private) int |
cTravels
Count of travels. |
(package private) int |
maxTravels
Maximum count of travels. |
(package private) java.lang.String |
message
The message that shows up. |
(package private) java.lang.String[] |
messages
|
(package private) java.util.Vector |
servers
List of all the servers in the domain. |
Fields inherited from class org.kaariboga.core.Kaariboga |
base, destination, kaaribogaListener, messageListener, name |
Constructor Summary | |
BillyTheBit(java.lang.String name)
Just initialize the super class. |
Method Summary | |
void |
onCreate()
Initializes v with all servers connected to the domain. |
void |
run()
This is automically called if the agent arrives on a base. |
Methods inherited from class org.kaariboga.core.Kaariboga |
addKaaribogaListener, addKaaribogaMessageListener, fireDestroyRequest, fireDispatchRequest, fireKaaribogaMessage, fireSleepRequest, getDestination, getName, handleMessage, onArrival, onAwake, onDestroy, onDispatch, onSleep, setBase, toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String[] messages
java.util.Vector servers
java.lang.String message
int maxTravels
int cTravels
Constructor Detail |
public BillyTheBit(java.lang.String name)
name
- The name of the agent. This name has to be
unique. Normally the KaaribogaBase class provides some
method to generate a unique name.Method Detail |
public void onCreate()
onCreate
in class Kaariboga
public void run()
run
in class Kaariboga
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |