dynamicbees
Class Bee

java.lang.Object
  extended by madkit.kernel.AbstractAgent
      extended by dynamicbees.AbstractBee
          extended by dynamicbees.Bee
All Implemented Interfaces:
java.io.Serializable, ReferenceableAgent

public class Bee
extends AbstractBee

Version:
1.0
Author:
Olivier Gutknecht, Fabien MICHEL 01/02/2001
See Also:
Serialized Form

Field Summary
 QueenBee queen
           
 
Fields inherited from class dynamicbees.AbstractBee
beeColor, beeWorld, oldp, p
 
Constructor Summary
Bee()
           
 
Method Summary
 void activate()
          This method is initially called when the micro-kernel registers the agent.
 void buzz()
          The "do it" method called by the activator
 void setQueenBee(QueenBee qb)
           
 
Methods inherited from class dynamicbees.AbstractBee
randomFromRange, RangedRdm, setEnvironment
 
Methods inherited from class madkit.kernel.AbstractAgent
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, end, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getCurrentKernelAddress, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, initGUI, isBelongingToGroup, isBelongingToGroup, isCommunity, isGroup, isGroup, isMemberOf, isMemberOf, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, receiveMessage, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, windowClosing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

queen

public QueenBee queen
Constructor Detail

Bee

public Bee()
Method Detail

setQueenBee

public void setQueenBee(QueenBee qb)

buzz

public void buzz()
The "do it" method called by the activator


activate

public void activate()
Description copied from class: AbstractAgent
This method is initially called when the micro-kernel registers the agent. Usually a good place to set up some initial groups and roles.

Overrides:
activate in class AbstractAgent


Copyright © Madkit Team (O. Gutknecht, J. Ferber, F. Michel et al.) All Rights Reserved.