edu.colorado.cs.ns2.sim
Class ApplicationListItem

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

public class ApplicationListItem
extends java.lang.Object

This class provides the binding between an Application, its underlying Agent, and the Agent's underlying Node.

Author:
Kevin Bauer, Pushkar Sambhoos.

Field Summary
private  int agentId
          The agent's identifier.
private  Application app
          A reference to the Application.
private  int nodeId
          The node's identifier.
 
Constructor Summary
ApplicationListItem(int nodeId, int agentId, Application app)
          Three-argument constructor.
 
Method Summary
 int getAgentId()
          Returns the Agent's identifier.
 Application getApplication()
          Returns the Application.
 java.lang.String getApplicationVariableName()
          Returns the Application's TCL variable name.
 int getNodeId()
          Returns the node's identifier.
 java.lang.String getNodeVariableName()
          Returns the node's TCL variable name.
 void setAgentId(int agentId)
          Sets the Agent's identifier.
 void setApplication(Application app)
          Sets the Application reference.
 void setNodeId(int nodeId)
          Sets the node's identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

nodeId

private int nodeId
The node's identifier.


agentId

private int agentId
The agent's identifier.


app

private Application app
A reference to the Application.

Constructor Detail

ApplicationListItem

public ApplicationListItem(int nodeId,
                           int agentId,
                           Application app)
Three-argument constructor.

Parameters:
nodeId - A Node identifier.
agentId - An Agent identifier.
app - An Application reference.
Method Detail

getApplication

public Application getApplication()
Returns the Application.

Returns:
The Application.

getApplicationVariableName

public java.lang.String getApplicationVariableName()
Returns the Application's TCL variable name.

Returns:
The Application's TCL variable name.

setApplication

public void setApplication(Application app)
Sets the Application reference.

Parameters:
app - A Application reference.

getNodeId

public int getNodeId()
Returns the node's identifier.

Returns:
The node's identifier.

setNodeId

public void setNodeId(int nodeId)
Sets the node's identifier.

Parameters:
nodeId - The node's new identifier.

getNodeVariableName

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

Returns:
The node's TCL variable name.

getAgentId

public int getAgentId()
Returns the Agent's identifier.

Returns:
The Agent's identifier.

setAgentId

public void setAgentId(int agentId)
Sets the Agent's identifier.

Parameters:
agentId - The Agent's new identifier.