|
||||||||||
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.TCPSink
public class TCPSink
This is the implementation of NS2's TCPSink Agent.
Field Summary | |
---|---|
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 | |
---|---|
TCPSink(int id,
int NodeId)
Constructor. |
Method Summary | |
---|---|
private void |
setAcceptableAgents()
Set list of acceptable agents that a TCPAgent can connect to |
void |
setAgentProperties()
Sets the TCPSink's properties. |
java.lang.String |
toString()
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
Constructor Detail |
---|
public TCPSink(int id, int NodeId)
id
- The next available globally unique identifier.NodeId
- The identifier of the node on which this Agent resides.Method Detail |
---|
private void setAcceptableAgents()
public java.lang.String toString()
toString
in class java.lang.Object
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 |