|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.panama.mp.PositionArea
PositionArea class. A PositionArea has a center point (longitude, latitude) that represents the mobile target's location. It can optionally have a number representing the accuracy of the positioning. Depending on the provider, it can mean the confidence of the positioning or the probability of the actual position falls in the given area. If the positioner locates a mobile device in a non-point area, you can get a JGeometry
or Shape
object representing the area.
Constructor Summary | |
PositionArea(double lon, double lat, double accuracy, oracle.spatial.geometry.JGeometry geom) Constructor. |
|
PositionArea(double lon, double lat, double accuracy, oracle.spatial.geometry.JGeometry geom, java.awt.Shape shape, double hUncertainty, double vUncertainty, double altitude, Velocity velocity) Constructor. |
Method Summary | |
static java.awt.Shape |
geom2Shape(oracle.spatial.geometry.JGeometry geom) Convinience function to convert a Oracle SDO Geometry object to a Shape object. |
double |
getAccuracy() Get the accuracy of the positioning. |
double |
getAltitude() Get the Altitude of the mobile object. |
double |
getCenterPointLatitude() Get the position point latitude. |
double |
getCenterPointLongitude() Get the position point longitude. |
oracle.spatial.geometry.JGeometry |
getGeometry() Get the geometry of the PositionArea. |
double |
getHUncertainty() Get the Horizontal uncertainty of the position. |
java.awt.Shape |
getShape() Get the shape of the PositionArea. |
Velocity |
getVelocity() Get the Velocity of the mobile object. |
double |
getVUncertainty() Get the Vertical uncertainty of the position. |
void |
setVelocity(Velocity vel) Set the Velocity of the mobile object. |
java.lang.String |
toString() toString. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public PositionArea(double lon, double lat, double accuracy, oracle.spatial.geometry.JGeometry geom)
lon
- Longitude of the mobile position.lat
- Latitude of the mobile position.accuracy
- An integer representing the accuracy of the positioning.geom
- An Oracle spatial geometry representing the position area of a mobile device. Use null if a positioning provider does not provide a geometry.public PositionArea(double lon, double lat, double accuracy, oracle.spatial.geometry.JGeometry geom, java.awt.Shape shape, double hUncertainty, double vUncertainty, double altitude, Velocity velocity)
lon
- Longitude of the mobile position.lat
- Latitude of the mobile position.accuracy
- An integer representing the accuracy of the positioning.geom
- An Oracle spatial geometry representing the position area of a mobile device. Use null if a positioning provider does not provide a geometry.hUncertainty
- Horizontal uncertainty of the position area.vUncertainty
- Vertical uncertainty of the position area.altitude
- Altitude of the position.velocity
- A Velocity
object representing the velocity of the the mobile target.Method Detail |
public static java.awt.Shape geom2Shape(oracle.spatial.geometry.JGeometry geom)
geom
- An Oracle SDO Geometry object.public double getAccuracy()
MPProvider
information in the PositionResult
to decide the exact meaning of this value.Double.NaN
is returned.public double getAltitude()
Double.NAN
is returned.public double getCenterPointLatitude()
public double getCenterPointLongitude()
public oracle.spatial.geometry.JGeometry getGeometry()
Geometry
.public double getHUncertainty()
Double.NAN
is returned.public java.awt.Shape getShape()
public Velocity getVelocity()
Veloctiy
A Velocity
object representing the velocity of the mobile object. If velocity is not available from the positioning server then null is returned.public double getVUncertainty()
Double.NAN
is returned.public void setVelocity(Velocity vel)
public java.lang.String toString()
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |