Package networktablesviewer
Class Settings
java.lang.Object
networktablesviewer.Settings
Holds user settings for the application
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe static IP stored in settingsintHow the application should obtain the NT server IP 0 - use Driver station 1 - use static IP 2 - use team numberintThe team number stored in settings -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidread()Reads and updates settings from the settings file This function has undefined behavior when the settings file does not exists or is not in the correct formatvoidsave()Writes current settings to the settings file This function has undefined behavior when the settings file does not exists or is not in the correct format
-
Field Details
-
serverObtain
public int serverObtainHow the application should obtain the NT server IP 0 - use Driver station 1 - use static IP 2 - use team number -
team
public int teamThe team number stored in settings -
ip
The static IP stored in settings
-
-
Constructor Details
-
Settings
public Settings()
-
-
Method Details
-
read
public void read()Reads and updates settings from the settings file This function has undefined behavior when the settings file does not exists or is not in the correct format -
save
public void save()Writes current settings to the settings file This function has undefined behavior when the settings file does not exists or is not in the correct format
-