public class WeightsStatus extends Document
Constructor and Description |
---|
WeightsStatus() |
Modifier and Type | Method and Description |
---|---|
void |
addToHistory(long validAfterMillis,
long freshUntilMillis,
double[] weights)
Adds all given weights history objects that don't overlap with
existing weights history objects.
|
void |
clearDirty() |
void |
compressHistory(long lastSeenMillis)
Compresses the history of weights objects by merging adjacent
intervals, depending on how far back in the past they lie.
|
java.util.SortedMap<long[],double[]> |
getHistory() |
boolean |
isDirty() |
void |
setFromDocumentString(java.lang.String documentString) |
void |
setHistory(java.util.SortedMap<long[],double[]> history) |
java.lang.String |
toDocumentString() |
getDocumentString, setDocumentString
public boolean isDirty()
public void clearDirty()
public void setHistory(java.util.SortedMap<long[],double[]> history)
public java.util.SortedMap<long[],double[]> getHistory()
public void setFromDocumentString(java.lang.String documentString)
setFromDocumentString
in class Document
public void addToHistory(long validAfterMillis, long freshUntilMillis, double[] weights)
public void compressHistory(long lastSeenMillis)
public java.lang.String toDocumentString()
toDocumentString
in class Document