public class SecsFormatValueObject extends ValueObject
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
cvsRev |
defaultTTL, locale, traceDefault, valueForTrueANYTYPE, ARRAYTYPE, BINARYTYPE, BOOLEANTYPE, BYTETYPE, CHARTYPE, DISPLAYVALUE, DOUBLETYPE, FLOATTYPE, GROUP_NAME, INITIALVALUE, INTTYPE, LOG_MESSAGE, LONGTYPE, NAME, OBJECTTYPE, ORDER, PASSWORD_DIGEST, PROPERTYTYPE, QUALITY_BAD, QUALITY_COMM_FAILURE, QUALITY_DEVICE_FAILURE, QUALITY_EGU_EXCEEDED, QUALITY_EVALUATION_EXPIRED, QUALITY_GOOD, QUALITY_IMPOSSIBLE, QUALITY_INITIAL, QUALITY_LAST_USABLE, QUALITY_OUT_OF_SERVICE, QUALITY_PROPERTYONLY, QUALITY_REMOTE_PROXY_INIT, QUALITY_SIMULATED, QUALITY_SOURCE_REMOVED, QUALITY_TRANSITIONAL, QUALITY_UNKNOWN, QUALITY_WARNING, QUALITY_WORST, QUALITY_WRITE_IN_PROGRESS, REQUESTCURRENTVALUE, REQUESTHISTORICAL, SHORTTYPE, STRINGTYPE, TRACE, TWODTYPE, UNSIGNEDBYTETYPE, UNSIGNEDINTTYPE, UNSIGNEDLONGTYPE, UNSIGNEDSHORTTYPE, USER_NAME| Constructor and Description |
|---|
SecsFormatValueObject()
The default constructor.
|
SecsFormatValueObject(SecsFormat newValue)
Creates a value object with the current value, a null
color and QUALITY_GOOD.
|
SecsFormatValueObject(SecsFormat newValue,
int newQuality)
Creates a value object with the current SecsFormat value,
the color associated with that value (newColor) and
QUALITY_GOOD.
|
SecsFormatValueObject(SecsFormat newValue,
int newQuality,
java.util.Date timeStamp)
Creates a value object with the current SecsFormat value,
the color associated with that value (newColor) and
QUALITY_GOOD.
|
SecsFormatValueObject(SecsFormat newValue,
int newQuality,
java.util.Date timeStamp,
java.awt.Color newColor)
Creates a value object with the current SecsFormat value,
the color associated with that value (newColor) and the quality.
|
| Modifier and Type | Method and Description |
|---|---|
ValueObjectInterface |
copy()
Returns a deep copy of the value object.
|
boolean |
equals(java.lang.Object theObject)
Compare the string values
|
byte[] |
getBinaryValue()
This will return the current value of the ValueObject as a byte array.
|
boolean |
getBoolValue()
Returns the current value represented as a boolean.
|
byte |
getByteValue()
Returns the current value represented as an byte.
|
char |
getCharValue()
Returns the current value represented as a char.
|
double |
getDoubleValue()
Returns the current value represented as a float.
|
float |
getFloatValue()
Returns the current value represented as an float.
|
int |
getIntValue()
Returns the current value represented as an integer.
|
long |
getLongValue()
Returns the current value represented as a long.
|
double |
getNumericValue()
Returns the double value, but will throw an exception if the object isn't convertable.
|
java.lang.Object |
getObjectValue()
Returns the current value represented as an Object.
|
SecsFormat |
getSecsFormat()
This will return the SecsFormat.
|
short |
getShortValue()
Returns the current value represented as a short.
|
java.lang.String |
getStringValue()
Returns the current value represented as an String.
|
acquireLatestPropertiesFrom, acquirePropertiesFrom, attributeNames, compareTo, convertToLowestPrecisionNumber, decrementTTL, escapeJSON, getAlwaysSend, getColor, getDate, getLocale, getLowestPrecisionValueObject, getProperties, getProperty, getQuality, getQualityString, getTime, getTimeMillis, getTTL, getType, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, getValueObject, hashCode, replaces, setAlwaysSend, setColor, setDate, setLocale, setProperty, setQuality, setTimeMillis, setTTL, setType, setValueForTrue, shouldTrace, toJSON, toJSON, toJSON, toStringpublic static final java.lang.String cvsRev
public SecsFormatValueObject()
public SecsFormatValueObject(SecsFormat newValue)
newValue - The value storedpublic SecsFormatValueObject(SecsFormat newValue, int newQuality)
newValue - the value storedtimeStamp - the Date assocaiated with the newValue.public SecsFormatValueObject(SecsFormat newValue, int newQuality, java.util.Date timeStamp)
newValue - the value storedtimeStamp - the Date assocaiated with the newValue.public SecsFormatValueObject(SecsFormat newValue, int newQuality, java.util.Date timeStamp, java.awt.Color newColor)
newValue - the value storednewColor - the color assocaiated with the newValue.newQuality - the quality associated with this valuepublic ValueObjectInterface copy()
public boolean equals(java.lang.Object theObject)
ValueObjectequals in interface ValueObjectInterfaceequals in class ValueObjectpublic byte[] getBinaryValue()
getBinaryValue in interface ValueObjectInterfacegetBinaryValue in class ValueObjectpublic boolean getBoolValue()
public byte getByteValue()
public char getCharValue()
public double getDoubleValue()
ValueObjectInterface.getNumericValue()public float getFloatValue()
public int getIntValue()
public long getLongValue()
public double getNumericValue()
throws java.lang.NumberFormatException
java.lang.NumberFormatExceptionValueObjectInterface.getDoubleValue()public java.lang.Object getObjectValue()
public SecsFormat getSecsFormat()
public short getShortValue()
public java.lang.String getStringValue()
Copyright © 1999-2025 ErgoTech Systems, Inc. All Rights Reserved.