|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gillius.realdb.model.data.DiscontinuityInterval
public class DiscontinuityInterval
DiscontinuityInterval
Constructor Summary | |
---|---|
DiscontinuityInterval(long startTime,
long endTime)
|
Method Summary | |
---|---|
java.lang.Object |
getAverageValue(int element)
Returns the average value for the element over this interval's time range. |
long |
getEndTime()
Returns the end time (exclusive) of this interval. |
java.lang.Number |
getIntegral(int element)
Returns the result of the definite integral between this interval's start and end times. |
java.lang.Object |
getMaximumValue(int element)
Returns the maximum value for the element over this interval's time range. |
java.lang.Object |
getMinimumValue(int element)
Returns the minimum value for the element over this interval's time range. |
int |
getNumElements()
Returns the total number of elements (fields) in this interval, not including the timestamp. |
long |
getStartTime()
Returns the starting time (inclusive) of this interval. |
long |
getTimespan()
Returns StreamInterval.getEndTime() - StreamInterval.getStartTime() . |
java.lang.Object |
getValueAt(long time,
int element)
Samples the value at the given time between startTime (inclusive) and endTime (exclusive). |
boolean |
isDiscontinuity()
Returns true if this interval represents a discontinuity in the data stream. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiscontinuityInterval(long startTime, long endTime)
Method Detail |
---|
public boolean isDiscontinuity()
StreamInterval
isDiscontinuity
in interface StreamInterval
public long getStartTime()
StreamInterval
getStartTime
in interface StreamInterval
getStartTime
in interface Range
public long getEndTime()
StreamInterval
getEndTime
in interface StreamInterval
getEndTime
in interface Range
public long getTimespan()
StreamInterval
StreamInterval.getEndTime()
- StreamInterval.getStartTime()
.
getTimespan
in interface StreamInterval
public int getNumElements()
StreamInterval
getNumElements
in interface StreamInterval
public java.lang.Object getValueAt(long time, int element)
StreamInterval
getValueAt
in interface StreamInterval
public java.lang.Object getAverageValue(int element)
StreamInterval
getAverageValue
in interface StreamInterval
public java.lang.Object getMaximumValue(int element)
StreamInterval
getMaximumValue
in interface StreamInterval
public java.lang.Object getMinimumValue(int element)
StreamInterval
getMinimumValue
in interface StreamInterval
public java.lang.Number getIntegral(int element)
StreamInterval
getIntegral
in interface StreamInterval
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |