public enum DataChannel extends Enum<DataChannel>
The device stores analog values as IEEE single floats and digital values as ints, hence we need
isAnalog().
The device allows for 16 possible counter channels followed by 16 possible analog channels.
| Enum Constant and Description |
|---|
COUNTER_0_3
Counter of 0.3-micron and larger particles.
|
COUNTER_0_5
Counter of 0.5-micron and larger particles.
|
COUNTER_1_0
Counter of 1-micron and larger particles.
|
COUNTER_10_0
Counter of 10-micron and larger particles.
|
COUNTER_2_5
Counter of 2.5-micron and larger particles.
|
COUNTER_5_0
Counter of 5-micron and larger particles.
|
HUMID
Ambient humidity probe.
|
TEMP
Ambient temperature probe.
|
| Modifier and Type | Field and Description |
|---|---|
static DataChannel |
FIRST_ANALOG_CHANNEL
The analog channel with the lowest channel index.
|
static int |
NUM_ANALOG_CHANNELS
The number of analog channels.
|
static int |
NUM_PARTICLE_CHANNELS
The number of particle channels (which are all digital).
|
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
Gets the index of the channel.
|
String |
getName()
Gets the name of the channel.
|
ChannelType |
getType()
Gets the type of quantity measured.
|
boolean |
isAnalog()
Is this an analog channel?
|
static DataChannel |
parse(String name)
Converts a string to a DataChannel.
|
static DataChannel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DataChannel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DataChannel COUNTER_0_3
public static final DataChannel COUNTER_0_5
public static final DataChannel COUNTER_1_0
public static final DataChannel COUNTER_2_5
public static final DataChannel COUNTER_5_0
public static final DataChannel COUNTER_10_0
public static final DataChannel TEMP
public static final DataChannel HUMID
public static final int NUM_PARTICLE_CHANNELS
public static final int NUM_ANALOG_CHANNELS
public static final DataChannel FIRST_ANALOG_CHANNEL
public static DataChannel[] values()
for (DataChannel c : DataChannel.values()) System.out.println(c);
public static DataChannel 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 DataChannel parse(String name)
getName().name - The name to be parsed.IllegalArgumentException - if no translation can be made.public int getIndex()
public ChannelType getType()
public String getName()
public boolean isAnalog()
Copyright © 2018 LSST. All rights reserved.