NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
|
Public Member Functions | |
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) |
String | forSettings () |
boolean | isDefault () |
void | setDefault (boolean isDefault) |
boolean | isUsed () |
void | setUsed (boolean isUsed) |
String | getPacketCaptureAllCode () |
String | toCode () |
Static Public Member Functions | |
static LinkType | getLinkType (int choiceIndex) |
Public Attributes | |
int | CHOICE_INDEX_P2P = 0 |
int | CHOICE_INDEX_CSMA = 1 |
String | LABEL_P2P = "P2P" |
String | LABEL_CSMA = "CSMA" |
to store and manage network links objects in NS-3
Definition at line 17 of file NetworkLink.java.
String Ns3Objects.Links.NetworkLink.forSettings | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
String Ns3Objects.Links.NetworkLink.getDataRate | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
String Ns3Objects.Links.NetworkLink.getDelay | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
boolean Ns3Objects.Links.NetworkLink.getEnablePcap | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
int Ns3Objects.Links.NetworkLink.getId | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
LinkType Ns3Objects.Links.NetworkLink.getLinkType | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
|
static |
to get the Link type from the provided choice
Definition at line 105 of file NetworkLink.java.
String Ns3Objects.Links.NetworkLink.getName | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
String Ns3Objects.Links.NetworkLink.getPacketCaptureAllCode | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
String Ns3Objects.Links.NetworkLink.getSpeedModifier | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
boolean Ns3Objects.Links.NetworkLink.isDefault | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
boolean Ns3Objects.Links.NetworkLink.isUsed | ( | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setDataRate | ( | String | dataRate | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setDefault | ( | boolean | isDefault | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setDelay | ( | String | delay | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setEnablePcap | ( | boolean | enablePcap | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setId | ( | int | id | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setLinkType | ( | LinkType | linkType | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setName | ( | String | name | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setSpeedModifier | ( | String | speedModifier | ) |
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
void Ns3Objects.Links.NetworkLink.setUsed | ( | boolean | isUsed | ) |
Implemented in Ns3Objects.Links.WIFI, Ns3Objects.Links.CSMA, and Ns3Objects.Links.P2P.
String Ns3Objects.Links.NetworkLink.toCode | ( | ) |
to generate the link configuration code
Example:
PointToPointHelper pointToPoint;
pointToPoint.SetDeviceAttribute("DataRate", StringValue("500Mbps"));
pointToPoint.SetChannelAttribute("Delay", StringValue("2ms"));
Implemented in Ns3Objects.Links.CSMA, Ns3Objects.Links.P2P, and Ns3Objects.Links.WIFI.
int Ns3Objects.Links.NetworkLink.CHOICE_INDEX_CSMA = 1 |
to map the index with the type of the CSMA link
Definition at line 26 of file NetworkLink.java.
int Ns3Objects.Links.NetworkLink.CHOICE_INDEX_P2P = 0 |
to map the index with the type of the P2P link
Definition at line 22 of file NetworkLink.java.
String Ns3Objects.Links.NetworkLink.LABEL_CSMA = "CSMA" |
label for rendering the CSMA link
Definition at line 35 of file NetworkLink.java.
String Ns3Objects.Links.NetworkLink.LABEL_P2P = "P2P" |
label for rendering P2P link
Definition at line 31 of file NetworkLink.java.