Class AgentInfo

java.lang.Object
  extended by AgentInfo

public class AgentInfo
extends java.lang.Object

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

agentParameters

public java.util.Hashtable agentParameters
stores parameters read in from the config file


lastID

private int lastID

date

private int date

components

public ComponentInfo components
all of the information about components is stored here


computers

public ComputerInfo computers
all of the information about computers is stored here


marketReports

public java.util.Vector marketReports
all the market reports that have been received


tomorrowsRemainingComputers

public int[] tomorrowsRemainingComputers
computers in inventory available for use tomorrow


tomorrowsRemainingComponents

public int[] tomorrowsRemainingComponents
components in inventory available for use tomorrow


newComponentDeliveries

public int[][] newComponentDeliveries
deliveries resulting from today's accepted offers


projectedComponentUse

public double[][] projectedComponentUse
projected number of components to be used each day in the future

Constructor Detail

AgentInfo

public AgentInfo()
Method Detail

generateNextID

private int generateNextID()

getNextID

public int getNextID()
Generates a unique ID for an RFQ, offer, or order.

Returns:
ID

getDailySummary

public java.lang.String getDailySummary()
Generates a summary of the day's events.

Returns:
summary string

morningUpdate

public void morningUpdate(DailyInfo dayInfo,
                          GameSettings settings)
Processes the messages received at the beginning of each day.

Parameters:
dayInfo - messages received today
settings - the game settings

eveningUpdate

public void eveningUpdate(DailyActions actions)
Processes the messages (agent actions) sent out at the end of each day.

Parameters:
actions - the messages sent by the agent