edu.colorado.cs.ns2.sim
Class AgentListItem

java.lang.Object
  extended by edu.colorado.cs.ns2.sim.AgentListItem

public class AgentListItem
extends java.lang.Object

This class associates an Agent with a node identifier.

Author:
Kevin Bauer, Pushkar Sambhoos.

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

nodeId

private int nodeId
A globally unique node identifier.


agent

private Agent agent
A reference to an Agent.

Constructor Detail

AgentListItem

public AgentListItem(int nodeId,
                     Agent agent)
Two-argument constructor.

Parameters:
nodeId - A globally unique node identifier.
agent - An Agent reference.
Method Detail

getAgent

public Agent getAgent()
Returns a reference to the Agent Object.

Returns:
A reference to the Agent Object.

getAgentVariableName

public java.lang.String getAgentVariableName()
Returns the Agent's TCL variable name.

Returns:
The Agent's TCL variable name.

setAgent

public void setAgent(Agent agent)
Sets the Agent Object.

Parameters:
agent - A new Agent Object.

getNodeId

public int getNodeId()
Returns the node identifier.

Returns:
The node identifier.

setNodeId

public void setNodeId(int nodeId)

getNodeVariableName

public java.lang.String getNodeVariableName()
Returns the node's TCL variable name.

Returns:
The node's TCL variable name.