org.gcube.data.spd.obisplugin.data
Class Coordinate

java.lang.Object
  extended by org.gcube.data.spd.obisplugin.data.Coordinate
All Implemented Interfaces:
Serializable

public class Coordinate
extends Object
implements Serializable

Author:
"Federico De Faveri defaveri@isti.cnr.it"
See Also:
Serialized Form

Field Summary
static String COORDINATE_SEPARATOR
           
protected  double latitude
           
protected  double longitude
           
 
Constructor Summary
Coordinate()
           
Coordinate(double latitude, double longitude)
           
 
Method Summary
 String asString()
           
 double getLatitude()
           
 double getLongitude()
           
static Coordinate parse(String value)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COORDINATE_SEPARATOR

public static final String COORDINATE_SEPARATOR
See Also:
Constant Field Values

latitude

protected double latitude

longitude

protected double longitude
Constructor Detail

Coordinate

public Coordinate()

Coordinate

public Coordinate(double latitude,
                  double longitude)
Parameters:
latitude -
longitude -
Method Detail

parse

public static Coordinate parse(String value)
                        throws Exception
Throws:
Exception

getLatitude

public double getLatitude()
Returns:
the latitude

setLatitude

public void setLatitude(double latitude)
Parameters:
latitude - the latitude to set

getLongitude

public double getLongitude()
Returns:
the longitude

setLongitude

public void setLongitude(double longitude)
Parameters:
longitude - the longitude to set

asString

public String asString()

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2013. All Rights Reserved.