|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.ItemRequest
public class ItemRequest
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 |
|---|
private int agentId
private ScenarioItemType itemType
private double time
| Constructor Detail |
|---|
public ItemRequest(int agentId,
ScenarioItemType itemType,
double time)
agentId - agent iditemType - item typetime - time we have received this request| Method Detail |
|---|
public int getAgentId()
public ScenarioItemType getItemType()
public double getTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||