jadex.micro.examples.helpline
Class HelplineAgent

java.lang.Object
  extended by jadex.micro.MicroAgent
      extended by jadex.micro.examples.helpline.HelplineAgent
All Implemented Interfaces:
IInternalAccess, IMicroAgent

public class HelplineAgent
extends MicroAgent

Helpline micro agent.


Nested Class Summary
 
Nested classes/interfaces inherited from class jadex.micro.MicroAgent
MicroAgent.TimerWrapper
 
Field Summary
protected  MultiCollection infos
          The map of information.
 
Fields inherited from class jadex.micro.MicroAgent
interpreter, longtime, timers
 
Constructor Summary
HelplineAgent()
           
 
Method Summary
 void addInformation(String name, String info)
          Add an information about a person.
 void agentCreated()
          Called once after agent creation.
 Collection getInformation(String name)
          Get all locally stored information about a person.
static MicroAgentMetaInfo getMetaInfo()
          Get the meta information about the agent.
 
Methods inherited from class jadex.micro.MicroAgent
addComponentListener, addDirectService, addService, agentKilled, createComponentIdentifier, createComponentIdentifier, createComponentIdentifier, createReply, createResultListener, createServiceContainer, executeBody, getAgentAdapter, getAgentName, getArgument, getArguments, getChildren, getComponentIdentifier, getConfiguration, getExternalAccess, getLogger, getModel, getParent, getServiceProvider, getTime, init, isAtBreakpoint, killAgent, killComponent, messageArrived, removeComponentListener, removeService, scheduleStep, sendMessage, setResultValue, waitFor, waitForTick
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

infos

protected MultiCollection infos
The map of information.

Constructor Detail

HelplineAgent

public HelplineAgent()
Method Detail

agentCreated

public void agentCreated()
Called once after agent creation.

Specified by:
agentCreated in interface IMicroAgent
Overrides:
agentCreated in class MicroAgent

addInformation

public void addInformation(String name,
                           String info)
Add an information about a person.

Parameters:
name - The person's name.
info - The information.

getInformation

public Collection getInformation(String name)
Get all locally stored information about a person.

Parameters:
name - The person's name.
Returns:
Future that contains the information.

getMetaInfo

public static MicroAgentMetaInfo getMetaInfo()
Get the meta information about the agent.



Copyright © 2010. All Rights Reserved.