org.deegree.cs.refs.components
Class EllipsoidRef

java.lang.Object
  extended by org.deegree.commons.tom.Reference<T>
      extended by org.deegree.cs.refs.CRSResourceRef<IEllipsoid>
          extended by org.deegree.cs.refs.components.EllipsoidRef
All Implemented Interfaces:
Serializable, Object, TypedObjectNode, IEllipsoid, CRSResource

public class EllipsoidRef
extends CRSResourceRef<IEllipsoid>
implements Serializable, IEllipsoid

CRSesourceRef to a IEllipsoid

Version:
$Revision: $, $Date: $
Author:
Lyn Buesching, last edited by: $Author: lyn $
See Also:
Serialized Form

Constructor Summary
EllipsoidRef(ReferenceResolver resolver, String uri, String baseURL)
          Creates a reference to a IEllipsoid
 
Method Summary
 boolean equals(Object obj)
           
 double getEccentricity()
           
 double getFlattening()
           
 double getInverseFlattening()
           
 double getSemiMajorAxis()
           
 double getSemiMinorAxis()
           
 double getSquaredEccentricity()
           
 IUnit getUnits()
           
 boolean isSphere()
           
 void setUnits(IUnit units)
           
 
Methods inherited from class org.deegree.cs.refs.CRSResourceRef
addAreaOfUse, addName, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion
 
Methods inherited from class org.deegree.commons.tom.Reference
getId, getReferencedObject, getURI, isLocal, isResolved, resolve
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.deegree.cs.CRSResource
addAreaOfUse, addName, getAreaOfUse, getAreaOfUseBBox, getAreasOfUse, getCode, getCodeAndName, getCodes, getDescription, getDescriptions, getName, getNames, getOrignalCodeStrings, getVersion, getVersions, hasCode, hasId, hasIdOrName, setDefaultAreaOfUse, setDefaultDescription, setDefaultId, setDefaultName, setDefaultVersion
 
Methods inherited from interface org.deegree.commons.tom.Object
getId
 

Constructor Detail

EllipsoidRef

public EllipsoidRef(ReferenceResolver resolver,
                    String uri,
                    String baseURL)
Creates a reference to a IEllipsoid

Parameters:
resolver - used for resolving the reference, must not be null
uri - the object's uri, must not be null
baseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)
Method Detail

getEccentricity

public double getEccentricity()
Specified by:
getEccentricity in interface IEllipsoid
Returns:
the eccentricity.

getSquaredEccentricity

public double getSquaredEccentricity()
Specified by:
getSquaredEccentricity in interface IEllipsoid
Returns:
the squared eccentricity of the ellipsoid-

getFlattening

public double getFlattening()
Specified by:
getFlattening in interface IEllipsoid
Returns:
the flattening.

getInverseFlattening

public double getInverseFlattening()
Specified by:
getInverseFlattening in interface IEllipsoid
Returns:
the inverseFlattening.

getSemiMajorAxis

public double getSemiMajorAxis()
Specified by:
getSemiMajorAxis in interface IEllipsoid
Returns:
the semiMajorAxis.

getSemiMinorAxis

public double getSemiMinorAxis()
Specified by:
getSemiMinorAxis in interface IEllipsoid
Returns:
the semiMinorAxis.

getUnits

public IUnit getUnits()
Specified by:
getUnits in interface IEllipsoid
Returns:
the units.

setUnits

public void setUnits(IUnit units)
Specified by:
setUnits in interface IEllipsoid

isSphere

public boolean isSphere()
Specified by:
isSphere in interface IEllipsoid
Returns:
true if this ellipsoid has no eccentricity.

equals

public boolean equals(Object obj)
Overrides:
equals in class CRSResourceRef<IEllipsoid>


Copyright © 2011. All Rights Reserved.