public class BoundaryCrossing
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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.
|
Modifier and Type | Field and Description |
---|---|
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.
|
Modifier | Constructor and Description |
---|---|
protected |
BoundaryCrossing(Geo p,
GeoRegion r,
boolean goinin)
Creates the BoundaryCrossing.
|
Modifier and Type | Method and Description |
---|---|
static BoundaryCrossing.Collector |
getCrossings(GeoPath path,
java.util.Collection regions)
The main factory method to create BoundaryCrossings.
|
Geo |
getGeo() |
GeoRegion |
getIn() |
GeoRegion |
getOut() |
protected Geo geo
protected GeoRegion in
protected GeoRegion out
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.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.Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details