public class

ReferencePos

extends Object
java.lang.Object
   ↳ com.commsignia.v2x.client.model.ReferencePos

Class Overview

Represents a reference position.

Summary

Public Constructors
ReferencePos()
Create a new instance.
Public Methods
Double getAltitude(LengthUnit unit)
Returns the altitude of the reference position.
AltConfidence getAltitudeConfidence()
Returns the altitude confidence of the reference position.
Double getHeading(DegreeUnit unit)
Returns the heading value of the reference position.
Double getHeadingConfidence(DegreeUnit unit)
Returns the heading confidence of the reference position.
Long getLatitude()
Returns the latitude of the reference position.
Long getLongitude()
Returns the longitude of the geographical position.
Double getSemiMajorConfidence(LengthUnit unit)
Returns the semi major confidence of the reference position.
Double getSemiMinorConfidence(LengthUnit unit)
Returns the semi minor confidence of the reference position.
boolean hasAltitude()
Returns true if the altitude value has been set.
boolean hasHeading()
Returns true if the heading value is set.
boolean hasHeadingConfidence()
Returns true if the heading confidence is set.
boolean hasSemiMajorConfidence()
Returns true if the semi major confidence is set.
boolean hasSemiMinorConfidence()
Retruns true if the semi minor confidence is set.
void setAltitude(double altitudeValue, LengthUnit altitudeUnit, AltConfidence altitudeConfidence)
Sets the altitude and altitude confidencec of the reference position.
void setAltitude(double altitudeValue, LengthUnit altitudeUnit)
Sets the altitude of the reference position.
void setAltitudeConfidence(AltConfidence altitudeConfidence)
Sets the altitude confidence of the reference position.
void setHeading(double heading, DegreeUnit headingUnit)
Sets the heading value of the reference position.
void setHeadingConfidence(double headingConfidence, DegreeUnit headingConfidenceUnit)
Sets the heading confidence of the reference position.
void setLatitude(Long latitude)
Sets the latitude of the reference position.
void setLongitude(Long longitude)
Sets the longitude of the reference position.
void setSemiMajorConfidence(double semiMajorConfidence, LengthUnit semiMajorConfidenceUnit)
Sets the semi major confidence of the reference position.
void setSemiMinorConfidence(double semiMinorConfidence, LengthUnit semiMinorConfidenceUnit)
Sets the semi minor confidence of the reference position.
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ReferencePos ()

Create a new instance.

Public Methods

public Double getAltitude (LengthUnit unit)

Returns the altitude of the reference position.

Parameters
unit target unit
Returns
  • altitude in the specified unit or null if not defined

public AltConfidence getAltitudeConfidence ()

Returns the altitude confidence of the reference position.

Returns
  • altitude confidence

public Double getHeading (DegreeUnit unit)

Returns the heading value of the reference position.

Parameters
unit target unit
Returns
  • heading value in the specified unit

public Double getHeadingConfidence (DegreeUnit unit)

Returns the heading confidence of the reference position.

Parameters
unit target unit
Returns
  • heading confidence in the specified unit

public Long getLatitude ()

Returns the latitude of the reference position.

Returns
  • latitude in 0.1 microdegrees

public Long getLongitude ()

Returns the longitude of the geographical position.

Returns
  • longitude in 0.1 microdegrees

public Double getSemiMajorConfidence (LengthUnit unit)

Returns the semi major confidence of the reference position.

Parameters
unit target unit
Returns
  • semi major confidence of the reference position in the specified unit

public Double getSemiMinorConfidence (LengthUnit unit)

Returns the semi minor confidence of the reference position.

Parameters
unit target unit
Returns
  • semi minor confidence of the reference position in the specified unit

public boolean hasAltitude ()

Returns true if the altitude value has been set.

Returns
  • true if the altitude value has been set, false otherwise

public boolean hasHeading ()

Returns true if the heading value is set.

Returns
  • true if set, false otherwise

public boolean hasHeadingConfidence ()

Returns true if the heading confidence is set.

Returns
  • true if the heading confidence is set, false otherwise.

public boolean hasSemiMajorConfidence ()

Returns true if the semi major confidence is set.

Returns
  • true if the semi major confidence is set, false otherwise

public boolean hasSemiMinorConfidence ()

Retruns true if the semi minor confidence is set.

Returns
  • true if the semi minor confidence is set, false otherwise.

public void setAltitude (double altitudeValue, LengthUnit altitudeUnit, AltConfidence altitudeConfidence)

Sets the altitude and altitude confidencec of the reference position.

Parameters
altitudeValue altitude value
altitudeUnit altitude unit
altitudeConfidence altitude confidence

public void setAltitude (double altitudeValue, LengthUnit altitudeUnit)

Sets the altitude of the reference position. Sets confidence to unavailable.

Parameters
altitudeValue altitude value
altitudeUnit altitude unit

public void setAltitudeConfidence (AltConfidence altitudeConfidence)

Sets the altitude confidence of the reference position.

Parameters
altitudeConfidence altitude confidence

public void setHeading (double heading, DegreeUnit headingUnit)

Sets the heading value of the reference position.

Parameters
heading heading value
headingUnit heding unit

public void setHeadingConfidence (double headingConfidence, DegreeUnit headingConfidenceUnit)

Sets the heading confidence of the reference position.

Parameters
headingConfidence heading confidence of the reference position in 0.1 degrees

public void setLatitude (Long latitude)

Sets the latitude of the reference position.

Parameters
latitude in 0.1 microdegrees

public void setLongitude (Long longitude)

Sets the longitude of the reference position.

Parameters
longitude longitude in 0.1 microdegrees

public void setSemiMajorConfidence (double semiMajorConfidence, LengthUnit semiMajorConfidenceUnit)

Sets the semi major confidence of the reference position.

Parameters
semiMajorConfidence semi major confidence value
semiMajorConfidenceUnit semi major confidence unit

public void setSemiMinorConfidence (double semiMinorConfidence, LengthUnit semiMinorConfidenceUnit)

Sets the semi minor confidence of the reference position.

Parameters
semiMinorConfidence semi minor confidence value
semiMinorConfidenceUnit semi minor confidence unit

public String toString ()