|
||||||||||
| 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.NullAgent
public class NullAgent
This class implements the NS2 Null Agent. This Agent is a UDP sink.
| 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 | |
|---|---|
NullAgent(int nextId,
int nodeId)
Constructor. |
|
| Method Summary | |
|---|---|
boolean |
isConnected()
Returns True if the current Agent is connect to another Agent. |
private void |
setAcceptableAgents()
Sets the Vector of acceptable agents to which this Agent may connect. |
void |
setAgentProperties()
Sets this Agent's properties. |
java.lang.String |
toString()
Returns a String representation of this class. |
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, 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 NullAgent(int nextId,
int nodeId)
nextId - The next available globally unique identifer.nodeId - The unique identifier of the node on which this Agent resides.| Method Detail |
|---|
private void setAcceptableAgents()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean isConnected()
isConnected in class Agentpublic void setAgentProperties()
setAgentProperties in class Agentpublic 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 | |||||||||