madkit.strobekit.strobedemo
Class StrobeDemoAgent

java.lang.Object
  extended bymadkit.kernel.AbstractAgent
      extended bymadkit.kernel.Agent
          extended bymadkit.strobekit.StrobeAbstractAgent
              extended bymadkit.strobekit.strobedemo.StrobeDemoAgent
All Implemented Interfaces:
java.lang.Runnable, java.io.Serializable

public class StrobeDemoAgent
extends StrobeAbstractAgent

See Also:
Serialized Form

Constructor Summary
StrobeDemoAgent()
           
 
Method Summary
 void addAcquaintance(madkit.kernel.AgentAddress a)
          This method has to be redefined by Strobe agents; it corresponds to the adding acquaintance policy i.e., how a Strobe agents create a new CognitiveEnv when they meet a new agent for the very first time.
 void analyzeAnswer(java.lang.String res)
          This method has to be redefined by Strobe agents; it corresponds to the way answer returned by Strobe message evaluation are analyzed.
 void initGUI()
           
 void printlnOut(java.lang.Object m)
           
 void printOut(java.lang.Object m)
           
 void strobeActivate()
          Replace the method activate for Strobe agents .
 void strobeEnd()
          Replace the method end for Strobe agents .
 void strobeLive()
          Replace the method live for Strobe agents .
 
Methods inherited from class madkit.strobekit.StrobeAbstractAgent
acquaintanceAddresses, acquaintanceAndIAddresses, acquaintanceAndINames, acquaintanceNames, activate, addAcquaintanceByCopyingGlobalEnv, addAcquaintanceByCopyingLocalEnv, addAcquaintanceBySharingLocalEnv, createOrJoinGroup, dynamicScheduler, end, eval, getGlobalEnv, getLocalEnvs, getStrobeAgentGroup, getStrobeAgentRole, initializeCognitiveEnvWith, isAlreadyAcquaintance, live, print, read, sendMessageAndPrint, setGlobalEnv, setLocalEnvs, setStrobeAgentGroup, setStrobeAgentRole, viewedAgentAddress, viewedAgentName
 
Methods inherited from class madkit.kernel.Agent
pause, receiveMessage, run, waitNextMessage, waitNextMessage
 
Methods inherited from class madkit.kernel.AbstractAgent
broadcastMessage, broadcastMessage, connectedWithCommunity, createGroup, createGroup, debug, disposeMyGUI, foundGroup, getAddress, getAgentInformation, getAgentsWithRole, getAgentsWithRole, getAgentWithRole, getAgentWithRole, getAvailableCommunities, getBean, getController, getDebug, getExistingGroups, getExistingGroups, getExistingRoles, getExistingRoles, getGroups, getGUIObject, getMessageBoxSize, getMyGroups, getMyGroups, getMyRoles, getMyRoles, getName, getRoles, hasGUI, isCommunity, isGroup, isGroup, isMessageBoxEmpty, isRole, isRole, joinGroup, killAgent, launchAgent, leaveGroup, leaveGroup, leaveRole, leaveRole, nextMessage, print, println, redisplayMyGUI, requestRole, requestRole, requestRole, restoreAgent, sendMessage, sendMessage, sendMessage, setBean, setController, setDebug, setGUIObject, setName, setOutput, setOutputWriter, windowClosing
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StrobeDemoAgent

public StrobeDemoAgent()
Method Detail

initGUI

public void initGUI()

strobeActivate

public void strobeActivate()
Description copied from class: StrobeAbstractAgent
Replace the method activate for Strobe agents .

Overrides:
strobeActivate in class StrobeAbstractAgent

strobeLive

public void strobeLive()
Description copied from class: StrobeAbstractAgent
Replace the method live for Strobe agents .

Overrides:
strobeLive in class StrobeAbstractAgent

strobeEnd

public void strobeEnd()
Description copied from class: StrobeAbstractAgent
Replace the method end for Strobe agents .

Overrides:
strobeEnd in class StrobeAbstractAgent

addAcquaintance

public void addAcquaintance(madkit.kernel.AgentAddress a)
Description copied from class: StrobeAbstractAgent
This method has to be redefined by Strobe agents; it corresponds to the adding acquaintance policy i.e., how a Strobe agents create a new CognitiveEnv when they meet a new agent for the very first time.

Specified by:
addAcquaintance in class StrobeAbstractAgent

analyzeAnswer

public void analyzeAnswer(java.lang.String res)
Description copied from class: StrobeAbstractAgent
This method has to be redefined by Strobe agents; it corresponds to the way answer returned by Strobe message evaluation are analyzed.

Specified by:
analyzeAnswer in class StrobeAbstractAgent

printlnOut

public void printlnOut(java.lang.Object m)

printOut

public void printOut(java.lang.Object m)