SPFramework API

org.n52.ifgicopter.spf.xml
Class Location

java.lang.Object
  extended by org.n52.ifgicopter.spf.xml.Item
      extended by org.n52.ifgicopter.spf.xml.CompoundItem
          extended by org.n52.ifgicopter.spf.xml.Location

public class Location
extends CompoundItem

Class representing the Location property of a Input plugin. The framework uses this class to determine the field names of a geolocation.

Author:
Matthes Rieke

Field Summary
 
Fields inherited from class org.n52.ifgicopter.spf.xml.Item
dataType, definition, property, uom
 
Constructor Summary
Location(String prop)
           
 
Method Summary
 String getAltitudeName()
           
 int getDimension()
           
 String getFirstCoordinateName()
           
 String getReferenceFrame()
           
 String getSecondCoordinateName()
           
 double getX()
           
 double getY()
           
 double getZ()
           
 void setAltitudeName(String altitudeName)
           
 void setAxis(String string, double value)
          e.g., calling setAxis("x", 12.0) behaves exactly the same as setX(12.0).
 void setDimension(int i)
           
 void setFirstCoordinateName(String property)
           
 void setReferenceFrame(String referenceFrame)
           
 void setSecondCoordinateName(String secondCoordinateName)
           
 void setX(double value)
           
 void setY(double value)
           
 void setZ(double value)
           
 
Methods inherited from class org.n52.ifgicopter.spf.xml.CompoundItem
addCompoundedItem, getCompoundItems
 
Methods inherited from class org.n52.ifgicopter.spf.xml.Item
getDataType, getDefinition, getProperty, getUom, setDataType, setDefinition, setUom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Location

public Location(String prop)
Parameters:
prop - the property name for the compounding element
Method Detail

setFirstCoordinateName

public void setFirstCoordinateName(String property)
Parameters:
property - the first coordinate name

getSecondCoordinateName

public String getSecondCoordinateName()
Returns:
the property name for the second coordinate value.

setSecondCoordinateName

public void setSecondCoordinateName(String secondCoordinateName)
Parameters:
secondCoordinateName - the second coordinate name

getFirstCoordinateName

public String getFirstCoordinateName()
Returns:
the property name for the first coordinate value

getAltitudeName

public String getAltitudeName()
Returns:
the altitude name (optional)

setAltitudeName

public void setAltitudeName(String altitudeName)
Parameters:
altitudeName - the altitude name (optional)

setReferenceFrame

public void setReferenceFrame(String referenceFrame)
Parameters:
referenceFrame - the reference frame of this location

getReferenceFrame

public String getReferenceFrame()
Returns:
the reference frame of this location

setX

public void setX(double value)
Parameters:
value - static X axis value

setY

public void setY(double value)
Parameters:
value - static Y axis value

setZ

public void setZ(double value)
Parameters:
value - static Z axis value

getX

public double getX()
Returns:
the static X axis value

getY

public double getY()
Returns:
the static Y axis value

getZ

public double getZ()
Returns:
the static Z axis value

setDimension

public void setDimension(int i)
Parameters:
i - the dimension

getDimension

public int getDimension()
Returns:
the dimension

setAxis

public void setAxis(String string,
                    double value)
e.g., calling setAxis("x", 12.0) behaves exactly the same as setX(12.0).

Parameters:
string - the axis (x, y or z)
value - the value

SPFramework API

Copyright © 2004-2012 52north.org. All Rights Reserved.