| Package | Description |
|---|---|
| net.maritimecloud.message |
Provides classes for serializing and deserializing messages.
|
| net.maritimecloud.net |
Provides commonly used classes for communicating with remote actors on the maritime cloud.
|
| net.maritimecloud.util.geometry |
Contains geometry based utility classes.
|
| Modifier and Type | Field and Description |
|---|---|
static ValueSerializer<Position> |
ValueSerializer.POSITION
A value serializer that can serialize instances of
Position. |
| Modifier and Type | Method and Description |
|---|---|
Position |
ValueReader.readPosition() |
Position |
MessageReader.readPosition(int tag,
String name) |
Position |
MessageReader.readPosition(int tag,
String name,
Position defaultValue) |
| Modifier and Type | Method and Description |
|---|---|
Position |
MessageReader.readPosition(int tag,
String name,
Position defaultValue) |
void |
MessageWriter.writePosition(int tag,
String name,
Position value) |
void |
ValueWriter.writePosition(Position value) |
| Modifier and Type | Method and Description |
|---|---|
Position |
DispatchedMessage.getPosition()
Returns any position that was attached to the message being sent.
|
Position |
MessageHeader.getSenderPosition()
If the sending party has a position, returns said position.
|
| Modifier and Type | Class and Description |
|---|---|
class |
PositionTime
A position couple with a timestamp.
|
| Modifier and Type | Field and Description |
|---|---|
static MessageSerializer<Position> |
Position.SERIALIZER |
| Modifier and Type | Method and Description |
|---|---|
static Position |
Position.create(double latitude,
double longitude)
Creates a new position from the specified latitude and longitude.
|
static Position |
Position.fromBinary(Binary b)
Returns a position from a 64 bit byte array encoded as decimal degress with 7 decimal places.
|
static Position |
Position.fromPackedLong(long l) |
Position |
Rectangle.getBottomLeft() |
Position |
Rectangle.getBottomRight() |
Position |
Circle.getCenter()
Return the center of the circle.
|
Position |
Line.getEnd()
Returns the end position of the line.
|
Position |
Ellipse.getGeodeticReference() |
Position |
Area.getRandomPosition()
Returns a random position within the area.
|
Position |
Rectangle.getRandomPosition(Random r)
Returns a random position within the area using a specified random source.
|
Position |
Polygon.getRandomPosition(Random random)
Returns a random position within the area using a specified random source.
|
Position |
Ellipse.getRandomPosition(Random random)
Returns a random position within the area using a specified random source.
|
Position |
Circle.getRandomPosition(Random r)
Returns a random position within the area using a specified random source.
|
abstract Position |
Area.getRandomPosition(Random random)
Returns a random position within the area using a specified random source.
|
Position |
Line.getStart()
Returns the start position of the line.
|
Position |
Rectangle.getTopLeft() |
Position |
Rectangle.getTopRight() |
Position |
Position.immutable()
Returns an immutable copy of this message.
|
static Position |
Position.random()
Returns a random valid position.
|
static Position |
Position.random(Random rnd)
Returns a random valid position.
|
Position |
Position.withLatitude(double latitude)
Returns a new position with the same longitude as this position but with the specified latitude.
|
Position |
Position.withLongitude(double longitude)
Returns a new position with the same latitude as this position but with the specified longitude.
|
| Modifier and Type | Method and Description |
|---|---|
List<Position> |
Polygon.getPoints() |
Iterator<Position> |
Polygon.iterator() |
List<Position> |
Ellipse.samplePerimeter(int n)
Sample the perimeter along the ellipse in 'n' points, and return a list of positions all located and evenly
distributed on the perimeter.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Rectangle.contains(Position position) |
boolean |
Polygon.contains(Position position) |
boolean |
Ellipse.contains(Position position) |
boolean |
Circle.contains(Position position) |
abstract boolean |
Area.contains(Position position) |
static Polygon |
Polygon.create(Position... positions) |
static Circle |
Circle.create(Position center,
double radius)
Creates a new circle with the specified center and radius.
|
static PositionTime |
PositionTime.create(Position position,
long time) |
static Rectangle |
Rectangle.create(Position topLeft,
Position bottomRight) |
boolean |
PositionTime.equals(Position other) |
boolean |
Position.equals(Position other) |
static PositionReader |
PositionReader.fixedPosition(Position position)
Returns a reader that returns the same position every time.
|
PositionReader |
PositionReaderSimulator.forRoute(Position... positions)
Creates a new simulated reader with the specified route.
|
double |
Position.geodesicDistanceTo(Position other)
Returns the great circle distance to the specified position.
|
double |
Circle.geodesicDistanceTo(Position other) |
double |
Position.geodesicFinalBearingTo(Position other)
Calculate final bearing for great circle route to location using Thaddeus Vincenty's inverse formula.
|
double |
Position.geodesicInitialBearingTo(Position other)
Calculate initial bearing for great circle route to location using Thaddeus Vincenty's inverse formula.
|
boolean |
PositionTime.positionEquals(Position other) |
double |
Position.rhumbLineBearingTo(Position position)
Calculates the rhumb line bearing to the specified position
|
double |
Position.rhumbLineDistanceTo(Position other) |
double |
Circle.rhumbLineDistanceTo(Position position) |
Circle |
Circle.withCenter(Position center)
Returns a new circle with the same radius as this circle but with the new position as the center
|
| Constructor and Description |
|---|
Ellipse(Position geodeticReference,
double alpha,
double beta,
double thetaDeg)
Create an ellipse with center in the geodetic reference point.
|
Ellipse(Position geodeticReference,
double dx,
double dy,
double alpha,
double beta,
double thetaDeg)
Create an ellipse offset dx, dy meters from the geodetic reference point.
|
Polygon(Position... positions) |
Copyright © 2012–2015 Danish Maritime Authority. All rights reserved.