Package com.luciad.format.arinc.util
Class TLcdARINCLonLatParser
java.lang.Object
com.luciad.format.arinc.util.TLcdARINCLonLatParser
This class provides methods to retrieve a longitude (resp. latitude) from a
given array of characters.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanhasDoubleLat(char[] aRecord, int aBegin) static booleanDeprecated.This method has been deprecated.static doublereadDoubleLat(char[] aRecord, int aBegin) Reads a latitude (9 positions) in an ARINC record from the specified position and returns it as adouble.static doublereadDoubleLon(char[] aRecord, int aBegin) Reads a longitude (10 positions) in an ARINC record from the specified position and returns it as adouble.static floatreadFloatLat(char[] aRecord, int aBegin) Reads a latitude (9 positions) in an ARINC record from the specified position and returns it as afloat.static floatreadFloatLon(char[] aRecord, int aBegin) Reads a longitude (10 positions) in an ARINC record from the specified position and returns it as afloat.static voidsetTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated.
-
Constructor Details
-
TLcdARINCLonLatParser
public TLcdARINCLonLatParser()Constructs a newTLcdARINCLonLatParser.
-
-
Method Details
-
setTraceOn
public static void setTraceOn(boolean aClassTraceOn) Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Enables tracing for all instances of this class. If the argument istruethen all log messages are recorded, otherwise only the informative, warning and error messages are recorded.- Parameters:
aClassTraceOn- if true then all log messages are recorded, otherwise only the informative, warning and error messages are recorded.
-
isTraceOn
public static boolean isTraceOn()Deprecated.This method has been deprecated. It is recommended to use the standard Java logging framework directly.Returnstrueif tracing is enabled for this class.- Returns:
- true if tracing is enabled for this class, false otherwise.
-
readFloatLon
public static float readFloatLon(char[] aRecord, int aBegin) Reads a longitude (10 positions) in an ARINC record from the specified position and returns it as afloat.- Parameters:
aRecord- The record to read from.aBegin- The position in the record to start reading from. This corresponds to the index in the record character array.- Returns:
- The
floatlongitude read from the record.
-
readFloatLat
public static float readFloatLat(char[] aRecord, int aBegin) Reads a latitude (9 positions) in an ARINC record from the specified position and returns it as afloat.- Parameters:
aRecord- The record to read from.aBegin- The position in the record to start reading from. This corresponds to the index in the record character array.- Returns:
- The
floatlatitude read from the record.
-
readDoubleLon
public static double readDoubleLon(char[] aRecord, int aBegin) Reads a longitude (10 positions) in an ARINC record from the specified position and returns it as adouble.- Parameters:
aRecord- The record to read from.aBegin- The position in the record to start reading from. This corresponds to the index in the record character array.- Returns:
- The
doublelongitude read from the record.
-
hasDoubleLat
public static boolean hasDoubleLat(char[] aRecord, int aBegin) -
readDoubleLat
public static double readDoubleLat(char[] aRecord, int aBegin) Reads a latitude (9 positions) in an ARINC record from the specified position and returns it as adouble.- Parameters:
aRecord- The record to read from.aBegin- The position in the record to start reading from. This corresponds to the index in the record character array.- Returns:
- The
doublelatitude read from the record.
-