se.sics.tasim.aw
Class AgentService
java.lang.Object
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).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AgentService
protected AgentService(Agent agent,
java.lang.String name)
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.