public class PeriodInfo extends java.lang.Object implements Externalizable
| Constructor and Description |
|---|
PeriodInfo()
Empty constructor for externalization.
|
PeriodInfo(long startTime,
long endTime,
long recordTime,
java.lang.Number value,
int sampleCount)
Create period info.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getEndDate()
Returns the end of the represented period.
|
long |
getEndTime()
Returns the end of the represented period.
|
java.util.Date |
getRecordDate()
Returns the last moment when the value of the statistic was calculated for the represented period.
|
long |
getRecordTime()
Returns the last moment when the value of the statistic was calculated for the represented period.
|
int |
getSampleCount()
Returns the count of the samples for this period.
|
java.util.Date |
getStartDate()
Returns the start of the represented period.
|
long |
getStartTime()
Returns the start of the represented period.
|
java.lang.Number |
getValue()
Returns the value of the statistic for this period.
|
void |
readObject(java.io.InputStream is)
Deserialization method - for internal use.
|
java.lang.String |
toString() |
void |
writeObject(java.io.OutputStream os)
Serialization method - for internal use.
|
public PeriodInfo()
public PeriodInfo(long startTime,
long endTime,
long recordTime,
java.lang.Number value,
int sampleCount)
startTime - start time of the period (inclusive)endTime - end time of the period (exclusive)recordTime - record time (if available)value - value of the quantity for the period.sampleCount - used samples count for that period.public java.util.Date getStartDate()
public java.util.Date getEndDate()
public java.util.Date getRecordDate()
public java.lang.Number getValue()
public int getSampleCount()
public long getStartTime()
public long getEndTime()
public long getRecordTime()
public void writeObject(java.io.OutputStream os)
throws java.io.IOException
writeObject in interface Externalizablejava.io.IOExceptionpublic void readObject(java.io.InputStream is)
throws java.io.IOException
readObject in interface Externalizablejava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.