public class CompiledPath extends ArrayList<Double>
modCount| Constructor and Description |
|---|
CompiledPath(long start,
long stepLength)
Constructs an empty path list with give start time and step length.
|
| Modifier and Type | Method and Description |
|---|---|
CompiledPath |
clone()
Creates a deep copy of the CompiledPath.
|
static CompiledPath |
combine(List<CompiledPath> paths)
Returns a composite of the paths in the given list.
|
static CompiledPath |
compilePath(long start,
long end,
List<Point2D> interpolated,
long stepLength)
Creates a CompiledPath from the interpolated points.
|
double |
estimatePosition(long time)
Returns the estimated path position for the given time.
|
Long |
getEndTime()
Returns the time (from 0) the last position is expected to be consumed.
|
Long |
getStartTime()
Returns the start offset time.
|
double |
getStep(long time)
Returns the position for a given time.
|
Long |
getStepLength()
Returns the time between each position in millisecond.
|
boolean |
matches(long start,
long end,
long step)
Checks if the given values correspond to this CompiledPath.
|
CompiledPath |
setTimes(long start,
long end)
Returns a copy of this path, using a new time window.
|
add, add, addAll, addAll, clear, contains, ensureCapacity, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeRange, retainAll, set, size, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAll, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodepublic CompiledPath(long start,
long stepLength)
start - offset for each positionstepLength - milliseconds between positionspublic Long getEndTime()
public Long getStartTime()
public Long getStepLength()
public double getStep(long time)
time - the time of the position to be retrieved.public double estimatePosition(long time)
time - time for which to estimatepublic boolean matches(long start,
long end,
long step)
start - offset for each positionend - bound on the time of the last positionstep - expected position spacingpublic CompiledPath clone()
public static CompiledPath combine(List<CompiledPath> paths)
paths - list of paths to addpublic CompiledPath setTimes(long start, long end)
start - the new start timeend - the new stop timepublic static CompiledPath compilePath(long start, long end, List<Point2D> interpolated, long stepLength)
start - path start timeend - path end timeinterpolated - points to compilestepLength - milliseconds between positions multiples of stepLengthCopyright © 2011-2014. All Rights Reserved.