Package org.scictrl.csshell
Interface MetaData
- All Known Implementing Classes:
MetaDataImpl
public interface MetaData
Base interface for a sample's meta data.
- Author:
- igor@scictrl.com
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
ConstantALARM_MAX="AlarmMax"
static final String
ConstantALARM_MIN="AlarmMin"
static final String
ConstantDATA_TYPE="DataType"
static final String
ConstantDESCRIPTION="Description"
static final String
ConstantDISPLAY_MAX="DisplayMax"
static final String
ConstantDISPLAY_MIN="DisplayMin"
static final String
ConstantFORMAT="Format"
static final String
ConstantMAXIMUM="Maximum"
static final String
ConstantMINIMUM="Minimum"
static final String
ConstantPRECISION="Precesion"
static final String
ConstantREAD_ACCESS="ReadAccess"
static final String
ConstantSEQUENCE_LENGTH="SequenceLength"
static final String
ConstantSTATE_VALUES="StateValues"
static final String
ConstantSTATES="States"
static final String
ConstantUNITS="Units"
static final String
ConstantWARN_MAX="WarnMax"
static final String
ConstantWARN_MIN="WarnMin"
static final String
ConstantWRITE_ACCESS="WriteAccess"
-
Method Summary
Modifier and TypeMethodDescriptiondouble
getAlarmMax.double
getAlarmMin.Returns the datatype of the channel.Returns the description of the channel.double
getDisplayMax.double
getDisplayMin.Return the display format for the numerical values.Returns the host name of the channel that this meta data belongs to.double
getMaximum.double
getMinimum.getName()
Returns the name of the channel.int
getPrecision.Class
<?> getRemoteDataType.int
Returns the sequence lengthgetState
(int index) Convenience routine for getting the state.String[]
Obtains the states.getStateValue
(int index) Convenience routine for getting a state value.Object[]
Obtains the enumeration values.getUnits()
getUnits.double
getWarnMax.double
getWarnMin.boolean
Returns the access type.boolean
isValid()
Returnstrue
if contains valid data.boolean
Returns the access type.
-
Field Details
-
ALARM_MAX
ConstantALARM_MAX="AlarmMax"
- See Also:
-
ALARM_MIN
ConstantALARM_MIN="AlarmMin"
- See Also:
-
DATA_TYPE
ConstantDATA_TYPE="DataType"
- See Also:
-
DESCRIPTION
ConstantDESCRIPTION="Description"
- See Also:
-
DISPLAY_MAX
ConstantDISPLAY_MAX="DisplayMax"
- See Also:
-
DISPLAY_MIN
ConstantDISPLAY_MIN="DisplayMin"
- See Also:
-
FORMAT
ConstantFORMAT="Format"
- See Also:
-
MAXIMUM
ConstantMAXIMUM="Maximum"
- See Also:
-
MINIMUM
ConstantMINIMUM="Minimum"
- See Also:
-
PRECISION
ConstantPRECISION="Precesion"
- See Also:
-
SEQUENCE_LENGTH
ConstantSEQUENCE_LENGTH="SequenceLength"
- See Also:
-
STATES
ConstantSTATES="States"
- See Also:
-
STATE_VALUES
ConstantSTATE_VALUES="StateValues"
- See Also:
-
UNITS
ConstantUNITS="Units"
- See Also:
-
WARN_MAX
ConstantWARN_MAX="WarnMax"
- See Also:
-
WARN_MIN
ConstantWARN_MIN="WarnMin"
- See Also:
-
READ_ACCESS
ConstantREAD_ACCESS="ReadAccess"
- See Also:
-
WRITE_ACCESS
ConstantWRITE_ACCESS="WriteAccess"
- See Also:
-
-
Method Details
-
getMinimum
double getMinimum()getMinimum.
- Returns:
- Suggested lower control limit
-
getMaximum
double getMaximum()getMaximum.
- Returns:
- Suggested upper control limit
-
getDisplayMin
double getDisplayMin()getDisplayMin.
- Returns:
- Suggested lower display limit
-
getDisplayMax
double getDisplayMax()getDisplayMax.
- Returns:
- Suggested upper display limit
-
getWarnMin
double getWarnMin()getWarnMin.
- Returns:
- Low warning limit
-
getWarnMax
double getWarnMax()getWarnMax.
- Returns:
- High warning limit
-
getAlarmMin
double getAlarmMin()getAlarmMin.
- Returns:
- Low alarm limit
-
getAlarmMax
double getAlarmMax()getAlarmMax.
- Returns:
- High alarm limit
-
getPrecision
int getPrecision()getPrecision.
- Returns:
- Suggested display precision (fractional digits)
-
getUnits
String getUnits()getUnits.
- Returns:
- The engineering units string
-
getStates
String[] getStates()Obtains the states.The array element
i
represents enum numberi
.- Returns:
- an array of
String
objects
-
getState
Convenience routine for getting the state.- Parameters:
index
- a int- Returns:
- a
String
object
-
getStateValues
Object[] getStateValues()Obtains the enumeration values.The array element
i
represents enum numberi
.- Returns:
- an array of
Object
objects
-
getStateValue
Convenience routine for getting a state value.- Parameters:
index
- a int- Returns:
- a
Object
object
-
getFormat
String getFormat()Return the display format for the numerical values.- Returns:
- the display format
-
isReadAccess
boolean isReadAccess()Returns the access type.- Returns:
- the access type
-
isWriteAccess
boolean isWriteAccess()Returns the access type.- Returns:
- the access type
-
isValid
boolean isValid()Returnstrue
if contains valid data.- Returns:
true
if contained data is valid
-
getHostname
String getHostname()Returns the host name of the channel that this meta data belongs to.- Returns:
- the host name
-
getDataType
DataType getDataType()Returns the datatype of the channel. This method returns one of the string inDataType
.- Returns:
- the datatype
-
getDescription
String getDescription()Returns the description of the channel.- Returns:
- the description
-
getName
String getName()Returns the name of the channel.- Returns:
- the name of the channel
-
getSequenceLength
int getSequenceLength()Returns the sequence length- Returns:
- the sequence length
-
getRemoteDataType
Class<?> getRemoteDataType()getRemoteDataType.
- Returns:
- a
Class
object
-