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

Static Public Member Functions

static void setUpSettings ()
 
static void setUpSettings (String OutputPath)
 
static void saveSettings ()
 
static boolean hasDefaultLinks ()
 
static boolean hasDefaultWiFiLinks ()
 
static boolean hasDefaultNetworks ()
 
static ArrayList< NetworkLinkgetDefaultLinks ()
 
static ArrayList< WIFIgetDefaultWiFiLinks ()
 
static ArrayList< NetworkgetDefaultNetworks ()
 
static void saveDefaultLinks (ArrayList< NetworkLink > links)
 
static void saveDefaultWiFiLinks (ArrayList< WIFI > links)
 
static void saveDefaultNetworks (ArrayList< Network > networks)
 

Static Public Attributes

static String OUTPUT_PATH = "outputPath"
 
static String FILE_NAME = "fileName"
 
static String DEFAULT_LINKS = "defaultLinks"
 
static String DEFAULT_WIFI_LINKS = "defaultWiFiLinks"
 
static String DEFAULT_NETWORKS = "defaultNetworks"
 
static JSONObject UNIVERSAL_SETTINGS = new JSONObject()
 
static String OutputPath = System.getProperty("user.dir")
 

Detailed Description

This class will be used for managing the settings for application environment

Since
1.0.0

Definition at line 27 of file ApplicationSettingsHelper.java.

Member Function Documentation

◆ getDefaultLinks()

static ArrayList< NetworkLink > Helpers.ApplicationSettingsHelper.getDefaultLinks ( )
static

to get the default links

Returns
list of default links
Since
1.0.0

Definition at line 145 of file ApplicationSettingsHelper.java.

◆ getDefaultNetworks()

static ArrayList< Network > Helpers.ApplicationSettingsHelper.getDefaultNetworks ( )
static

to get the default networks

Returns
list of default networks
Since
1.0.0

Definition at line 201 of file ApplicationSettingsHelper.java.

◆ getDefaultWiFiLinks()

static ArrayList< WIFI > Helpers.ApplicationSettingsHelper.getDefaultWiFiLinks ( )
static

to get the default wi-fi links

Returns
list of default wi-fi links
Since
1.2.0

Definition at line 175 of file ApplicationSettingsHelper.java.

◆ hasDefaultLinks()

static boolean Helpers.ApplicationSettingsHelper.hasDefaultLinks ( )
static

to check whether the settings object has default links

Returns
boolean variable indicating presence of the default links
Since
1.0.0

Definition at line 112 of file ApplicationSettingsHelper.java.

◆ hasDefaultNetworks()

static boolean Helpers.ApplicationSettingsHelper.hasDefaultNetworks ( )
static

to check whether the settings object has default networks

Returns
boolean variable indicating presence of the default networks
Since
1.0.0

Definition at line 134 of file ApplicationSettingsHelper.java.

◆ hasDefaultWiFiLinks()

static boolean Helpers.ApplicationSettingsHelper.hasDefaultWiFiLinks ( )
static

to check whether the settings object has default wi-fi links

Returns
boolean value indicating presence of the default links
Since
1.2.0

Definition at line 123 of file ApplicationSettingsHelper.java.

◆ saveDefaultLinks()

static void Helpers.ApplicationSettingsHelper.saveDefaultLinks ( ArrayList< NetworkLink > links)
static

to set the default links

Since
1.1.0

Definition at line 226 of file ApplicationSettingsHelper.java.

◆ saveDefaultNetworks()

static void Helpers.ApplicationSettingsHelper.saveDefaultNetworks ( ArrayList< Network > networks)
static

to set the default networks

Since
1.1.0

Definition at line 264 of file ApplicationSettingsHelper.java.

◆ saveDefaultWiFiLinks()

static void Helpers.ApplicationSettingsHelper.saveDefaultWiFiLinks ( ArrayList< WIFI > links)
static

to set the default links

Since
1.2.0

Definition at line 245 of file ApplicationSettingsHelper.java.

◆ saveSettings()

static void Helpers.ApplicationSettingsHelper.saveSettings ( )
static

for saving the settings to the file

Since
1.1.0

Definition at line 100 of file ApplicationSettingsHelper.java.

◆ setUpSettings() [1/2]

static void Helpers.ApplicationSettingsHelper.setUpSettings ( )
static

to enable the application with basic settings, for the first time

See also
ApplicationSettingsHelper::setUpSettings(String)
Since
1.0.0

Definition at line 67 of file ApplicationSettingsHelper.java.

◆ setUpSettings() [2/2]

static void Helpers.ApplicationSettingsHelper.setUpSettings ( String OutputPath)
static

to check the content of the settings file, restoring the settings from the file

Parameters
OutputPaththe path of the file
See also
ApplicationSettingsHelper::setUpSettings()
Since
1.0.0

Definition at line 79 of file ApplicationSettingsHelper.java.

Member Data Documentation

◆ DEFAULT_LINKS

String Helpers.ApplicationSettingsHelper.DEFAULT_LINKS = "defaultLinks"
static

for key of the default links

Definition at line 40 of file ApplicationSettingsHelper.java.

◆ DEFAULT_NETWORKS

String Helpers.ApplicationSettingsHelper.DEFAULT_NETWORKS = "defaultNetworks"
static

for default network settings

Definition at line 48 of file ApplicationSettingsHelper.java.

◆ DEFAULT_WIFI_LINKS

String Helpers.ApplicationSettingsHelper.DEFAULT_WIFI_LINKS = "defaultWiFiLinks"
static

for key of the default wi-fi links

Definition at line 44 of file ApplicationSettingsHelper.java.

◆ FILE_NAME

String Helpers.ApplicationSettingsHelper.FILE_NAME = "fileName"
static

for key of the file name

Definition at line 36 of file ApplicationSettingsHelper.java.

◆ OUTPUT_PATH

String Helpers.ApplicationSettingsHelper.OUTPUT_PATH = "outputPath"
static

the file path for code generation

Definition at line 32 of file ApplicationSettingsHelper.java.

◆ OutputPath

String Helpers.ApplicationSettingsHelper.OutputPath = System.getProperty("user.dir")
static

for getting the default output path for the file generation

Definition at line 58 of file ApplicationSettingsHelper.java.

◆ UNIVERSAL_SETTINGS

JSONObject Helpers.ApplicationSettingsHelper.UNIVERSAL_SETTINGS = new JSONObject()
static

for storing the settings of the application

Definition at line 54 of file ApplicationSettingsHelper.java.


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