|
|||||||||
| 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.HelloAgent
The HelloAgents just prints Hello World to the screen.
| Inner classes inherited from class org.kaariboga.core.Kaariboga |
Kaariboga.FireEventThread, Kaariboga.FireMessageThread |
| Field Summary | |
(package private) int |
trips
How often did the agent travel? |
| Fields inherited from class org.kaariboga.core.Kaariboga |
base, destination, kaaribogaListener, messageListener, name |
| Constructor Summary | |
HelloAgent(java.lang.String name)
Just initialize the super class. |
|
| Method Summary | |
void |
onArrival()
Called by the base when the agent arrives on the base. |
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, onCreate, onDestroy, onDispatch, onSleep, setBase, toString |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
int trips
| Constructor Detail |
public HelloAgent(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 run()
run 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 | ||||||||