Enum JCA2ArchDBRType

    • Enum Constant Detail

      • JCAMAPPING_SCALAR_STRING

        public static final JCA2ArchDBRType JCAMAPPING_SCALAR_STRING
      • JCAMAPPING_SCALAR_SHORT

        public static final JCA2ArchDBRType JCAMAPPING_SCALAR_SHORT
      • JCAMAPPING_SCALAR_FLOAT

        public static final JCA2ArchDBRType JCAMAPPING_SCALAR_FLOAT
      • JCAMAPPING_SCALAR_ENUM

        public static final JCA2ArchDBRType JCAMAPPING_SCALAR_ENUM
      • JCAMAPPING_SCALAR_BYTE

        public static final JCA2ArchDBRType JCAMAPPING_SCALAR_BYTE
      • JCAMAPPING_SCALAR_INT

        public static final JCA2ArchDBRType JCAMAPPING_SCALAR_INT
      • JCAMAPPING_SCALAR_DOUBLE

        public static final JCA2ArchDBRType JCAMAPPING_SCALAR_DOUBLE
      • JCAMAPPING_WAVEFORM_STRING

        public static final JCA2ArchDBRType JCAMAPPING_WAVEFORM_STRING
      • JCAMAPPING_WAVEFORM_SHORT

        public static final JCA2ArchDBRType JCAMAPPING_WAVEFORM_SHORT
      • JCAMAPPING_WAVEFORM_FLOAT

        public static final JCA2ArchDBRType JCAMAPPING_WAVEFORM_FLOAT
      • JCAMAPPING_WAVEFORM_ENUM

        public static final JCA2ArchDBRType JCAMAPPING_WAVEFORM_ENUM
      • JCAMAPPING_WAVEFORM_BYTE

        public static final JCA2ArchDBRType JCAMAPPING_WAVEFORM_BYTE
      • JCAMAPPING_WAVEFORM_INT

        public static final JCA2ArchDBRType JCAMAPPING_WAVEFORM_INT
      • JCAMAPPING_WAVEFORM_DOUBLE

        public static final JCA2ArchDBRType JCAMAPPING_WAVEFORM_DOUBLE
    • Method Detail

      • values

        public static JCA2ArchDBRType[] 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 JCA2ArchDBRType 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 name
        NullPointerException - if the argument is null
      • valueOf

        public static ArchDBRTypes valueOf​(gov.aps.jca.dbr.DBR d)
        Get the equivalent archiver data type given a JCA DBR
        Parameters:
        d - JCA DBR
        Returns:
        ArchDBRTypes  
      • resolveFromCAInfo

        public static ArchDBRTypes resolveFromCAInfo​(gov.aps.jca.dbr.DBRType dt,
                                                     int elementCount)
        Get the equivalent archiver data type given a JCA DBRType. Note that in this case, we are not passing in DBR_TIME_DOUBLE etc; we are passing in DBR_DOUBLE and so on. So we have an extra step to map from DBR_DOUBLE to DBR_TIME_DOUBLE and then from DBR_TIME_DOUBLE to the appropriate ArchDBRType
        Parameters:
        dt - The JCA DBRType
        elementCount -  
        Returns:
        ArchDBRTypes  
      • getJCATypeforArchDBRType

        public static gov.aps.jca.dbr.DBRType getJCATypeforArchDBRType​(ArchDBRTypes archDBRTypes)
        Get the JCA type appropriate for this arch dbr type.
        Parameters:
        archDBRTypes - ArchDBRTypes
        Returns:
        DBRType The JCA type