cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes
Class Longitude

Package class diagram package Longitude
java.lang.Object
  extended by cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.GeographicCoordinates
      extended by cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.Longitude

public class Longitude
extends GeographicCoordinates

�int’, ’float’, ’char’ provide the longitude degree, minute (as a decimal), and cardinal description (i.e. �E’ or �W’), respectively. There are only two possible values for the �char’ parameter: �E’ for East and �W’ for West. This class is used to store data from GPS sensor.

Author:
vejmanm

Constructor Summary
Longitude()
           
Longitude(int degree, double minute, char cardinal)
           
 
Method Summary
static Longitude DegreeToDMC(double degree)
          Converter method for converting degrees to degree minutes and to determine cardinal character.
static double DMCToDegree(Longitude longitude)
          Converter method for converting the degree, minute to degrees respectively to cardinal character.
static double DMCToMinutes(Longitude longitude)
          Converter method for converting the degree, minute to minutes respectively to cardinal character.
static Longitude MinutesTODMC(double minutes)
          Converter method for converting minutes to degree minutes and to determine cardinal character.
 
Methods inherited from class cz.cuni.amis.pogamut.usar2004.communication.messages.datatypes.GeographicCoordinates
getCardinal, getDegree, getMinute, set, set
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Longitude

public Longitude()

Longitude

public Longitude(int degree,
                 double minute,
                 char cardinal)
Method Detail

DMCToMinutes

public static double DMCToMinutes(Longitude longitude)
Converter method for converting the degree, minute to minutes respectively to cardinal character.

Parameters:
longitude - Longitude to convert
Returns:
Returns minute representation of input longitude.

MinutesTODMC

public static Longitude MinutesTODMC(double minutes)
Converter method for converting minutes to degree minutes and to determine cardinal character.

Parameters:
minutes - Minute representation of Longitude
Returns:
Returns longitude representation of input minutes.

DMCToDegree

public static double DMCToDegree(Longitude longitude)
Converter method for converting the degree, minute to degrees respectively to cardinal character.

Parameters:
longitude - Longitude to convert
Returns:
Returns degree representation of input longitude.

DegreeToDMC

public static Longitude DegreeToDMC(double degree)
Converter method for converting degrees to degree minutes and to determine cardinal character.

Parameters:
degree - Degree representation of Longitude
Returns:
Returns longitude representation of input degrees.


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.