se.sics.tasim.sim
Class SimConnectionImpl
java.lang.Object
se.sics.tasim.is.SimConnection
se.sics.tasim.sim.SimConnectionImpl
public class SimConnectionImpl
- extends SimConnection
This is the implementation of the SimConnection that is located in the Supply
Chain Simulator. It implements the "behaviour" for all methods that the
InfoSystem "calls"
Method Summary |
void |
addChatMessage(long time,
java.lang.String serverName,
java.lang.String userName,
java.lang.String message)
|
void |
addTimeReservation(long startTime,
int lengthInMillis)
|
void |
close()
|
void |
createSimulation(java.lang.String type,
java.lang.String params)
|
void |
dataUpdated(int type,
int value)
|
void |
init(ConfigManager config)
|
void |
joinSimulation(int simulationUniqID,
int agentID,
int simRole)
|
void |
joinSimulation(int simulationUniqID,
int agentID,
java.lang.String simRole)
|
void |
lockNextSimulations(int simulationCount)
|
void |
removeSimulation(int simulationUniqID)
|
void |
resultsGenerated(int simulationID)
|
void |
scheduleCompetition(CompetitionSchedule schedule)
|
void |
setServerTime(long time)
|
void |
setUser(java.lang.String agentName,
java.lang.String password,
int agentID)
|
void |
simulationInfo(SimulationInfo info)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimConnectionImpl
public SimConnectionImpl(se.sics.tasim.sim.Admin admin,
AgentLookup lookup)
init
public void init(ConfigManager config)
- Specified by:
init
in class SimConnection
close
public void close()
- Specified by:
close
in class SimConnection
dataUpdated
public void dataUpdated(int type,
int value)
- Specified by:
dataUpdated
in class SimConnection
setUser
public void setUser(java.lang.String agentName,
java.lang.String password,
int agentID)
- Specified by:
setUser
in class SimConnection
setServerTime
public void setServerTime(long time)
- Specified by:
setServerTime
in class SimConnection
simulationInfo
public void simulationInfo(SimulationInfo info)
- Specified by:
simulationInfo
in class SimConnection
resultsGenerated
public void resultsGenerated(int simulationID)
- Specified by:
resultsGenerated
in class SimConnection
addChatMessage
public void addChatMessage(long time,
java.lang.String serverName,
java.lang.String userName,
java.lang.String message)
- Specified by:
addChatMessage
in class SimConnection
scheduleCompetition
public void scheduleCompetition(CompetitionSchedule schedule)
- Specified by:
scheduleCompetition
in class SimConnection
lockNextSimulations
public void lockNextSimulations(int simulationCount)
- Specified by:
lockNextSimulations
in class SimConnection
addTimeReservation
public void addTimeReservation(long startTime,
int lengthInMillis)
- Specified by:
addTimeReservation
in class SimConnection
createSimulation
public void createSimulation(java.lang.String type,
java.lang.String params)
- Specified by:
createSimulation
in class SimConnection
removeSimulation
public void removeSimulation(int simulationUniqID)
- Specified by:
removeSimulation
in class SimConnection
joinSimulation
public void joinSimulation(int simulationUniqID,
int agentID,
java.lang.String simRole)
- Specified by:
joinSimulation
in class SimConnection
joinSimulation
public void joinSimulation(int simulationUniqID,
int agentID,
int simRole)
- Specified by:
joinSimulation
in class SimConnection
Copyright © 2007-2009 Association for Trading Agent Research. All Rights Reserved.