|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bbn.openmap.geo.BoundaryCrossing
public class BoundaryCrossing
The BoundaryCrossing class represents a location where a path crosses a region. Since a location can represent a region being left and a region being entered, you can ask it for the out GeoRegion and the in GeoRegion. Both won't be null at the same time, but either may be.
Nested Class Summary | |
---|---|
static class |
BoundaryCrossing.Collector
A Collector is an object that organizes boundary crossings, as discovered by CrossingIntersection class. |
static class |
BoundaryCrossing.CrossingIntersection
A Intersection class that knows how to call BoundaryCrossing.Collector to keep track of the path's relationship with the regions. |
Field Summary | |
---|---|
protected Geo |
geo
The Geo location of the crossing. |
protected GeoRegion |
in
The GeoRegion that is being entered. |
protected GeoRegion |
out
The GeoRegion that is being exited. |
Constructor Summary | |
---|---|
protected |
BoundaryCrossing(Geo p,
GeoRegion r,
boolean goinin)
Creates the BoundaryCrossing. |
Method Summary | |
---|---|
static BoundaryCrossing.Collector |
getCrossings(GeoPath path,
java.util.Collection regions)
The main factory method to create BoundaryCrossings. |
Geo |
getGeo()
|
GeoRegion |
getIn()
|
GeoRegion |
getOut()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Geo geo
protected GeoRegion in
protected GeoRegion out
Constructor Detail |
---|
protected BoundaryCrossing(Geo p, GeoRegion r, boolean goinin)
p
- The Geo locationr
- the GeoRegion being entered/exitedgoinin
- whether the path is goin' in to the region.Method Detail |
---|
public Geo getGeo()
public GeoRegion getIn()
public GeoRegion getOut()
public static BoundaryCrossing.Collector getCrossings(GeoPath path, java.util.Collection regions)
path
- GeoPath to travel overregions
- An ExtentIndex filled with GeoRegions.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |