NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
|
Public Member Functions | |
CodeGenerator (Dialog_ConfigureServer s, Dialog_ConfigureClient c, Dialog_Connection conn, Dialog_Link link, Dialog_WiFiLink dialogWiFiLink, Map< String, String > other) | |
void | GenerateCode () |
String | getCode () |
Static Public Attributes | |
static final String | UTILITY_NETANIM = "netanim" |
static final String | UTILITY_WIRESHARK = "wireshark" |
static final String | NAME_OF_TOPOLOGY = "custom" |
static final String | TOTAL_NODES = "nodes" |
static final String | VALUE_TRUE = "t" |
static final String | VALUE_FALSE = "f" |
Protected Attributes | |
String | code |
This class will be responsible for generating the code for the equivalent topology
Definition at line 16 of file CodeGenerator.java.
FileHandler.CodeGenerator.CodeGenerator | ( | Dialog_ConfigureServer | s, |
Dialog_ConfigureClient | c, | ||
Dialog_Connection | conn, | ||
Dialog_Link | link, | ||
Dialog_WiFiLink | dialogWiFiLink, | ||
Map< String, String > | other ) |
to make an object of type CodeGenerator
s | server configuration dialog |
c | client configuration dialog |
conn | connection dialog |
link | link dialog |
other | map of extra fileds |
Definition at line 83 of file CodeGenerator.java.
void FileHandler.CodeGenerator.GenerateCode | ( | ) |
This function is used for generating code for the topology
Definition at line 96 of file CodeGenerator.java.
String FileHandler.CodeGenerator.getCode | ( | ) |
Definition at line 340 of file CodeGenerator.java.
|
protected |
final code
Definition at line 71 of file CodeGenerator.java.
|
static |
a key value for the name of the topology
Definition at line 30 of file CodeGenerator.java.
|
static |
key value for total nodes
Definition at line 34 of file CodeGenerator.java.
|
static |
a key value for netanim utility
Definition at line 22 of file CodeGenerator.java.
|
static |
a key value for the wireshark utility
Definition at line 26 of file CodeGenerator.java.
|
static |
a key value for reading the false value representing
Definition at line 42 of file CodeGenerator.java.
|
static |
a key value for reading the true value representing
Definition at line 38 of file CodeGenerator.java.