Class TopologyBuilder


  • public class TopologyBuilder
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected Topology topoRepo  
    • Constructor Summary

      Constructors 
      Constructor Description
      TopologyBuilder()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addShape​(MultiGeoPolygon shape, int shapeId)
      Add a shape object to build the topology.
      Topology getTopology()
      Get the topology object once all the shape objects are added.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

    • Constructor Detail

      • TopologyBuilder

        public TopologyBuilder()
    • Method Detail

      • addShape

        public void addShape​(MultiGeoPolygon shape,
                             int shapeId)
        Add a shape object to build the topology. The id can be used to retrieve topology info later in {@see getTopology} method.
        Parameters:
        shape -
        shapeId -
      • getTopology

        public Topology getTopology()
        Get the topology object once all the shape objects are added.
        Returns: