public abstract class PositionReader extends Object
Any implementations are not required to be thread safe.
PositionReaderSimulator| Constructor and Description |
|---|
PositionReader() |
| Modifier and Type | Method and Description |
|---|---|
static PositionReader |
fixedPosition(Position position)
Returns a reader that returns the same position every time.
|
static PositionReader |
fixedPosition(PositionTime positionTime)
Returns a reader that returns the same position and time every time.
|
static PositionReader |
fromString(String pos) |
abstract PositionTime |
getCurrentPosition()
Returns the current position and a timestamp for when the position was read.
|
static PositionReader |
nativeReader()
Returns a position reader that will return the current position on a native devices.
|
public abstract PositionTime getCurrentPosition()
public static PositionReader fixedPosition(Position position)
position - the position to return every timepublic static PositionReader fixedPosition(PositionTime positionTime)
positionTime - the position time to return every timepublic static PositionReader nativeReader()
UnsupportedOperationException - if a native position reader is not availablepublic static PositionReader fromString(String pos)
Copyright © 2012–2015 Danish Maritime Authority. All rights reserved.