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
FieldsModifier and TypeFieldDescriptionstatic final StringConstantALARM_MAX="AlarmMax"static final StringConstantALARM_MIN="AlarmMin"static final StringConstantDATA_TYPE="DataType"static final StringConstantDESCRIPTION="Description"static final StringConstantDISPLAY_MAX="DisplayMax"static final StringConstantDISPLAY_MIN="DisplayMin"static final StringConstantFORMAT="Format"static final StringConstantMAXIMUM="Maximum"static final StringConstantMINIMUM="Minimum"static final StringConstantPRECISION="Precesion"static final StringConstantREAD_ACCESS="ReadAccess"static final StringConstantSEQUENCE_LENGTH="SequenceLength"static final StringConstantSTATE_VALUES="StateValues"static final StringConstantSTATES="States"static final StringConstantUNITS="Units"static final StringConstantWARN_MAX="WarnMax"static final StringConstantWARN_MIN="WarnMin"static final StringConstantWRITE_ACCESS="WriteAccess" -
Method Summary
Modifier and TypeMethodDescriptiondoublegetAlarmMax.doublegetAlarmMin.Returns the datatype of the channel.Returns the description of the channel.doublegetDisplayMax.doublegetDisplayMin.Return the display format for the numerical values.Returns the host name of the channel that this meta data belongs to.doublegetMaximum.doublegetMinimum.getName()Returns the name of the channel.intgetPrecision.Class<?> getRemoteDataType.intReturns 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.doublegetWarnMax.doublegetWarnMin.booleanReturns the access type.booleanisValid()Returnstrueif contains valid data.booleanReturns 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
irepresents enum numberi.- Returns:
- an array of
Stringobjects
-
getState
Convenience routine for getting the state.- Parameters:
index- a int- Returns:
- a
Stringobject
-
getStateValues
Object[] getStateValues()Obtains the enumeration values.The array element
irepresents enum numberi.- Returns:
- an array of
Objectobjects
-
getStateValue
Convenience routine for getting a state value.- Parameters:
index- a int- Returns:
- a
Objectobject
-
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()Returnstrueif contains valid data.- Returns:
trueif 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
Classobject
-