|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.colorado.cs.ns2.agents.Application
public abstract class Application
Defines Abstract Class Application. This abstract class must be implemented for all new Application subtypes.
Field Summary | |
---|---|
protected java.util.Vector<java.lang.String> |
acceptableConnectAgents
A Vector of Agent names that are acceptable for attaching this Application. |
protected int |
agentId
Stores the agent identifier on which this application resides. |
protected int |
applicationId
Stores the application identifer. |
protected java.lang.String |
applicationName
Store the name of the Application in the NS2 application naming convention. |
protected int |
nodeId
Stores the Node identifier on which this application's agent resides. |
protected boolean |
startEventScheduled
True if a "start" event has been scheduled for this Application. |
protected boolean |
stopEventScheduled
True if a "stop" event has been scheduled for this Application. |
protected java.lang.String |
variableName
Stores this Application's TCL variable name |
Constructor Summary | |
---|---|
Application()
Default Constructor. |
Method Summary | |
---|---|
abstract java.lang.String |
addApplicationToScript(NsNode node,
int agentElement)
Adds the current Application to the TCL script. |
java.util.Vector<java.lang.String> |
getAcceptableAgents()
Returns a Vector of the acceptable agents on which the current Application may attach. |
int |
getAgentId()
Returns the unique Agent identifier. |
java.lang.String |
getApplicatinName()
Returns this Application's name. |
int |
getApplicationId()
Returns this Application's unique identifier. |
java.lang.String |
getApplicationName()
Returns the Application's name. |
int |
getNodeId()
Returns the Node's identifier on which the Application resides. |
java.lang.String |
getVariableName()
Returns this Application's TCL variable name. |
boolean |
isStartEventScheduled()
Returns true if this Application's "start" event has been scheduled. |
boolean |
isStopEventScheduled()
Returns the status of the "stop" event in the event schedule. |
protected abstract void |
setAcceptableConnectAgents()
Sets the acceptable agents on which the current Application may be attached. |
void |
setAgentId(int agentId)
Sets the unique Agent identifier. |
void |
setApplicatioName(java.lang.String applicatioName)
Sets this Application's name. |
void |
setApplicationId(int applicationId)
Sets this Application's unique identifier. |
void |
setApplicationName(java.lang.String applicationName)
Sets the application name. |
void |
setNodeId(int nodeId)
Sets the node ID on which the Application resides. |
abstract void |
setProperties()
Sets the current Applications properties. |
void |
setStartEventScheduled(boolean startEventScheduled)
Sets the status of the "start" event in the event schedule. |
void |
setStopEventScheduled(boolean stopEventScheduled)
Sets the status of the "start" event in the event schedule. |
void |
setVariableName(java.lang.String variableName)
Sets this Application's TCL variable name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.String applicationName
protected int applicationId
protected int nodeId
protected int agentId
protected java.lang.String variableName
protected boolean startEventScheduled
protected boolean stopEventScheduled
protected java.util.Vector<java.lang.String> acceptableConnectAgents
Constructor Detail |
---|
public Application()
Method Detail |
---|
public java.lang.String getApplicationName()
public void setApplicationName(java.lang.String applicationName)
applicationName
- - the new Application name.public java.lang.String getVariableName()
public void setVariableName(java.lang.String variableName)
variableName
- - This Application's new TCL variable name.public java.lang.String getApplicatinName()
public void setApplicatioName(java.lang.String applicatioName)
applicatioName
- - This Application's new name.public int getApplicationId()
public void setApplicationId(int applicationId)
applicationId
- - New Application identifier.public int getNodeId()
public void setNodeId(int nodeId)
nodeId
- public int getAgentId()
public void setAgentId(int agentId)
agentId
- The new Agent identifier.public boolean isStartEventScheduled()
public void setStartEventScheduled(boolean startEventScheduled)
startEventScheduled
- True or False whether the "start" event has been scheduled.public boolean isStopEventScheduled()
public void setStopEventScheduled(boolean stopEventScheduled)
stopEventScheduled
- True or False whether the "stop" event has been scheduled.public java.util.Vector<java.lang.String> getAcceptableAgents()
public abstract void setProperties()
protected abstract void setAcceptableConnectAgents()
public abstract java.lang.String addApplicationToScript(NsNode node, int agentElement)
node
- The node on which the current Application resides.agentElement
- The index of the agent on which the Application is attached.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |