|
|||||||||
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.HelloDomain
Pops up a hello Window on every server in the domain when a domain server is installed.
Inner Class Summary | |
class |
HelloDomain.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 |
i
Points to the next destination in v. |
(package private) java.util.Vector |
v
List of all the servers in the domain. |
Fields inherited from class org.kaariboga.core.Kaariboga |
base, destination, kaaribogaListener, messageListener, name |
Constructor Summary | |
HelloDomain(java.lang.String name)
Just initialize the super class. |
Method Summary | |
void |
onArrival()
Shows a window. |
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, onAwake, onDestroy, onDispatch, onSleep, setBase, toString |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.util.Vector v
int i
Constructor Detail |
public HelloDomain(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 onArrival()
onArrival
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 |