org.kaariboga.agents
Class HelloDomain

java.lang.Object
  |
  +--org.kaariboga.core.Kaariboga
        |
        +--org.kaariboga.agents.HelloDomain
All Implemented Interfaces:
KbMessageHandler, java.lang.Runnable, java.io.Serializable

public class HelloDomain
extends Kaariboga

Pops up a hello Window on every server in the domain when a domain server is installed.

See Also:
Serialized Form

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Field Detail

v

java.util.Vector v
List of all the servers in the domain.

i

int i
Points to the next destination in v.
Constructor Detail

HelloDomain

public HelloDomain(java.lang.String name)
Just initialize the super class.
Parameters:
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

onCreate

public void onCreate()
Initializes v with all servers connected to the domain.
Overrides:
onCreate in class Kaariboga

onArrival

public void onArrival()
Shows a window.
Overrides:
onArrival in class Kaariboga

run

public void run()
This is automically called if the agent arrives on a base.
Overrides:
run in class Kaariboga