|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.colorado.cs.ns2.agents.Application edu.colorado.cs.ns2.agents.ParetoAgent
public class ParetoAgent
This is the implemenation of NS2's Pareto traffic generator for UDP.
Nested Class Summary | |
---|---|
class |
ParetoAgent.ParetoPropertiesDialog
This nested class allows the user to specify the Pareto traffic generator's properties. |
Field Summary | |
---|---|
private double |
burstTime_
TCL burstTime_ variable. |
private double |
idleTime_
TCL idleTime_ variable. |
private double |
rate_
TCL rate_ variabile. |
private static long |
serialVersionUID
Generated serial version uid. |
private double |
shape_
TCL shape_ variable. |
private java.lang.String |
type_
TCL type_ variable. |
Fields inherited from class edu.colorado.cs.ns2.agents.Application |
---|
acceptableConnectAgents, agentId, applicationId, applicationName, nodeId, startEventScheduled, stopEventScheduled, variableName |
Constructor Summary | |
---|---|
ParetoAgent(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 value of the TCL burstTime_ variable. |
double |
getIdleTime_()
Returns the value of the idleTime_ TCL variable. |
double |
getRate_()
Returns the value of the TCL rate_ variable. |
double |
getShape_()
Returns the value of the TCL shape_ variable. |
java.lang.String |
getType_()
Returns the value of the type_ TCL variaible. |
protected void |
setAcceptableConnectAgents()
Sets the list of acceptable agents on which this Application can reside. |
void |
setBurstTime_(double burstTime_)
Sets the value of the TCL burstTime_ variable. |
void |
setIdleTime_(double idleTime_)
Sets the value of the idleTime_ TCL variable. |
void |
setProperties()
Sets the properties for this application. |
void |
setRate_(double rate_)
Sets the value of the TCL rate_ variable. |
void |
setShape_(double shape_)
Sets the value of the TCL shape_ variable. |
void |
setType_(java.lang.String type_)
Sets the value of the type_ TCL variable. |
java.lang.String |
toString()
Returns a String representation of this 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_
private double shape_
Constructor Detail |
---|
public ParetoAgent(int nextId, int nodeId, int agentId)
nextId
- Agent / Application id - Globally Incremented.nodeId
- Associates with this Node.agentId
- The identifier of the Agent on which this traffic generator resides.Method Detail |
---|
public double getShape_()
public void setShape_(double shape_)
shape_
- A new shape value.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 |