org.onebusaway.geospatial.grid
Class GridFactory

java.lang.Object
  extended by org.onebusaway.geospatial.grid.GridFactory

public class GridFactory
extends Object


Nested Class Summary
protected static class GridFactory.DoublePoint
           
 
Field Summary
protected  Grid<Object> _grid
           
 
Constructor Summary
GridFactory(double gridLatStep, double gridLonStep)
           
 
Method Summary
 void addBounds(CoordinateBounds bounds)
           
protected  void addCell(GridIndex index, Object value)
           
protected  List<EncodedPolygonBean> getBoundariesAsBeans(List<Boundary> boundaries)
           
 List<EncodedPolygonBean> getBoundary()
           
protected  EncodedPolygonBean getBoundaryAsPolygonBean(Boundary boundary)
           
 List<CoordinateBounds> getGrid()
           
protected  void getIndexAndDirectionAsPoint(GridIndex index, EDirection direction, GridFactory.DoublePoint point)
           
protected  CoordinateBounds getIndexAsBounds(GridIndex index)
           
protected  EncodedPolylineBean getPathAsEncodedPath(BoundaryPath path)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_grid

protected Grid<Object> _grid
Constructor Detail

GridFactory

public GridFactory(double gridLatStep,
                   double gridLonStep)
Method Detail

getBoundary

public List<EncodedPolygonBean> getBoundary()

addBounds

public void addBounds(CoordinateBounds bounds)

getGrid

public List<CoordinateBounds> getGrid()

getIndexAsBounds

protected CoordinateBounds getIndexAsBounds(GridIndex index)

getIndexAndDirectionAsPoint

protected void getIndexAndDirectionAsPoint(GridIndex index,
                                           EDirection direction,
                                           GridFactory.DoublePoint point)

addCell

protected void addCell(GridIndex index,
                       Object value)

getBoundariesAsBeans

protected List<EncodedPolygonBean> getBoundariesAsBeans(List<Boundary> boundaries)

getBoundaryAsPolygonBean

protected EncodedPolygonBean getBoundaryAsPolygonBean(Boundary boundary)

getPathAsEncodedPath

protected EncodedPolylineBean getPathAsEncodedPath(BoundaryPath path)


Copyright © 2011 OneBusAway. All Rights Reserved.