|
|||||||||
| 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.HelloTraveler
The travel agent just opens a dialog, travels to another base and prints Hello World to the screen. After that it destroys itself.
| Inner classes inherited from class org.kaariboga.core.Kaariboga |
Kaariboga.FireEventThread, Kaariboga.FireMessageThread |
| Fields inherited from class org.kaariboga.core.Kaariboga |
base, destination, kaaribogaListener, messageListener, name |
| Constructor Summary | |
HelloTraveler(java.lang.String name)
Just initialize the super class. |
|
| Method Summary | |
void |
onArrival()
This is automically called if the agent arrives on a base. |
void |
onCreate()
This is called just after the kaariboga has been created and the base has set the important fields. |
| Methods inherited from class org.kaariboga.core.Kaariboga |
addKaaribogaListener, addKaaribogaMessageListener, fireDestroyRequest, fireDispatchRequest, fireKaaribogaMessage, fireSleepRequest, getDestination, getName, handleMessage, onAwake, onDestroy, onDispatch, onSleep, run, setBase, toString |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public HelloTraveler(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 Kaaribogapublic void onArrival()
onArrival in class Kaariboga
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||