NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
|
Public Member Functions | |
P2P (int id, String name, String delay, String dataRate, String speedModifier, boolean enablePcap) | |
P2P (int id, String name, String delay, String dataRate, String speedModifier, boolean enablePcap, boolean isDefault) | |
P2P (int id, String name, String delay, String dataRate, String speedModifier, boolean enablePcap, boolean isDefault, boolean isUsed) | |
String | toString () |
String | forSettings () |
boolean | isDefault () |
void | setDefault (boolean isDefault) |
boolean | isUsed () |
void | setUsed (boolean used) |
String | toCode () |
String | getPacketCaptureAllCode () |
int | getId () |
void | setId (int id) |
String | getName () |
void | setName (String name) |
String | getDelay () |
void | setDelay (String delay) |
String | getDataRate () |
void | setDataRate (String dataRate) |
String | getSpeedModifier () |
void | setSpeedModifier (String speedModifier) |
LinkType | getLinkType () |
void | setLinkType (LinkType linkType) |
boolean | getEnablePcap () |
void | setEnablePcap (boolean enablePcap) |
Public Attributes | |
String | name |
String | delay |
String | dataRate |
String | speedModifier |
Public Attributes inherited from Ns3Objects.Links.NetworkLink | |
int | CHOICE_INDEX_P2P = 0 |
int | CHOICE_INDEX_CSMA = 1 |
String | LABEL_P2P = "P2P" |
String | LABEL_CSMA = "CSMA" |
Additional Inherited Members | |
Static Public Member Functions inherited from Ns3Objects.Links.NetworkLink | |
static LinkType | getLinkType (int choiceIndex) |
to store the link of type PointToPointHelper in terms of NS-3 Script
Ns3Objects.Links.P2P.P2P | ( | int | id, |
String | name, | ||
String | delay, | ||
String | dataRate, | ||
String | speedModifier, | ||
boolean | enablePcap ) |
to instantiate the object of type P2P
id | for identity |
name | for alias |
delay | for delay in ms |
dataRate | for data rate of the link |
speedModifier | for speed modifier |
enablePcap | for enabling packet capture of entire link |
Ns3Objects.Links.P2P.P2P | ( | int | id, |
String | name, | ||
String | delay, | ||
String | dataRate, | ||
String | speedModifier, | ||
boolean | enablePcap, | ||
boolean | isDefault ) |
to instantiate the object of type P2P
id | for identity |
name | for alias |
delay | for delay in ms |
dataRate | for data rate of the link |
speedModifier | for speed modifier |
enablePcap | for enabling packet capture of entire link |
isDefault | for setting as default link |
Ns3Objects.Links.P2P.P2P | ( | int | id, |
String | name, | ||
String | delay, | ||
String | dataRate, | ||
String | speedModifier, | ||
boolean | enablePcap, | ||
boolean | isDefault, | ||
boolean | isUsed ) |
to instantiate the object of type P2P
id | for identity |
name | for alias |
delay | for delay in ms |
dataRate | for data rate of the link |
speedModifier | for speed modifier |
enablePcap | for enabling packet capture of entire link |
isDefault | for setting as default link |
isUsed | for marking as used link |
String Ns3Objects.Links.P2P.forSettings | ( | ) |
to generate the storage format in settings file
Implements Ns3Objects.Links.NetworkLink.
String Ns3Objects.Links.P2P.getDataRate | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
String Ns3Objects.Links.P2P.getDelay | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
boolean Ns3Objects.Links.P2P.getEnablePcap | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
int Ns3Objects.Links.P2P.getId | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
LinkType Ns3Objects.Links.P2P.getLinkType | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
String Ns3Objects.Links.P2P.getName | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
String Ns3Objects.Links.P2P.getPacketCaptureAllCode | ( | ) |
to generate the code for packet capture of entire link
Example:
p2pName.EnablePcapAll("Name");
Implements Ns3Objects.Links.NetworkLink.
String Ns3Objects.Links.P2P.getSpeedModifier | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
boolean Ns3Objects.Links.P2P.isDefault | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
boolean Ns3Objects.Links.P2P.isUsed | ( | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setDataRate | ( | String | dataRate | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setDefault | ( | boolean | isDefault | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setDelay | ( | String | delay | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setEnablePcap | ( | boolean | enablePcap | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setId | ( | int | id | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setLinkType | ( | LinkType | linkType | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setName | ( | String | name | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setSpeedModifier | ( | String | speedModifier | ) |
Implements Ns3Objects.Links.NetworkLink.
void Ns3Objects.Links.P2P.setUsed | ( | boolean | used | ) |
Implements Ns3Objects.Links.NetworkLink.
String Ns3Objects.Links.P2P.toCode | ( | ) |
to generate the link configuration code
Example:
PointToPointHelper pointToPoint;
pointToPoint.SetDeviceAttribute("DataRate", StringValue("500Mbps"));
pointToPoint.SetChannelAttribute("Delay", StringValue("2ms"));
Implements Ns3Objects.Links.NetworkLink.
String Ns3Objects.Links.P2P.toString | ( | ) |
String Ns3Objects.Links.P2P.speedModifier |