Class CentroidVertexUtils
- java.lang.Object
-
- org.goplanit.utils.network.virtual.CentroidVertexUtils
-
public class CentroidVertexUtils extends Object
Utilities for centroid vertices that do not belong in centroid vertex class itself
-
-
Constructor Summary
Constructors Constructor Description CentroidVertexUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <V extends CentroidVertex,C extends Centroid>
voidupdateCentroidVertexCentroidMapping(Iterable<V> centroidVertices, Function<C,C> centroidToCentroidMapping, boolean removeMissingMappings)
Update the parent edge of all edge segments based on the mapping provided (if any)
-
-
-
Method Detail
-
updateCentroidVertexCentroidMapping
public static <V extends CentroidVertex,C extends Centroid> void updateCentroidVertexCentroidMapping(Iterable<V> centroidVertices, Function<C,C> centroidToCentroidMapping, boolean removeMissingMappings)
Update the parent edge of all edge segments based on the mapping provided (if any)- Type Parameters:
V
- type of centroid vertexC
- type of centroid- Parameters:
centroidVertices
- the centroid vertices to usecentroidToCentroidMapping
- to use should contain original centroid as used on current centroid vertex and then the value to replace itremoveMissingMappings
- when true if there is no mapping, the parent centroid is nullified, otherwise it is left in-tact
-
-