|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.geo.PointOfInterest
public abstract class PointOfInterest
This class represents a point or area of interest. Its subclasses define specific interest zones, as either points, lines or areas.
Nested Class Summary | |
---|---|
static class |
PointOfInterest.BAND
Class BAND represents an interesting band of latitudes. |
static class |
PointOfInterest.LAT
Class LAT represents an interesting line of latitude. |
static class |
PointOfInterest.LON
Class LON represents an interesting meridian, or a segment of a meridian. |
static class |
PointOfInterest.POS
Class POS represents an interesting position. |
Field Summary | |
---|---|
static PointOfInterest[] |
GLOBAL_AREAS
List of regions of the world. |
static PointOfInterest[] |
GLOBAL_POIS
List of general global points of interest. |
Constructor Summary | |
---|---|
PointOfInterest(java.lang.String n)
Create a Position from a latitude and longitude. |
Method Summary | |
---|---|
static java.lang.String |
describePoint(Position pos)
Describe the status of the given position relative to global points of interest. |
static java.lang.String |
describePosition(Position pos)
Describe the status of the given position relative to global points of interest. |
static java.lang.String |
describeRegion(Position pos)
Describe the status of the given position in terms of any region of interest it lies within. |
abstract Distance |
distance(Position pos)
Calculate the distance from the given position to this point of interest. |
java.lang.String |
getName()
Get the name of this point of interest. |
java.lang.String |
status(Position pos)
Describe the status of the given position relative to this point of interest. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final PointOfInterest[] GLOBAL_POIS
public static final PointOfInterest[] GLOBAL_AREAS
Constructor Detail |
---|
public PointOfInterest(java.lang.String n)
n
- Name of this point / area..Method Detail |
---|
public final java.lang.String getName()
public abstract Distance distance(Position pos)
pos
- The position to calculate from.
public java.lang.String status(Position pos)
pos
- The position to describe.
public static final java.lang.String describePosition(Position pos)
pos
- The position to describe.
public static final java.lang.String describeRegion(Position pos)
pos
- The position to describe.
public static final java.lang.String describePoint(Position pos)
pos
- The position to describe.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |