|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.colorado.cs.ns2.sim.AgentListItem
public class AgentListItem
This class associates an Agent with a node identifier.
| Field Summary | |
|---|---|
private Agent |
agent
A reference to an Agent. |
private int |
nodeId
A globally unique node identifier. |
| Constructor Summary | |
|---|---|
AgentListItem(int nodeId,
Agent agent)
Two-argument constructor. |
|
| Method Summary | |
|---|---|
Agent |
getAgent()
Returns a reference to the Agent Object. |
java.lang.String |
getAgentVariableName()
Returns the Agent's TCL variable name. |
int |
getNodeId()
Returns the node identifier. |
java.lang.String |
getNodeVariableName()
Returns the node's TCL variable name. |
void |
setAgent(Agent agent)
Sets the Agent Object. |
void |
setNodeId(int nodeId)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int nodeId
private Agent agent
| Constructor Detail |
|---|
public AgentListItem(int nodeId,
Agent agent)
nodeId - A globally unique node identifier.agent - An Agent reference.| Method Detail |
|---|
public Agent getAgent()
public java.lang.String getAgentVariableName()
public void setAgent(Agent agent)
agent - A new Agent Object.public int getNodeId()
public void setNodeId(int nodeId)
public java.lang.String getNodeVariableName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||