|
||||||||||
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.UDPAgent
public class UDPAgent
This is the implementation of the UDP Agent.
Nested Class Summary | |
---|---|
private class |
UDPAgent.UDPAgentPropertiesDialog
A nested class for creating and displaying a dialog box in which to retrieve the properties for a UDP Agent. |
Field Summary | |
---|---|
private int |
class_
NS2's UDP class_ TCL variable. |
private int |
fid_
NS2's UDP fid_ (flow identifier) 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 | |
---|---|
UDPAgent(int nextId,
int nodeId)
Constructor. |
Method Summary | |
---|---|
boolean |
canHaveMultipleConnections()
Returns True if the current Agent may have multiple connections. |
int |
getClass_()
Returns the value of the class_ TCL variable. |
int |
getFid_()
Returns the flow identifier. |
private void |
setAcceptableAgents()
Sets the list of acceptable agents to which a UDPAgent may connect. |
void |
setAgentProperties()
Sets the Agents properties via a dialog box. |
void |
setClass_(java.lang.String class_)
Sets the value of the TCL class_ variable. |
void |
setFid_(java.lang.String fid_)
Sets the flow identifier. |
java.lang.String |
toString()
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 fid_
private int class_
Constructor Detail |
---|
public UDPAgent(int nextId, int nodeId)
nextId
- The next available globally unique identifier.nodeId
- The identifier of the node on which the Agent resides.Method Detail |
---|
private void setAcceptableAgents()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean canHaveMultipleConnections()
canHaveMultipleConnections
in class Agent
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 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 |