Class NetworkConfig

java.lang.Object
org.photonvision.common.configuration.NetworkConfig
Direct Known Subclasses:
UINetConfig

public class NetworkConfig extends Object
  • Field Details

    • ntServerAddress

      public String ntServerAddress
    • connectionType

      public NetworkMode connectionType
    • staticIp

      public String staticIp
    • hostname

      public String hostname
    • runNTServer

      public boolean runNTServer
    • shouldManage

      public boolean shouldManage
    • shouldPublishProto

      public boolean shouldPublishProto
    • matchCamerasOnlyByPath

      public boolean matchCamerasOnlyByPath
      If we should ONLY match cameras by path, and NEVER only by base-name. For now default to false to preserve old matching logic.

      This also disables creating new CameraConfigurations for detected "new" cameras.

    • NM_IFACE_STRING

      public static final String NM_IFACE_STRING
      See Also:
    • NM_IP_STRING

      public static final String NM_IP_STRING
      See Also:
    • networkManagerIface

      public String networkManagerIface
    • setStaticCommand

      public String setStaticCommand
    • setDHCPcommand

      public String setDHCPcommand
  • Constructor Details

    • NetworkConfig

      public NetworkConfig()
    • NetworkConfig

      public NetworkConfig(String ntServerAddress, NetworkMode connectionType, String staticIp, String hostname, boolean runNTServer, boolean shouldManage, boolean shouldPublishProto, String networkManagerIface, String setStaticCommand, String setDHCPcommand, boolean matchCamerasOnlyByPath)
    • NetworkConfig

      public NetworkConfig(NetworkConfig config)
  • Method Details

    • toHashMap

      public Map<String,Object> toHashMap()
    • getPhysicalInterfaceName

      public String getPhysicalInterfaceName()
    • getEscapedInterfaceName

      public String getEscapedInterfaceName()
    • shouldManage

      public boolean shouldManage()
    • setShouldManage

      public void setShouldManage(boolean shouldManage)
    • toString

      public String toString()
      Overrides:
      toString in class Object