NS3-GUI-HELPER V1.2.0
A code generator for NS-3 Scripts
Loading...
Searching...
No Matches
FileHandler.CodeGenerator Class Reference

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
 

Detailed Description

This class will be responsible for generating the code for the equivalent topology

Definition at line 16 of file CodeGenerator.java.

Constructor & Destructor Documentation

◆ CodeGenerator()

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

Parameters
sserver configuration dialog
cclient configuration dialog
connconnection dialog
linklink dialog
othermap of extra fileds
Since
0.3.0

Definition at line 83 of file CodeGenerator.java.

Member Function Documentation

◆ GenerateCode()

void FileHandler.CodeGenerator.GenerateCode ( )

This function is used for generating code for the topology

Definition at line 96 of file CodeGenerator.java.

◆ getCode()

String FileHandler.CodeGenerator.getCode ( )

Definition at line 340 of file CodeGenerator.java.

Member Data Documentation

◆ code

String FileHandler.CodeGenerator.code
protected

final code

Definition at line 71 of file CodeGenerator.java.

◆ NAME_OF_TOPOLOGY

final String FileHandler.CodeGenerator.NAME_OF_TOPOLOGY = "custom"
static

a key value for the name of the topology

Definition at line 30 of file CodeGenerator.java.

◆ TOTAL_NODES

final String FileHandler.CodeGenerator.TOTAL_NODES = "nodes"
static

key value for total nodes

Definition at line 34 of file CodeGenerator.java.

◆ UTILITY_NETANIM

final String FileHandler.CodeGenerator.UTILITY_NETANIM = "netanim"
static

a key value for netanim utility

Definition at line 22 of file CodeGenerator.java.

◆ UTILITY_WIRESHARK

final String FileHandler.CodeGenerator.UTILITY_WIRESHARK = "wireshark"
static

a key value for the wireshark utility

Definition at line 26 of file CodeGenerator.java.

◆ VALUE_FALSE

final String FileHandler.CodeGenerator.VALUE_FALSE = "f"
static

a key value for reading the false value representing

Definition at line 42 of file CodeGenerator.java.

◆ VALUE_TRUE

final String FileHandler.CodeGenerator.VALUE_TRUE = "t"
static

a key value for reading the true value representing

Definition at line 38 of file CodeGenerator.java.


The documentation for this class was generated from the following file: