public class PacketGeneratorType
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ECG |
static int |
EEG |
static int |
RANDOM |
static int |
THORAX |
| Constructor and Description |
|---|
PacketGeneratorType() |
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
nameOf(int typeID)
Returns the name of the public PacketGeneratorType identifier field with
the given type id.
|
static int |
valueOf(java.lang.String typename)
Returns the public PacketGeneratorType identifier field which corresponds
to the provided typename.
|
public static final int RANDOM
public static final int THORAX
public static final int ECG
public static final int EEG
public static int valueOf(java.lang.String typename)
typename - the name of the packet generator type field desired; this
should (with the exception of case) exactly match one of the public type
fields of packet generator typejava.lang.IllegalArgumentException - if the typename does not correspond to
one of the fieldspublic static java.lang.String nameOf(int typeID)
typeID - integer value to attempt to be converted to a string