public enum PtpDeviceState extends Enum<PtpDeviceState>
| Enum Constant and Description |
|---|
DISABLED |
FAULTY |
INITIALIZING
Just got connected to a local network.
|
LISTENING
Listening for PTP packets from a master clock.
|
MASTER |
NO_OPERATION
The device has no connection to a network.
|
PASSIVE |
PRE_MASTER |
SLAVE
Now sync'ed to a master clock.
|
UNCALIBRATED |
| Modifier and Type | Method and Description |
|---|---|
static PtpDeviceState |
fromStateNumber(int n)
Converts a raw state number from the device into one of the enum values.
|
static int |
toStateNumber(PtpDeviceState state) |
static PtpDeviceState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PtpDeviceState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PtpDeviceState NO_OPERATION
public static final PtpDeviceState INITIALIZING
public static final PtpDeviceState FAULTY
public static final PtpDeviceState DISABLED
public static final PtpDeviceState LISTENING
public static final PtpDeviceState PRE_MASTER
public static final PtpDeviceState MASTER
public static final PtpDeviceState PASSIVE
public static final PtpDeviceState UNCALIBRATED
public static final PtpDeviceState SLAVE
public static PtpDeviceState[] values()
for (PtpDeviceState c : PtpDeviceState.values()) System.out.println(c);
public static PtpDeviceState 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 static PtpDeviceState fromStateNumber(int n) throws IllegalArgumentException
n - the raw state number.IllegalArgumentException - if the argument is outside the legal range.public static int toStateNumber(PtpDeviceState state)
Copyright © 2024 LSST. All rights reserved.