se.sics.tasim.aw
Class AgentService

java.lang.Object
  extended by se.sics.tasim.aw.AgentService
Direct Known Subclasses:
SimulationAgent

public abstract class AgentService
extends java.lang.Object

AgentService is the abstract base class for the agent service used by Agent to communicate with the SCM servers (not used directly by agent implementations).


Constructor Summary
protected AgentService(Agent agent, java.lang.String name)
           
 
Method Summary
protected abstract  void addTimeListener(TimeListener listener)
           
protected  void deliverToAgent(Message message)
           
protected abstract  void deliverToServer(int role, Transportable content)
           
protected abstract  void deliverToServer(Message message)
           
 java.lang.String getAddress()
           
 Agent getAgent()
           
 java.lang.String getName()
           
protected abstract  long getServerTime()
           
protected  void initializeAgent()
           
protected abstract  void removeTimeListener(TimeListener listener)
           
protected  void sendMessage(Message message)
           
protected  void sendToRole(int role, Transportable content)
           
protected  void simulationFinished()
           
protected  void simulationSetup(java.lang.String address)
           
protected  void simulationStopped()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AgentService

protected AgentService(Agent agent,
                       java.lang.String name)
Method Detail

initializeAgent

protected void initializeAgent()

simulationSetup

protected void simulationSetup(java.lang.String address)

simulationStopped

protected void simulationStopped()

simulationFinished

protected void simulationFinished()

addTimeListener

protected abstract void addTimeListener(TimeListener listener)

removeTimeListener

protected abstract void removeTimeListener(TimeListener listener)

getName

public java.lang.String getName()

getAddress

public java.lang.String getAddress()

getAgent

public Agent getAgent()

getServerTime

protected abstract long getServerTime()

sendMessage

protected void sendMessage(Message message)

deliverToServer

protected abstract void deliverToServer(Message message)

sendToRole

protected void sendToRole(int role,
                          Transportable content)

deliverToServer

protected abstract void deliverToServer(int role,
                                        Transportable content)

deliverToAgent

protected void deliverToAgent(Message message)


Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.