public enum Platform extends Enum<Platform>
This enumeration defines the platforms supported by Pi4J.
Enum Constant and Description |
---|
BANANAPI |
BANANAPRO |
BPI |
NANOPI |
ODROID |
ORANGEPI |
RASPBERRYPI |
SIMULATED |
Modifier and Type | Field and Description |
---|---|
protected String |
label |
protected String |
platformId |
Modifier and Type | Method and Description |
---|---|
static Platform |
fromId(String platformId)
Lookup a platform enumeration by the platform's unique identifier string.
|
GpioProvider |
getGpioProvider() |
static GpioProvider |
getGpioProvider(Platform platform) |
I2CFactoryProvider |
getI2CFactoryProvider() |
static I2CFactoryProvider |
getI2CFactoryProvider(Platform platform) |
String |
getId()
Get the platform's unique identifier string.
|
String |
getLabel()
Get the platform's friendly string name/label.
|
SystemInfoProvider |
getSystemInfoProvider() |
static SystemInfoProvider |
getSystemInfoProvider(Platform platform) |
String |
id()
Get the platform's unique identifier string.
|
String |
label()
Get the platform's friendly string name/label.
|
static Platform |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Platform[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Platform RASPBERRYPI
protected String platformId
public static Platform[] values()
for (Platform c : Platform.values()) System.out.println(c);
public static Platform valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getLabel()
public String label()
public String getId()
public static Platform fromId(String platformId)
public GpioProvider getGpioProvider()
public static GpioProvider getGpioProvider(Platform platform)
public I2CFactoryProvider getI2CFactoryProvider()
public static I2CFactoryProvider getI2CFactoryProvider(Platform platform)
public SystemInfoProvider getSystemInfoProvider()
public static SystemInfoProvider getSystemInfoProvider(Platform platform)
Copyright © 2012–2021 Pi4J. All rights reserved.