Package org.photonvision.common.hardware
Enum Class Platform
- All Implemented Interfaces:
Serializable
,Comparable<Platform>
,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Modifier and TypeFieldDescriptionfinal String
final String
final boolean
final boolean
final String
final Platform.OSType
-
Method Summary
Modifier and TypeMethodDescriptionstatic Platform
static String
static String
static String
static boolean
isLinux()
static boolean
static boolean
isRK3588()
static boolean
static boolean
static Platform
Returns the enum constant of this class with the specified name.static Platform[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WINDOWS_64
-
LINUX_32
-
LINUX_64
-
LINUX_RASPBIAN32
-
LINUX_RASPBIAN64
-
LINUX_RK3588_64
-
LINUX_AARCH64
-
LINUX_ARM64
-
WINDOWS_32
-
MACOS
-
LINUX_ARM32
-
UNKNOWN
-
-
Field Details
-
description
-
hardwareModel
-
nativeLibraryFolderName
-
isPi
public final boolean isPi -
osType
-
isSupported
public final boolean isSupported
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isLinux
public static boolean isLinux() -
isRK3588
public static boolean isRK3588() -
isRaspberryPi
public static boolean isRaspberryPi() -
getPlatformName
-
getHardwareModel
-
getNativeLibraryFolderName
-
isSupported
public static boolean isSupported() -
getCurrentPlatform
-
isWindows
public static boolean isWindows()
-