public static class BoundaryCrossing.Collector extends MatchCollector.SetMatchCollector
MatchCollector.CollectionMatchCollector, MatchCollector.Pair, MatchCollector.PairArrayMatchCollector, MatchCollector.SetMatchCollector
result
Constructor and Description |
---|
BoundaryCrossing.Collector() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCrossing(BoundaryCrossing bc)
Add a BoundaryCrossing to the collection of crossings.
|
protected void |
addCrossing(java.util.Collection c,
GeoSegment segment,
GeoRegion region)
Add a BoundaryCrossing associated with a segment and
region.
|
protected void |
compact()
An important method that cleans up the segment/region
BoundaryCrossing order, and also resolves the
BoundaryCrossing.in/out settings for regions.
|
java.util.Iterator |
getCrossings() |
collect, iterator
protected void addCrossing(BoundaryCrossing bc)
bc
- protected void addCrossing(java.util.Collection c, GeoSegment segment, GeoRegion region)
c
- A list of Geos that a segement intersects with a
region.segment
- GeoSegmentregion
- GeoRegionprotected void compact()
public java.util.Iterator getCrossings()
Copyright (C) BBNT Solutions LLC; See http://openmap.bbn.com/ for details