Class TACAgentParser
java.lang.Object
se.sics.tasim.tac05.Parser
TACAgentParser
- All Implemented Interfaces:
- se.sics.tasim.tac05.TAC05Constants
public class TACAgentParser
- extends se.sics.tasim.tac05.Parser
Reads a game log, processes all server messages to recreate the state of a
specific agent on a single day, then starts the agent on that day.
This is for agent development only, and is not needed to run the agent in
games.
Fields inherited from interface se.sics.tasim.tac05.TAC05Constants |
CUSTOMER, DU_BANK_ACCOUNT, DU_CAPACITY_FLAG, DU_COMPONENT_ID_FLAG, DU_COMPONENT_PRICE_FLAG, DU_CUSTOMER_DEMAND, DU_CUSTOMER_ORDERED, DU_INVENTORY_FLAG, DU_NOMINAL_CAPACITY_FLAG, DU_PRODUCTION_FLAG, FACTORY, MANUFACTURER, ROLE_NAME, SIMULATION_TYPE, SUPPLIER, TYPE_DELIVERY, TYPE_MESSAGE, TYPE_NEGOTIATION, TYPE_NONE, TYPE_ORDER, TYPE_WARNING |
Constructor Summary |
TACAgentParser(se.sics.tasim.logtool.LogReader reader,
java.lang.String agentName,
int stopDate)
|
Method Summary |
protected void |
dataUpdated(int agent,
int type,
int value)
|
protected void |
dataUpdated(int type,
se.sics.isl.transport.Transportable content)
|
protected void |
message(int sender,
int receiver,
se.sics.isl.transport.Transportable content)
|
protected void |
nextDay(int somedate,
long serverTime)
|
private void |
processStartInfo(se.sics.tasim.props.StartInfo info)
|
Methods inherited from class se.sics.tasim.tac05.Parser |
data, dataUpdated, dataUpdated, dataUpdated, dataUpdated, getReader, interest, messageToRole, parseStarted, parseStopped, penalty, reputation, start, stop, storageCost, transaction, unhandledNode |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stopDate
int stopDate
agentName
private java.lang.String agentName
settings
private GameSettings settings
todaysInfo
private DailyInfo todaysInfo
todaysActions
private DailyActions todaysActions
agent
private TACAgent agent
date
int date
participants
se.sics.tasim.logtool.ParticipantInfo[] participants
firstManufacturer
int firstManufacturer
firstSupplier
int firstSupplier
bom
se.sics.tasim.props.BOMBundle bom
catalog
se.sics.tasim.props.ComponentCatalog catalog
computerIDs
int[] computerIDs
componentIDs
int[] componentIDs
TACAgentParser
public TACAgentParser(se.sics.tasim.logtool.LogReader reader,
java.lang.String agentName,
int stopDate)
message
protected void message(int sender,
int receiver,
se.sics.isl.transport.Transportable content)
- Specified by:
message
in class se.sics.tasim.tac05.Parser
processStartInfo
private void processStartInfo(se.sics.tasim.props.StartInfo info)
dataUpdated
protected void dataUpdated(int type,
se.sics.isl.transport.Transportable content)
- Overrides:
dataUpdated
in class se.sics.tasim.tac05.Parser
nextDay
protected void nextDay(int somedate,
long serverTime)
- Overrides:
nextDay
in class se.sics.tasim.tac05.Parser
dataUpdated
protected void dataUpdated(int agent,
int type,
int value)
- Overrides:
dataUpdated
in class se.sics.tasim.tac05.Parser