|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.ns2.agents.Agent
edu.colorado.cs.ns2.agents.TCPAgent
public class TCPAgent
This is the implementation of NS2's TCP (Source) Agent.
Nested Class Summary | |
---|---|
private class |
TCPAgent.TCPAgentPropertiesDialog
This nested class creates and displays a dialog box allowing the user to interactively set the TCP Agent's properties. |
Field Summary | |
---|---|
private int |
class_
NS2's TCP class_ TCL variable. |
private int |
fid_
NS2's TCP fid_ (flow identifier) TCL variable. |
private int |
packetSize_
NS2's packetSize_ TCL variable. |
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 | |
---|---|
TCPAgent(int nextId,
int NodeId)
Constructor. |
Method Summary | |
---|---|
boolean |
canHaveMultipleConnections()
Returns True if the TCPAgent can have multiple connections. |
int |
getClass_()
Returns the TCL class_ variabile's value. |
int |
getFid_()
Returns the flow identifier. |
int |
getPacketSize_()
Returns the packet size. |
private void |
setAcceptableAgents()
Set list of acceptable agents that a TCPAgent can connect to |
void |
setAgentProperties()
Allows the user to interactively set the TCP Agent's properties. |
void |
setClass_(java.lang.String class_)
Sets the value of the TCL class_ variable. |
void |
setFid_(java.lang.String fid_)
Sets the flow identifier. |
void |
setPacketSize_(java.lang.String packetSize)
Sets the packet size. |
java.lang.String |
toString()
Returns a String representation of the current 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, 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_
private int packetSize_
Constructor Detail |
---|
public TCPAgent(int nextId, int NodeId)
nextId
- The next available globally unique identifier.NodeId
- The node identifier for the node on which the Agent resides.Method Detail |
---|
private void setAcceptableAgents()
public java.lang.String toString()
toString
in class java.lang.Object
public int getClass_()
public void setClass_(java.lang.String class_)
class_
- A new class value.public int getFid_()
public void setFid_(java.lang.String fid_)
fid_
- A new flow identifier.public int getPacketSize_()
public void setPacketSize_(java.lang.String packetSize)
packetSize
- A new packet size.public boolean canHaveMultipleConnections()
canHaveMultipleConnections
in class Agent
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 |