info
Class ItemRequest

java.lang.Object
  extended by info.ItemRequest

public class ItemRequest
extends java.lang.Object

Here we store item requests we have received.


Field Summary
private  int agentId
          Id of the agent that requested the item
private  ScenarioItemType itemType
          Type of the requested item
private  double time
          Time we have received the request
 
Constructor Summary
ItemRequest(int agentId, ScenarioItemType itemType, double time)
          Constructor for this class - requires agent id, item type and time we have received the request.
 
Method Summary
 int getAgentId()
          Gets agent id.
 ScenarioItemType getItemType()
          Gets item type.
 double getTime()
          Gets time we have received this request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

agentId

private int agentId
Id of the agent that requested the item


itemType

private ScenarioItemType itemType
Type of the requested item


time

private double time
Time we have received the request

Constructor Detail

ItemRequest

public ItemRequest(int agentId,
                   ScenarioItemType itemType,
                   double time)
Constructor for this class - requires agent id, item type and time we have received the request.

Parameters:
agentId - agent id
itemType - item type
time - time we have received this request
Method Detail

getAgentId

public int getAgentId()
Gets agent id.

Returns:
agent id

getItemType

public ScenarioItemType getItemType()
Gets item type.

Returns:
item type

getTime

public double getTime()
Gets time we have received this request.

Returns:
this request received time