|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.colorado.cs.ns2.agents.Agent edu.colorado.cs.ns2.agents.TCPRenoAgent
public class TCPRenoAgent
This is the implementation of the TCPRenoAgent.
Field Summary | |
---|---|
private int |
class_
NS2's TCPReno class_ TCL variaible. |
private int |
fid_
NS2's TCPReno fid_ (flow identifier) TCL variaible. |
private static long |
serialVersionUID
Generated serial version UID. |
Fields inherited from class edu.colorado.cs.ns2.agents.Agent |
---|
acceptableConnectAgents, agentId, agentName, applications, isConnected, nodeId, variableName |
Constructor Summary | |
---|---|
TCPRenoAgent(int nextId,
int NodeId)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
addAgentToScript(java.lang.String agentVariableName,
int nodeId)
Returns a String containing the TCL code for the instantiation of a TCPReno object. |
int |
getClass_()
Returns the value of the TCL class_ variable. |
int |
getFid_()
Returns the flow identifier. |
private void |
setAcceptableAgents()
Sets the list of acceptable agents to which this agent can be connected. |
void |
setAgentProperties()
Sets the Agent's properties. |
void |
setClass_(int class_)
Sets the value of the TCL class_ variable. |
void |
setFid_(int fid_)
Sets the flow identifier. |
java.lang.String |
toString()
Returns a String representation of this object. |
java.lang.String |
writeAgentProperties()
Returns a TCP representation of the Agent's properties. |
Methods inherited from class edu.colorado.cs.ns2.agents.Agent |
---|
addAgentToScript, canConnectToAgent, canHaveMultipleConnections, getAgentId, getAgentName, getApplications, getApplicationsElementAt, getNodeId, getVariableName, isConnected, removeApplicationsElement, removeApplicationsElementAt, setAgentId, setApplications, setConnected |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private int class_
private int fid_
Constructor Detail |
---|
public TCPRenoAgent(int nextId, int NodeId)
nextId
- The next available globally unique identifier.NodeId
- The node id on which this agent resides.Method Detail |
---|
private void setAcceptableAgents()
public java.lang.String toString()
toString
in class java.lang.Object
public int getClass_()
public void setClass_(int class_)
class_
- A new class value.public int getFid_()
public void setFid_(int fid_)
fid_
- A new flow identifier.public java.lang.String addAgentToScript(java.lang.String agentVariableName, int nodeId)
agentVariableName
- The agent's TCL variable name.nodeId
- The node identifier on which the TCPReno Agent resides.
public void setAgentProperties()
setAgentProperties
in class Agent
public java.lang.String writeAgentProperties()
Agent
writeAgentProperties
in class Agent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |