Class Settings

java.lang.Object
networktablesviewer.Settings

public class Settings extends Object
Holds user settings for the application
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    The static IP stored in settings
    int
    How the application should obtain the NT server IP 0 - use Driver station 1 - use static IP 2 - use team number
    int
    The team number stored in settings
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    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
    void
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • serverObtain

      public int serverObtain
      How the application should obtain the NT server IP 0 - use Driver station 1 - use static IP 2 - use team number
    • team

      public int team
      The team number stored in settings
    • ip

      public String 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