edu.ntnu.cikmr.services.context.items
Class Location

java.lang.Object
  extended by AbstractContextItem
      extended by edu.ntnu.cikmr.services.context.items.Location

public class Location
extends AbstractContextItem


Constructor Summary
Location()
           
Location(java.lang.String urn)
           
 
Method Summary
 double getElevation()
           
 double getLatitude()
           
 double getLongitude()
           
 java.lang.String getUrn()
           
 void setElevation(double elevation)
           
 void setLatitude(double latitude)
           
 void setLongitude(double longitude)
           
 void setUrn(java.lang.String urn)
           
 java.lang.String toXML()
          Generate a XML-document of this location object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location()

Location

public Location(java.lang.String urn)
Method Detail

toXML

public java.lang.String toXML()
Generate a XML-document of this location object double (y-coordinate) double (x-coordiate) double (z-coordiante)

Returns:
a String of the XML-document

getElevation

public double getElevation()

getLatitude

public double getLatitude()

getLongitude

public double getLongitude()

getUrn

public java.lang.String getUrn()

setLongitude

public void setLongitude(double longitude)

setLatitude

public void setLatitude(double latitude)

setElevation

public void setElevation(double elevation)

setUrn

public void setUrn(java.lang.String urn)