org.kaariboga.agents
Class Reproducer

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

public class Reproducer
extends Kaariboga

The Reproducer agent is able to load other agents.

See Also:
Serialized Form

Inner classes inherited from class org.kaariboga.core.Kaariboga
Kaariboga.FireEventThread, Kaariboga.FireMessageThread
 
Field Summary
 int nChilds
          Number of childs the agent will create.
 
Fields inherited from class org.kaariboga.core.Kaariboga
base, destination, kaaribogaListener, messageListener, name
 
Constructor Summary
Reproducer(java.lang.String name)
          Just initialize the super class.
 
Method Summary
 void run()
          After an initial sleep period (grow up) the agent gives birth to new childs.
 
Methods inherited from class org.kaariboga.core.Kaariboga
addKaaribogaListener, addKaaribogaMessageListener, fireDestroyRequest, fireDispatchRequest, fireKaaribogaMessage, fireSleepRequest, getDestination, getName, handleMessage, onArrival, onAwake, onCreate, 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

nChilds

public int nChilds
Number of childs the agent will create.
Constructor Detail

Reproducer

public Reproducer(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

run

public void run()
After an initial sleep period (grow up) the agent gives birth to new childs.
Overrides:
run in class Kaariboga