T
- der Typ der Ganglinie.public class Ganglinie<T>
extends java.util.TreeMap<java.lang.Long,T>
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.
|
java.util.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.
|
java.util.List<Stuetzstelle<T>> |
getStuetzstellen()
Gibt ein sortiertes Feld der existierenden Stützstellen zurück.
|
java.util.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(java.lang.Long key,
T value)
Markiert zusätzlich die Approximation als nicht mehr aktuell.
|
void |
putAll(java.util.Map<? extends java.lang.Long,? extends T> map)
Markiert zusätzlich die Approximation als nicht mehr aktuell.
|
T |
remove(java.lang.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(java.util.Collection<Stuetzstelle<T>> stuetzstellen)
Ersetzt die Stützstellen der Ganglinie.
|
java.lang.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, values
public void clear()
public Ganglinie<T> clone()
approximationAktuell
wird auf false gesetzt.
clone
in class java.util.TreeMap<java.lang.Long,T>
public Approximation<T> getApproximation()
public com.bitctrl.util.Interval getIntervall()
null
zurückgegeben.null
.public java.util.List<com.bitctrl.util.Interval> getIntervalle()
public Stuetzstelle<T> getStuetzstelle(long zeitstempel)
zeitstempel
- der Zeitstempel zu dem eine Stützstelle gesucht wird.public java.util.List<Stuetzstelle<T>> getStuetzstellen()
public java.util.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 T put(java.lang.Long key, T value)
public void putAll(java.util.Map<? extends java.lang.Long,? extends T> map)
public T remove(java.lang.Object key)
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(java.util.Collection<Stuetzstelle<T>> stuetzstellen)
stuetzstellen
- die neuen Stützstellenpublic java.lang.String toString()
toString
in class java.util.AbstractMap<java.lang.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.