Class GPSParsing


  • public class GPSParsing
    extends adams.core.option.parsing.AbstractParsing
    For parsing GPS options.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    • Constructor Detail

      • GPSParsing

        public GPSParsing()
    • Method Detail

      • valueOf

        public static AbstractGPS valueOf​(Class cls,
                                          String str)
        Turns the string into an instance of the specified GPS class.
        Parameters:
        cls - the GPS class to instantiate
        str - the string to parse
        Returns:
        the instantiated GPS object
      • toString

        public static String toString​(adams.core.option.AbstractOption option,
                                      Object object)
        Returns the GPS coordinates as string.
        Parameters:
        option - the current option
        object - the GPS coordinates object to convert
        Returns:
        the generated string
      • valueOf

        public static Object valueOf​(adams.core.option.AbstractOption option,
                                     String str)
        Returns GPS coordinates generated from the string.
        Parameters:
        option - the current option
        str - the string to convert to GPS coordinates
        Returns:
        the generated GPS coordinates