public abstract class TemporalSupport
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.util.logging.Logger |
logger |
protected java.util.TreeSet<? extends TemporalRecord> |
temporals |
Constructor and Description |
---|
TemporalSupport() |
Modifier and Type | Method and Description |
---|---|
void |
add(TemporalRecord tr) |
void |
clear() |
abstract <T extends TemporalRecord> |
createTemporalSet() |
<T extends TemporalRecord> |
getPosition(long time,
boolean interpolate) |
<T extends TemporalRecord> |
getTemporals() |
protected TemporalRecord |
interpolate(long time,
TemporalRecord previous,
TemporalRecord next)
Just returns the TemporalRecord that is closes to the current time.
|
abstract <T extends TemporalRecord> |
iterator() |
boolean |
remove(TemporalRecord tr)
Return true if the TemporalRecord was contained in the list.
|
<T extends TemporalRecord> |
setTemporals(java.util.TreeSet<T> temporals) |
protected void |
updateForTemporal(long time,
TemporalRecord temporal)
Override this method to use the TemporalRecord's contents to affect the
status of whatever you like.
|
public static java.util.logging.Logger logger
protected java.util.TreeSet<? extends TemporalRecord> temporals
public <T extends TemporalRecord> T getPosition(long time, boolean interpolate)
time
- in millisecondsinterpolate
- flag to signal that the returned Temporal object
should be interpolated (in whatever way needed) if the time falls
between Temporal objects.protected void updateForTemporal(long time, TemporalRecord temporal)
time
- milliseconds reflecting the current time.temporal
- record that reflects something that has happened.protected TemporalRecord interpolate(long time, TemporalRecord previous, TemporalRecord next)
time
- the current time.previous
- TemporalRecord that occurred before current time.next
- TemporalRecord that occurred after current time.public <T extends TemporalRecord> java.util.TreeSet<T> getTemporals()
public <T extends TemporalRecord> void setTemporals(java.util.TreeSet<T> temporals)
public abstract <T extends TemporalRecord> java.util.TreeSet<T> createTemporalSet()
public abstract <T extends TemporalRecord> java.util.Iterator<T> iterator()
public void add(TemporalRecord tr)
public boolean remove(TemporalRecord tr)
tr
- public void clear()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details