Enum ArchDBRTypes
- java.lang.Object
-
- java.lang.Enum<ArchDBRTypes>
-
- org.epics.archiverappliance.config.ArchDBRTypes
-
- All Implemented Interfaces:
Serializable
,Comparable<ArchDBRTypes>
,Constable
public enum ArchDBRTypes extends Enum<ArchDBRTypes>
The various DBR types supported by the EPICS appliance archiver. We can either follow the names as they are defined in db_access.h (which makes int's a 16 bit java short) or we can follow JCA's names which makes this closer to Java. For now, we follow JCA to minimize confusion for Java developers.- Author:
- mshankar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
-
Enum Constant Summary
-
Method Summary
Modifier and Type Method Description int
getIntegerMap()
Get a integer assigned to this type as defined in db_access.hEPICSEvent.PayloadType
getPBPayloadType()
String
getPrimitiveName()
boolean
isV3Type()
boolean
isWaveForm()
Is this thing a vector (or in EPICS terms, a waveform).static SampleValue
sampleValueFromString(ArchDBRTypes dbrType, String sampleValueStr)
static ArchDBRTypes
valueOf(EPICSEvent.PayloadType payloadtype)
This is used to reverse map from the PB Payloadtype enum into a DBR typestatic ArchDBRTypes
valueOf(String name)
Returns the enum constant of this type with the specified name.static ArchDBRTypes[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DBR_SCALAR_STRING
public static final ArchDBRTypes DBR_SCALAR_STRING
-
DBR_SCALAR_SHORT
public static final ArchDBRTypes DBR_SCALAR_SHORT
-
DBR_SCALAR_FLOAT
public static final ArchDBRTypes DBR_SCALAR_FLOAT
-
DBR_SCALAR_ENUM
public static final ArchDBRTypes DBR_SCALAR_ENUM
-
DBR_SCALAR_BYTE
public static final ArchDBRTypes DBR_SCALAR_BYTE
-
DBR_SCALAR_INT
public static final ArchDBRTypes DBR_SCALAR_INT
-
DBR_SCALAR_DOUBLE
public static final ArchDBRTypes DBR_SCALAR_DOUBLE
-
DBR_WAVEFORM_STRING
public static final ArchDBRTypes DBR_WAVEFORM_STRING
-
DBR_WAVEFORM_SHORT
public static final ArchDBRTypes DBR_WAVEFORM_SHORT
-
DBR_WAVEFORM_FLOAT
public static final ArchDBRTypes DBR_WAVEFORM_FLOAT
-
DBR_WAVEFORM_ENUM
public static final ArchDBRTypes DBR_WAVEFORM_ENUM
-
DBR_WAVEFORM_BYTE
public static final ArchDBRTypes DBR_WAVEFORM_BYTE
-
DBR_WAVEFORM_INT
public static final ArchDBRTypes DBR_WAVEFORM_INT
-
DBR_WAVEFORM_DOUBLE
public static final ArchDBRTypes DBR_WAVEFORM_DOUBLE
-
DBR_V4_GENERIC_BYTES
public static final ArchDBRTypes DBR_V4_GENERIC_BYTES
-
-
Method Detail
-
values
public static ArchDBRTypes[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ArchDBRTypes valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
getPrimitiveName
public String getPrimitiveName()
-
getIntegerMap
public int getIntegerMap()
Get a integer assigned to this type as defined in db_access.h- Returns:
- integerMap
-
isWaveForm
public boolean isWaveForm()
Is this thing a vector (or in EPICS terms, a waveform).- Returns:
- isWaveForm True if a waveform
-
valueOf
public static ArchDBRTypes valueOf(EPICSEvent.PayloadType payloadtype)
This is used to reverse map from the PB Payloadtype enum into a DBR type- Parameters:
payloadtype
- PayloadType- Returns:
- ArchDBRTypes
-
getPBPayloadType
public EPICSEvent.PayloadType getPBPayloadType()
-
isV3Type
public boolean isV3Type()
-
sampleValueFromString
public static SampleValue sampleValueFromString(ArchDBRTypes dbrType, String sampleValueStr)
-
-