|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.ns2.agents.Application
edu.colorado.cs.ns2.agents.FTPAgent
public class FTPAgent
This is the NS2 implementation of the File Transfer Protocol (FTP).
Nested Class Summary | |
---|---|
class |
FTPAgent.FTPPropertiesDialog
This nested class is responsible for creating and displaying a dialog box to allow the user to interactively set the FTPAgent's properties. |
Field Summary | |
---|---|
private static long |
serialVersionUID
Generated serial version UID. |
Fields inherited from class edu.colorado.cs.ns2.agents.Application |
---|
acceptableConnectAgents, agentId, applicationId, applicationName, nodeId, startEventScheduled, stopEventScheduled, variableName |
Constructor Summary | |
---|---|
FTPAgent(int nextId,
int nodeId,
int agentId)
Default Constructor |
Method Summary | |
---|---|
java.lang.String |
addApplicationToScript(NsNode node,
int agentElement)
Returns the String to be Written for the FTPAgent Application. |
java.util.Vector<java.lang.String> |
getAcceptableAgents()
Returns a Vector of acceptable agents on which this Application may be attached. |
protected void |
setAcceptableConnectAgents()
Populates a list of acceptable Agents on which this Application may be attached. |
void |
setProperties()
Allows the user to interactively set the FTPAgent's properties via a dialog box. |
java.lang.String |
toString()
Returns a String representation of the FTPAgent type. |
Methods inherited from class edu.colorado.cs.ns2.agents.Application |
---|
getAgentId, getApplicatinName, getApplicationId, getApplicationName, getNodeId, getVariableName, isStartEventScheduled, isStopEventScheduled, setAgentId, setApplicatioName, setApplicationId, setApplicationName, setNodeId, setStartEventScheduled, setStopEventScheduled, setVariableName |
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 FTPAgent(int nextId, int nodeId, int agentId)
nextId
- Agent/ Application id - Globally Incremented.nodeId
- Associates with this Node.Method Detail |
---|
public java.lang.String addApplicationToScript(NsNode node, int agentElement)
addApplicationToScript
in class Application
node
- The Node on which to attach.agentElement
- Index of Agent to which this Application is to be attached.
public java.util.Vector<java.lang.String> getAcceptableAgents()
getAcceptableAgents
in class Application
public java.lang.String toString()
toString
in class java.lang.Object
public void setProperties()
setProperties
in class Application
protected void setAcceptableConnectAgents()
setAcceptableConnectAgents
in class Application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |