Enum Class Platform

java.lang.Object
java.lang.Enum<Platform>
org.photonvision.common.hardware.Platform
All Implemented Interfaces:
Serializable, Comparable<Platform>, Constable

public enum Platform extends Enum<Platform>
  • Enum Constant Details

    • WINDOWS_64

      public static final Platform WINDOWS_64
    • LINUX_32

      public static final Platform LINUX_32
    • LINUX_64

      public static final Platform LINUX_64
    • LINUX_RASPBIAN32

      public static final Platform LINUX_RASPBIAN32
    • LINUX_RASPBIAN64

      public static final Platform LINUX_RASPBIAN64
    • LINUX_RK3588_64

      public static final Platform LINUX_RK3588_64
    • LINUX_AARCH64

      public static final Platform LINUX_AARCH64
    • LINUX_ARM64

      public static final Platform LINUX_ARM64
    • WINDOWS_32

      public static final Platform WINDOWS_32
    • MACOS

      public static final Platform MACOS
    • LINUX_ARM32

      public static final Platform LINUX_ARM32
    • UNKNOWN

      public static final Platform UNKNOWN
  • Field Details

    • description

      public final String description
    • hardwareModel

      public final String hardwareModel
    • nativeLibraryFolderName

      public final String nativeLibraryFolderName
    • isPi

      public final boolean isPi
    • osType

      public final Platform.OSType osType
    • isSupported

      public final boolean isSupported
  • Method Details

    • values

      public static Platform[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Platform valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isLinux

      public static boolean isLinux()
    • isRK3588

      public static boolean isRK3588()
    • isRaspberryPi

      public static boolean isRaspberryPi()
    • getPlatformName

      public static String getPlatformName()
    • getHardwareModel

      public static String getHardwareModel()
    • getNativeLibraryFolderName

      public static String getNativeLibraryFolderName()
    • isSupported

      public static boolean isSupported()
    • isAthena

      public static boolean isAthena()
    • getCurrentPlatform

      public static Platform getCurrentPlatform()
    • isWindows

      public static boolean isWindows()