|
||||||||||
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.ExponentialAgent
public class ExponentialAgent
Class for representing UDP packet generation in the form of an exponential distribution of packet arrivals.
Nested Class Summary | |
---|---|
class |
ExponentialAgent.ExponentialPropertiesDialog
Displays a dialog box allowing the user to specify this Application's properties. |
Field Summary | |
---|---|
private double |
burstTime_
NS2 Exponential traffic generator burst time field. |
private double |
idleTime_
NS2 Exponential traffic generator idle time field. |
private double |
rate_
NS2 Exponential traffic generator rate field. |
private static long |
serialVersionUID
Generated seraial version UID |
private java.lang.String |
type_
NS2 Exponential traffic generator type field. |
Fields inherited from class edu.colorado.cs.ns2.agents.Application |
---|
acceptableConnectAgents, agentId, applicationId, applicationName, nodeId, startEventScheduled, stopEventScheduled, variableName |
Constructor Summary | |
---|---|
ExponentialAgent(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 CBR Application |
double |
getBurstTime_()
Returns the TCL burst time field. |
double |
getIdleTime_()
Returns the TCL idle time value. |
double |
getRate_()
Returns the TCL rate field. |
java.lang.String |
getType_()
Returns the TCL type value. |
protected void |
setAcceptableConnectAgents()
Sets the Vector of acceptable Agents on which this Application type may be attached. |
void |
setBurstTime_(double burstTime_)
Sets the TCL burst time field. |
void |
setIdleTime_(double idleTime_)
Sets the TCL idle time value. |
void |
setProperties()
Sets the properties for this Application type. |
void |
setRate_(double rate_)
Sets the TCL rate field. |
void |
setType_(java.lang.String type_)
Sets the TCL type value. |
java.lang.String |
toString()
Returns a String representation of an ExponentialAgent object. |
Methods inherited from class edu.colorado.cs.ns2.agents.Application |
---|
getAcceptableAgents, 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
private java.lang.String type_
private double rate_
private double burstTime_
private double idleTime_
Constructor Detail |
---|
public ExponentialAgent(int nextId, int nodeId, int agentId)
nextId
- - Agent/ Application id - Globally Incremented.nodeId
- - Associates with this Node.Method Detail |
---|
public double getBurstTime_()
public void setBurstTime_(double burstTime_)
burstTime_
- A new burst time value.public double getIdleTime_()
public void setIdleTime_(double idleTime_)
idleTime_
- A new idle time value.protected void setAcceptableConnectAgents()
setAcceptableConnectAgents
in class Application
public java.lang.String addApplicationToScript(NsNode node, int agentElement)
addApplicationToScript
in class Application
node
- The Node to Attach Application ToagentElement
- Index of Agent to which Application is to be attached.
public double getRate_()
public void setRate_(double rate_)
rate_
- A new rate value.public java.lang.String getType_()
public void setType_(java.lang.String type_)
type_
- A new type value.public java.lang.String toString()
toString
in class java.lang.Object
public void setProperties()
setProperties
in class Application
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |