T - der Typ der Ganglinie.public class Ganglinie<T> extends TreeMap<Long,T>
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Ganglinie()
Konstruiert eine Ganglinie ohne Stützstellen.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Markiert zusätzlich die Approximation als nicht mehr aktuell.
|
Ganglinie<T> |
clone()
Kopiert die Stützstellen und das Approximationsverfahren.
|
Approximation<T> |
getApproximation()
Gibt die Approximation der Ganglinie zurück.
|
com.bitctrl.util.Interval |
getIntervall()
Gibt das Intervall der Ganglinie zurück.
|
List<com.bitctrl.util.Interval> |
getIntervalle()
Bestimmt die Intervalle in denen die Ganglinie definiert ist.
|
Stuetzstelle<T> |
getStuetzstelle(long zeitstempel)
Gibt die Stützstelle zu einem bestimmten Zeitpunkt zurück.
|
List<Stuetzstelle<T>> |
getStuetzstellen()
Gibt ein sortiertes Feld der existierenden Stützstellen zurück.
|
List<Stuetzstelle<T>> |
getStuetzstellen(com.bitctrl.util.Interval intervall)
Gibt die existierenden Stützstellen im angegebenen Intervall zurück.
|
protected boolean |
isApproximationAktuell()
Gibt
false zurück, wenn die Approximation aktuallisiert werden
muss, weil sich die Ganglinie geändert hat. |
boolean |
isValid(com.bitctrl.util.Interval intervall)
Prüft ob ein Teilintervall der Ganglinie vollständig definiert ist, also
keine undefinierten Berreiche enthält.
|
boolean |
isValid(long zeitstempel)
Prüft ob ein Zeitstempel im definiterten Bereich der Ganglinie liegt.
|
T |
put(Long key,
T value)
Markiert zusätzlich die Approximation als nicht mehr aktuell.
|
void |
putAll(Map<? extends Long,? extends T> map)
Markiert zusätzlich die Approximation als nicht mehr aktuell.
|
T |
remove(Object key)
Markiert zusätzlich die Approximation als nicht mehr aktuell.
|
void |
setApproximation(Approximation<T> approximation)
Legt das Approximationsverfahren fest, mit dem die Werte zwischen den
Stützstellen bestimmt werden soll.
|
protected void |
setApproximationAktuell(boolean approximationAktuell)
Setzt das Flag, ob die Approximation noch gültig ist oder nicht.
|
boolean |
setStuetzstelle(Stuetzstelle<T> s)
Nimmt eine Stützstelle in die Ganglinie auf.
|
void |
setStuetzstellen(Collection<Stuetzstelle<T>> stuetzstellen)
Ersetzt die Stützstellen der Ganglinie.
|
String |
toString() |
ceilingEntry, ceilingKey, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, valuesequals, hashCode, isEmptyfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, removepublic void clear()
public Ganglinie<T> clone()
approximationAktuell wird auf false gesetzt.
public Approximation<T> getApproximation()
public com.bitctrl.util.Interval getIntervall()
null zurückgegeben.null.public List<com.bitctrl.util.Interval> getIntervalle()
public Stuetzstelle<T> getStuetzstelle(long zeitstempel)
zeitstempel - der Zeitstempel zu dem eine Stützstelle gesucht wird.public List<Stuetzstelle<T>> getStuetzstellen()
public List<Stuetzstelle<T>> getStuetzstellen(com.bitctrl.util.Interval intervall)
intervall - ein Intervall.public boolean isValid(com.bitctrl.util.Interval intervall)
intervall - das zu prüfende Intervall.true, wenn das Teilintervall der Ganglinie keine
undefinierten Bereiche enthält.getIntervalle()public boolean isValid(long zeitstempel)
zeitstempel - der zu prüfender Zeitstempel.true, wenn der Zeitstempel im definierten Bereich der
Ganglinie liegt.getIntervalle()public void putAll(Map<? extends Long,? extends T> map)
public void setApproximation(Approximation<T> approximation)
approximation - das Approximationsverfahren.public boolean setStuetzstelle(Stuetzstelle<T> s)
s - die neue Stuützstelle.true, wenn die Stützstelle neu angelegt wurde und
false, wenn eine vorhandene Stützstelle ersetzt wurde.public void setStuetzstellen(Collection<Stuetzstelle<T>> stuetzstellen)
stuetzstellen - die neuen Stützstellenpublic String toString()
toString in class AbstractMap<Long,T>Object.toString()protected boolean isApproximationAktuell()
false zurück, wenn die Approximation aktuallisiert werden
muss, weil sich die Ganglinie geändert hat.true, wenn Ganglinie und Approximation konform gehen und
false, wenn die Approximation aktualisiert werden muss.protected void setApproximationAktuell(boolean approximationAktuell)
approximationAktuell - false, wenn die Approximation aktualisiert werden
muss.Copyright © 2017 BitCtrl Systems GmbH. All rights reserved.