|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object AgentInfo
public class AgentInfo
Stores information about the agent, including information shared between the supply and demand managers.
Field Summary | |
---|---|
java.util.Hashtable |
agentParameters
stores parameters read in from the config file |
ComponentInfo |
components
all of the information about components is stored here |
ComputerInfo |
computers
all of the information about computers is stored here |
private int |
date
|
private int |
lastID
|
java.util.Vector |
marketReports
all the market reports that have been received |
int[][] |
newComponentDeliveries
deliveries resulting from today's accepted offers |
double[][] |
projectedComponentUse
projected number of components to be used each day in the future |
int[] |
tomorrowsRemainingComponents
components in inventory available for use tomorrow |
int[] |
tomorrowsRemainingComputers
computers in inventory available for use tomorrow |
Constructor Summary | |
---|---|
AgentInfo()
|
Method Summary | |
---|---|
void |
eveningUpdate(DailyActions actions)
Processes the messages (agent actions) sent out at the end of each day. |
private int |
generateNextID()
|
java.lang.String |
getDailySummary()
Generates a summary of the day's events. |
int |
getNextID()
Generates a unique ID for an RFQ, offer, or order. |
void |
morningUpdate(DailyInfo dayInfo,
GameSettings settings)
Processes the messages received at the beginning of each day. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.util.Hashtable agentParameters
private int lastID
private int date
public ComponentInfo components
public ComputerInfo computers
public java.util.Vector marketReports
public int[] tomorrowsRemainingComputers
public int[] tomorrowsRemainingComponents
public int[][] newComponentDeliveries
public double[][] projectedComponentUse
Constructor Detail |
---|
public AgentInfo()
Method Detail |
---|
private int generateNextID()
public int getNextID()
public java.lang.String getDailySummary()
public void morningUpdate(DailyInfo dayInfo, GameSettings settings)
dayInfo
- messages received todaysettings
- the game settingspublic void eveningUpdate(DailyActions actions)
actions
- the messages sent by the agent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |