Package adams.core.option.parsing
Class GPSParsing
- java.lang.Object
-
- adams.core.option.parsing.AbstractParsing
-
- adams.core.option.parsing.GPSParsing
-
public class GPSParsing extends adams.core.option.parsing.AbstractParsing
For parsing GPS options.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Constructor Summary
Constructors Constructor Description GPSParsing()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
toString(adams.core.option.AbstractOption option, Object object)
Returns the GPS coordinates as string.static Object
valueOf(adams.core.option.AbstractOption option, String str)
Returns GPS coordinates generated from the string.static AbstractGPS
valueOf(Class cls, String str)
Turns the string into an instance of the specified GPS class.
-
-
-
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 instantiatestr
- 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 optionobject
- the GPS coordinates object to convert- Returns:
- the generated string
-
-