public class TimeDoubleDataPoint extends Object implements DmcMappedAttributeIF, Serializable
| Constructor and Description |
|---|
TimeDoubleDataPoint() |
TimeDoubleDataPoint(Date d,
int v)
Constructs a new time data point.
|
TimeDoubleDataPoint(String v)
Constructs a new integer data point.
|
TimeDoubleDataPoint(TimeDoubleDataPoint original) |
| Modifier and Type | Method and Description |
|---|---|
void |
deserializeIt(DmcInputStreamIF dis) |
boolean |
equals(Object v) |
Date |
getDate() |
Object |
getKey()
Returns the key associated with this attribute value.
|
String |
getKeyAsString()
Returns the key value represented as a string.
|
double |
getValue() |
void |
serializeIt(DmcOutputStreamIF dos) |
void |
set(String val)
Sets the value of the data point based on a date and a value in the form: YYYYMMDD:HHMMSS VALUE
|
String |
toString() |
boolean |
valuesAreEqual(DmcMappedAttributeIF obj)
This method is used by the Modifier mechanism to determine whether or not a
change has occurred as a result of applying the modifier.
|
public TimeDoubleDataPoint()
public TimeDoubleDataPoint(TimeDoubleDataPoint original)
public TimeDoubleDataPoint(Date d, int v)
d - The date.v - The value.DmcValueExceptionpublic TimeDoubleDataPoint(String v) throws DmcValueException
v - The string representation of the value.DmcValueExceptionpublic void serializeIt(DmcOutputStreamIF dos) throws Exception
Exceptionpublic void deserializeIt(DmcInputStreamIF dis) throws Exception
Exceptionpublic void set(String val) throws DmcValueException
val - The data point.DmcValueExceptionpublic Date getDate()
public double getValue()
public Object getKey()
DmcMappedAttributeIFgetKey in interface DmcMappedAttributeIFpublic String getKeyAsString()
DmcMappedAttributeIFgetKeyAsString in interface DmcMappedAttributeIFpublic boolean valuesAreEqual(DmcMappedAttributeIF obj)
DmcMappedAttributeIFvaluesAreEqual in interface DmcMappedAttributeIFobj - Another mapped attribute.Copyright © 2023. All rights reserved.