Uses of Class
org.goplanit.utils.misc.Pair
-
-
Uses of Pair in org.goplanit.algorithms.nodemodel
Methods in org.goplanit.algorithms.nodemodel that return Pair Modifier and Type Method Description protected Pair<Double,Integer>
TampereNodeModel. findMostRestrictingOutLinkSegmentIndex()
Find most restricted unprocessed outgoing link segment based on the scaled sending flowsMethods in org.goplanit.algorithms.nodemodel with parameters of type Pair Modifier and Type Method Description protected void
TampereNodeModel. updateCapacityConstrainedInLinkSegments(Pair<Double,Integer> mostRestrictingOutLinkSegmentData)
Based on the most restricting out-link segment, determine the flow acceptance factor for all unprocessed in-link with non-zero (remaining) flows towards this out-link segmentprotected boolean
TampereNodeModel. updateDemandConstrainedInLinkSegments(Pair<Double,Integer> mostRestrictingOutLinkSegmentData)
protected void
TampereNodeModel. updateSets(Pair<Double,Integer> mostRestrictingOutLinkSegmentData)
Based on the outlink segment, we determine which in links are demand constrained (if any). -
Uses of Pair in org.goplanit.algorithms.shortest
Fields in org.goplanit.algorithms.shortest with type parameters of type Pair Modifier and Type Field Description protected static Comparator<Pair<DirectedVertex,Double>>
ShortestPathAStar. pairSecondComparator
Comparator to sort based on the second elements minimum value (ascending order)Methods in org.goplanit.algorithms.shortest that return Pair Modifier and Type Method Description protected Pair<DirectedVertex,DirectedVertex>
ShortestResultGeneralised. getStartEndVertexForResultTraversal(DirectedVertex origin, DirectedVertex destination)
Determine the start and end vertex to use for constructing the path depending on the search type used in the preceding shortest path searchMethod parameters in org.goplanit.algorithms.shortest with type arguments of type Pair Modifier and Type Method Description protected void
ShortestPathGeneralised. initialiseOpenVertices(PriorityQueue<Pair<DirectedVertex,Double>> openVertices, double[] vertexMeasuredCost)
Initialise the open vertices. -
Uses of Pair in org.goplanit.assignment.ltm.sltm
Fields in org.goplanit.assignment.ltm.sltm with type parameters of type Pair Modifier and Type Field Description protected Map<RootedLabelledBush,Map<EdgeSegment,Pair<Double,Double>>>
PasFlowShiftExecutor. bushEntrySegmentS1S2SendingFlows
Track the desired sending flows for s1 and s2 per bush per entry segmentprotected Map<EdgeSegment,Pair<Double,Double>>
PasFlowShiftExecutor. totalEntrySegmentS1S2Flow
S1 and S2 sending flows along (entire) alternative for a given entry segmentMethods in org.goplanit.assignment.ltm.sltm that return Pair Modifier and Type Method Description Pair<DirectedVertex,Map<DirectedVertex,EdgeSegment>>
RootedLabelledBush. findBushAlternativeSubpath(DirectedVertex referenceVertex, short[] alternativeSubpathVertexLabels)
The alternative subpath is provided through link segment labels of value -1. -
Uses of Pair in org.goplanit.assignment.ltm.sltm.conjugate
Methods in org.goplanit.assignment.ltm.sltm.conjugate that return Pair Modifier and Type Method Description Pair<DirectedVertex,Map<DirectedVertex,EdgeSegment>>
ConjugateDestinationBush. findBushAlternativeSubpath(DirectedVertex referenceVertex, short[] alternativeSubpathVertexLabels)
The alternative subpath is provided through link segment labels of value -1. -
Uses of Pair in org.goplanit.converter
Methods in org.goplanit.converter that return Pair Modifier and Type Method Description Pair<T,U>
PairConverterReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit network -
Uses of Pair in org.goplanit.converter.zoning
Methods in org.goplanit.converter.zoning that return Pair Modifier and Type Method Description static Pair<MacroscopicLink,Boolean>
ZoningConverterUtils. excludeClosestLinksIncrementallyOnWrongSideOf(org.locationtech.jts.geom.Geometry location, Collection<MacroscopicLink> links, boolean isLeftHandDrive, Collection<? extends Mode> accessModes, PlanitJtsCrsUtils geoUtils)
Exclude the closest link if it is situated on the wrong side of the road, then if links are remaining keep going with removing the then closest if it is also on the wrong side of the road etc. -
Uses of Pair in org.goplanit.cost.physical
Fields in org.goplanit.cost.physical declared as Pair Modifier and Type Field Description protected Pair<Double,Double>
BprLinkTravelTimeCost. defaultParameters
Default alpha and beta values for all linksMethods in org.goplanit.cost.physical that return Pair Modifier and Type Method Description Pair<Double,Double>
BprLinkTravelTimeCost.BprParameters. getAlphaBetaParameters(Mode mode)
Retrieve Pair containing alpha and beta values for a specified mode -
Uses of Pair in org.goplanit.geoio.converter
Methods in org.goplanit.geoio.converter that return Pair Modifier and Type Method Description protected <TT extends ExternalIdAble>
Pair<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<TT>>GeometryIoWriter. findFeature(Class<TT> clazz, Map<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<? extends ExternalIdAble>> geoFeatureTypes)
find feature and context based on the class present in contextprotected Pair<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<? extends ManagedId>>
GeometryIoWriter. findFeaturePairForPlanitEntity(Class<? extends ManagedId> planitEntityClass, List<Pair<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<? extends ManagedId>>> geoFeatureTypesByPlanitEntity)
Given the feature contexts for the available GIS features, find the one where the context matches a given PLANit entity classMethod parameters in org.goplanit.geoio.converter with type arguments of type Pair Modifier and Type Method Description protected Pair<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<? extends ManagedId>>
GeometryIoWriter. findFeaturePairForPlanitEntity(Class<? extends ManagedId> planitEntityClass, List<Pair<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<? extends ManagedId>>> geoFeatureTypesByPlanitEntity)
Given the feature contexts for the available GIS features, find the one where the context matches a given PLANit entity class -
Uses of Pair in org.goplanit.geoio.converter.intermodal
Methods in org.goplanit.geoio.converter.intermodal that return Pair Modifier and Type Method Description protected Pair<GeometryNetworkWriter,GeometryZoningWriter>
GeometryIntermodalWriter. writeNetworkAndZoning(MacroscopicNetwork macroscopicNetwork, Zoning zoning)
Persist network and zoning and return writers used. -
Uses of Pair in org.goplanit.geoio.util
Methods in org.goplanit.geoio.util that return types with arguments of type Pair Modifier and Type Method Description static List<Pair<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<? extends ManagedId>>>
GeoIoFeatureTypeBuilder. createSimpleFeatureTypes(Set<PlanitEntityFeatureTypeContext<? extends ManagedId>> features, org.opengis.referencing.crs.CoordinateReferenceSystem destinationCoordinateReferenceSystem, Map<Class<?>,String> planitEntitySchemaNames)
Initialise all known supported simple feature types for the given contexts.static List<Pair<org.opengis.feature.simple.SimpleFeatureType,PlanitEntityFeatureTypeContext<? extends ManagedId>>>
GeoIoFeatureTypeBuilder. createSimpleFeatureTypesByLayer(Set<PlanitEntityFeatureTypeContext<? extends ManagedId>> layerFeatures, UntypedDirectedGraphLayer<?,?,?> layer, org.opengis.referencing.crs.CoordinateReferenceSystem destinationCoordinateReferenceSystem, Map<Class<?>,String> planitEntityBaseFileNames, Function<UntypedDirectedGraphLayer<?,?,?>,String> layerPrefixProducer)
Initialise all known supported simple feature types for the physical network (for the given layer). -
Uses of Pair in org.goplanit.graph
Fields in org.goplanit.graph declared as Pair Modifier and Type Field Description protected Pair<Edge,Edge>
ConjugateEdgeImpl. originalEdges
adjacent original edges represented by this conjugateMethods in org.goplanit.graph that return Pair Modifier and Type Method Description Pair<Edge,Edge>
ConjugateEdgeImpl. getOriginalEdges()
Edges in original graph representing this conjugate -
Uses of Pair in org.goplanit.graph.directed
Fields in org.goplanit.graph.directed declared as Pair Modifier and Type Field Description protected Pair<DirectedEdge,DirectedEdge>
ConjugateDirectedEdgeImpl. originalEdges
adjacent original directed edges represented by this conjugateMethods in org.goplanit.graph.directed that return Pair Modifier and Type Method Description Pair<DirectedEdge,DirectedEdge>
ConjugateDirectedEdgeImpl. getOriginalAdjacentEdges()
Conjugate edge represents two adjacent edges in original form (potential turn movement). -
Uses of Pair in org.goplanit.graph.directed.modifier
Methods in org.goplanit.graph.directed.modifier that return types with arguments of type Pair Modifier and Type Method Description <Ex extends DirectedEdge>
Map<Long,Pair<Ex,Ex>>DirectedGraphModifierImpl. breakEdgesAt(List<Ex> edgesToBreak, DirectedVertex vertexToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in edges by inserting the passed in vertex in between. -
Uses of Pair in org.goplanit.graph.modifier
Methods in org.goplanit.graph.modifier that return types with arguments of type Pair Modifier and Type Method Description <Ex extends Edge>
Map<Long,Pair<Ex,Ex>>GraphModifierImpl. breakEdgesAt(List<Ex> edgesToBreak, Vertex vertexToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in edges by inserting the passed in vertex in between. -
Uses of Pair in org.goplanit.gtfs.converter.intermodal
Methods in org.goplanit.gtfs.converter.intermodal that return Pair Modifier and Type Method Description Pair<MacroscopicNetwork,Zoning>
GtfsIntermodalReader. read()
GTFS intermodal reader - when used - only supports reading with services included. -
Uses of Pair in org.goplanit.gtfs.converter.service
Methods in org.goplanit.gtfs.converter.service that return Pair Modifier and Type Method Description Pair<ServiceNetwork,RoutedServices>
GtfsServicesReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit networkMethods in org.goplanit.gtfs.converter.service that return types with arguments of type Pair Modifier and Type Method Description Set<Pair<LocalTime,LocalTime>>
GtfsServicesReaderSettings. getTimePeriodFilters()
Collect the currently configured time period filters. -
Uses of Pair in org.goplanit.gtfs.converter.zoning
Methods in org.goplanit.gtfs.converter.zoning that return Pair Modifier and Type Method Description Pair<Object,IdMapperType>
GtfsZoningReaderSettings. getOverwrittenGtfsStopToLinkMapping(String gtfsStopId)
Collect overwritten link id information for GTFS stop id (if present)Methods in org.goplanit.gtfs.converter.zoning that return types with arguments of type Pair Modifier and Type Method Description Collection<Pair<Object,IdMapperType>>
GtfsZoningReaderSettings. getOverwrittenGtfsStopTransferZoneMapping(String gtfsStopId)
get explicitly mapped transfer zone(s') external id for given GTFS stop id (if any)) -
Uses of Pair in org.goplanit.gtfs.util
Methods in org.goplanit.gtfs.util that return Pair Modifier and Type Method Description static Pair<Node,Boolean>
GtfsLinkHelper. extractNodeByLinkGeometryLocation(org.locationtech.jts.geom.Point gtfsStopNodeLocation, MacroscopicLink referenceLink, MacroscopicNetworkLayer networkLayer, GtfsZoningHandlerData data)
Extract/create a PLANit node based on the given location.static Pair<TransferZone,Double>
GtfsTransferZoneHelper. findTransferZoneStopLocationClosestTo(org.locationtech.jts.geom.Coordinate gtfsStopLocation, Collection<TransferZone> nearbyTransferZones, GtfsZoningHandlerData data)
find the transfer zone (underlying stop locations if any) closest to the provided GTFS stop location. -
Uses of Pair in org.goplanit.io.converter.intermodal
Methods in org.goplanit.io.converter.intermodal that return Pair Modifier and Type Method Description Pair<MacroscopicNetwork,Zoning>
PlanitIntermodalReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit networkprotected Pair<PlanitNetworkWriter,PlanitZoningWriter>
PlanitIntermodalWriter. writeNetworkAndZoning(MacroscopicNetwork macroscopicNetwork, Zoning zoning)
Persist network and zoning and return writers -
Uses of Pair in org.goplanit.network.layer.macroscopic
Methods in org.goplanit.network.layer.macroscopic that return Pair Modifier and Type Method Description Pair<MacroscopicLinkSegment,MacroscopicLinkSegment>
MacroscopicLinkSegmentFactoryImpl. registerNew(MacroscopicLink parentLink, boolean registerOnLink)
Create macroscopic link segments in both directions and register them -
Uses of Pair in org.goplanit.network.layer.modifier
Methods in org.goplanit.network.layer.modifier that return types with arguments of type Pair Modifier and Type Method Description Map<Long,Pair<E,E>>
ServiceNetworkLayerModifierImpl. breakAt(List<E> serviceLegsToBreak, V serviceNodeToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
todo: implement by breaking service leg + update underlying physical link segments by assigning them to either part of broken service legMap<Long,Pair<E,E>>
UntypedNetworkLayerModifierImpl. breakAt(List<E> linksToBreak, V nodeToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in links by inserting the passed in node in between. -
Uses of Pair in org.goplanit.network.layer.physical
Fields in org.goplanit.network.layer.physical declared as Pair Modifier and Type Field Description protected Pair<Link,Link>
ConjugateLinkImpl. originalLinks
adjacent original directed edges represented by this conjugateMethods in org.goplanit.network.layer.physical that return Pair Modifier and Type Method Description Pair<? extends Link,? extends Link>
ConjugateLinkImpl. getOriginalAdjacentEdges()
Conjugate edge represents two adjacent edges in original form (potential turn movement). -
Uses of Pair in org.goplanit.osm.converter.intermodal
Methods in org.goplanit.osm.converter.intermodal that return Pair Modifier and Type Method Description Pair<MacroscopicNetwork,Zoning>
OsmIntermodalReader. read()
Parse a local *.osm or *.osm.pbf file and convert it into a Macroscopic network and zoning given the configuration options that have been set -
Uses of Pair in org.goplanit.osm.converter.network
Fields in org.goplanit.osm.converter.network with type parameters of type Pair Modifier and Type Field Description protected Map<org.locationtech.jts.geom.Point,Pair<List<MacroscopicLink>,de.topobyte.osm4j.core.model.iface.OsmNode>>
OsmNetworkReaderLayerData. originalLinkInternalAvailableLocations
Mapping from locations (representing known OSM nodes or auto-generated PLANit nodes without OSM node, in the latter case, no OSM node is stored in the pair) to the links they are internal to.protected Map<String,Pair<Double,Double>>
OsmHighwaySettings. overwriteByOsmHighwayType
track overwrite values for OSM highway types where we want different defaults for capacity and max densityprotected Map<String,Pair<Double,Double>>
OsmWaySettings. overwriteOsmWayTypeCapacityDensityDefaults
track overwrite values for OSM way types where we want different defaults for capacity and max densityprotected Map<org.locationtech.jts.geom.Point,Pair<Node,de.topobyte.osm4j.core.model.iface.OsmNode>>
OsmNetworkReaderLayerData. planitNodesByLocation
track the PLANit nodes created on this layer by their location (which reflects either an OSM node, or an auto-generated stop_location, not related to an osm node in the latter case, no osm node is available) so they can be collected when needed, for example when breaking planit linksMethods in org.goplanit.osm.converter.network that return Pair Modifier and Type Method Description Pair<Double,Double>
OsmHighwaySettings. getOverwrittenCapacityMaxDensityByOsmHighwayType(String osmWayType)
Collect the overwrite type values that should be usedPair<Double,Double>
OsmRailwaySettings. getOverwrittenCapacityMaxDensityByOsmRailwayType(String osmWayType)
collect the overwritten type values that should be usedPair<Double,Double>
OsmWaterwaySettings. getOverwrittenCapacityMaxDensityByOsmWaterwayRouteType(String osmWayRouteType)
Collect the overwritten type values that should be usedprotected Pair<Double,Double>
OsmWaySettings. getOverwrittenCapacityMaxDensityByOsmWayType(String osmWayType)
collect the overwrite type values that should be usedprotected Pair<MacroscopicLinkSegmentType,MacroscopicLinkSegmentType>
OsmNetworkLayerParser. updatedLinkSegmentTypeBasedOnOsmWay(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags, MacroscopicLinkSegmentType linkSegmentType)
given the OSM way tags and settings we construct or find the appropriate link segment types for both directions, if no better alternative could be found than the one that is passed in is used, which is assumed to be the default link segment type for the OSM way.Methods in org.goplanit.osm.converter.network that return types with arguments of type Pair Modifier and Type Method Description protected Map<MacroscopicNetworkLayerImpl,Pair<MacroscopicLinkSegmentType,MacroscopicLinkSegmentType>>
OsmNetworkMainProcessingHandler. extractLinkSegmentTypes(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags)
extract the correct link segment type based on the configuration of supported modes, the defaults for the given osm way and any modifications to the mode access based on the passed in tags of the OSM wayMap<org.locationtech.jts.geom.Point,Pair<Node,de.topobyte.osm4j.core.model.iface.OsmNode>>
OsmNetworkReaderLayerData. getCreatedPlanitNodesByLocation()
provide read access to the registered PLANit nodes (and original OSM node if any was used) by locationMethods in org.goplanit.osm.converter.network with parameters of type Pair Modifier and Type Method Description MacroscopicLink
OsmNetworkLayerParser. extractPartialOsmWay(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags, int startNodeIndex, int endNodeIndex, boolean isPartOfCircularWay, Pair<MacroscopicLinkSegmentType,MacroscopicLinkSegmentType> linkSegmentTypes)
extract OSM way's PLANit infrastructure for the part of the way that is indicated. -
Uses of Pair in org.goplanit.osm.converter.zoning
Methods in org.goplanit.osm.converter.zoning that return Pair Modifier and Type Method Description Pair<de.topobyte.osm4j.core.model.iface.EntityType,Long>
OsmPublicTransportReaderSettings. getOverwrittenWaitingAreaOfStopLocation(Number stopLocationOsmNodeId)
Verify if stop location's osm id is marked for overwritten platform mappingPair<OsmPtVersionScheme,de.topobyte.osm4j.core.model.iface.OsmEntity>
OsmZoningReaderOsmData. getUnprocessedStation(de.topobyte.osm4j.core.model.iface.EntityType entityType, long osmId)
Collect an unprocessed station if it exists -
Uses of Pair in org.goplanit.osm.converter.zoning.handler.helper
Methods in org.goplanit.osm.converter.zoning.handler.helper that return Pair Modifier and Type Method Description Pair<Collection<String>,Collection<PredefinedModeType>>
OsmPublicTransportModeConversion. collectModesFromPtEntity(long osmPtEntityId, Map<String,String> tags, String defaultMode)
collect the eligible modes both OSM and mapped PLANit modes for the given OSM entity representing pt infrastructure.Pair<SortedSet<String>,SortedSet<PredefinedModeType>>
OsmPublicTransportModeConversion. collectPublicTransportModesFromPtEntity(long osmPtEntityId, de.topobyte.osm4j.core.model.iface.EntityType osmEntityType, Map<String,String> tags, String defaultMode)
collect the pt modes both OSM and mapped PLANit modes for a pt entity.Pair<SortedSet<String>,SortedSet<PredefinedModeType>>
OsmPublicTransportModeConversion. collectPublicTransportModesFromPtEntity(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<String,String> tags, String defaultMode)
-
Uses of Pair in org.goplanit.osm.defaults
Methods in org.goplanit.osm.defaults with parameters of type Pair Modifier and Type Method Description void
OsmModeAccessDefaultsCategory. addAllowedModeCategories(Pair<String,String> osmKeyValueType, String... osmModeCategories)
add the passed in mode categories as allowed for all its child modesvoid
OsmModeAccessDefaultsCategory. addAllowedModes(Pair<String,String> osmKeyValueType, String... osmModes)
add the passed in modes as modes that are explicitly allowed access regardless of the mode category, i.e., this takes precedence over the categories.void
OsmModeAccessDefaultsCategory. addDisallowedModes(Pair<String,String> osmKeyValueType, String... osmModes)
add the passed in modes as modes that are explicitly NOT allowed access regardless of the mode category or allowed modes, i.e., this takes precedence over all other settings.void
OsmModeAccessDefaultsCategory. removeAllowedModeCategories(Pair<String,String> osmKeyValueType, String... osmModeCategories)
remove the passed in mode categories as allowed for all its child modesvoid
OsmModeAccessDefaultsCategory. removeAllowedModes(Pair<String,String> osmKeyValueType, String... osmModes)
remove the passed in modes as modes that are no longer allowed access for the given highway typevoid
OsmModeAccessDefaultsCategory. removeDisallowedModes(Pair<String,String> osmKeyValueType, String... osmModes)
Remove the passed in modes as modes that are NOT allowed access for the given highway type -
Uses of Pair in org.goplanit.osm.util
Methods in org.goplanit.osm.util that return Pair Modifier and Type Method Description static Pair<Integer,Integer>
OsmWayUtils. findIndicesOfFirstLoop(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int initialNodeIndex)
Find the start and end index of the first circular component of the passed in way (if any).Methods in org.goplanit.osm.util with parameters of type Pair Modifier and Type Method Description static boolean
OsmModeUtils. hasEligibleOsmMode(Pair<? extends SortedSet<String>,SortedSet<PredefinedModeType>> modeResult)
Check to see if pair with eligible modes contains any eligible OSM modestatic boolean
OsmModeUtils. hasMappedPlanitMode(Pair<? extends SortedSet<String>,SortedSet<PredefinedModeType>> modeResult)
Check to see if pair with eligible modes contains any mapped PLANit mode -
Uses of Pair in org.goplanit.tntp.converter.demands
Fields in org.goplanit.tntp.converter.demands declared as Pair Modifier and Type Field Description static Pair<Double,TimeUnits>
TntpDemandsReaderSettings. DEFAULT_START_TIME_PERIOD_8AM
default start time of time period since midnight is set to 8:00 hoursstatic Pair<Double,TimeUnits>
TntpDemandsReaderSettings. DEFAULT_TIME_PERIOD_DURATION
default time period duration is set to 1 hour -
Uses of Pair in org.goplanit.tntp.converter.network
Fields in org.goplanit.tntp.converter.network declared as Pair Modifier and Type Field Description static Pair<Double,TimeUnits>
TntpNetworkReaderSettings. DEFAULT_TIME_PERIOD_DURATION
default time period duration is set to 1 hourMethods in org.goplanit.tntp.converter.network that return types with arguments of type Pair Modifier and Type Method Description Map<LinkSegment,Pair<Double,Double>>
TntpNetworkReader. getParsedBprParameters()
Provide read access to parsed bpr parameters of links (only available after parsing) -
Uses of Pair in org.goplanit.utils.containers
Methods in org.goplanit.utils.containers that return types with arguments of type Pair Modifier and Type Method Description static <T> List<Pair<T,T>>
ListUtils. getPairPermutations(List<T> list, boolean keepSelfPermutation)
-
Uses of Pair in org.goplanit.utils.geo
Methods in org.goplanit.utils.geo that return Pair Modifier and Type Method Description static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosest(org.locationtech.jts.geom.Geometry geometry, Collection<? extends Edge> edges, double marginToClosestMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in geometry as well as all other edges within the provided marging using a projection from any existing coordinate on the geometry to the geometry of the link.static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosestToGeometry(org.locationtech.jts.geom.Geometry geometry, Collection<? extends Edge> edges, double bufferDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in geometry as well as all other edges within the given margin using a projection from any existing coordinate on the geometry to the geometry of the link.static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosestToLineString(org.locationtech.jts.geom.LineString lineString, Collection<? extends Edge> edges, double bufferDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in line string using a projection from any existing coordinate on the line string to the geometry of the link.static Pair<? extends Edge,Set<? extends Edge>>
PlanitGraphGeoUtils. findEdgesClosestToPoint(org.locationtech.jts.geom.Point point, Collection<? extends Edge> edges, double bufferDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in point as well as all other edges within the given margin using a projection from any existing coordinate on the geometry to the geometry of the link.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findMinimumValuePair(Map<? extends T,Double> valueMap)
Find the minimum value pair from this mapstatic <T> Pair<T,Double>
PlanitEntityGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Coordinate coord, Collection<? extends T> planitEntities, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
identical toPlanitEntityGeoUtils.findPlanitEntityClosest(Coordinate, Collection, double, boolean, PlanitJtsCrsUtils)
but without a distance criteriastatic <T> Pair<T,Double>
PlanitEntityGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Coordinate coord, Collection<? extends T> planitEntities, double maxDistanceMeters, boolean suppressLogging, PlanitJtsCrsUtils geoUtils)
find the closest distance to the coordinate for some PLANit entity with a supported geometry from the provided collection.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Coordinate reference, Collection<? extends T> planitEntities, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the closest distance to the reference point and the geometry for some PLANit entity with a supported geometry from the provided collection.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the closest PLANit entity to the line string from the available entities.static Pair<org.locationtech.jts.geom.LineString,org.locationtech.jts.geom.LineString>
PlanitJtsUtils. splitLineString(org.locationtech.jts.geom.LineString geometry, org.locationtech.jts.linearref.LinearLocation splitLocation)
split a line string into two line strings at a given location along the original geometry. -
Uses of Pair in org.goplanit.utils.graph
Methods in org.goplanit.utils.graph that return Pair Modifier and Type Method Description Pair<Edge,Edge>
ConjugateEdge. getOriginalEdges()
Edges in original graph representing this conjugate -
Uses of Pair in org.goplanit.utils.graph.directed
Methods in org.goplanit.utils.graph.directed that return Pair Modifier and Type Method Description Pair<? extends DirectedEdge,? extends DirectedEdge>
ConjugateDirectedEdge. getOriginalAdjacentEdges()
Conjugate edge represents two adjacent edges in original form (potential turn movement).default Pair<? extends EdgeSegment,? extends EdgeSegment>
ConjugateDirectedEdge. getOriginalAdjacentEdgeSegments(boolean directionAb)
Collect original pair of edge segments that this conjugate in given direction makes up fordefault Pair<? extends EdgeSegment,? extends EdgeSegment>
ConjugateEdgeSegment. getOriginalAdjcentEdgeSegments()
Adjacent edge segments in original graph for this conjugate -
Uses of Pair in org.goplanit.utils.graph.modifier
Methods in org.goplanit.utils.graph.modifier that return types with arguments of type Pair Modifier and Type Method Description default <Ex extends E>
Map<Long,Pair<Ex,Ex>>GraphModifier. breakEdgesAt(List<Ex> edgesToBreak, V vertexToBreakAt)
Break the passed in edges by inserting the passed in vertex in between.<Ex extends E>
Map<Long,Pair<Ex,Ex>>GraphModifier. breakEdgesAt(List<Ex> edgesToBreak, V vertexToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in edges by inserting the passed in vertex in between. -
Uses of Pair in org.goplanit.utils.misc
Subclasses of Pair in org.goplanit.utils.misc Modifier and Type Class Description class
ComparablePair<A extends Comparable,B extends Comparable>
Custom pair class similar to C++.Methods in org.goplanit.utils.misc that return Pair Modifier and Type Method Description Pair<A,B>
Pair. copy()
shallow copy of this pairstatic <A,B>
Pair<A,B>Pair. empty()
Create empty pair of nullsstatic <A,B>
Pair<A,B>Pair. of(A valueA, B valueB)
Factory methodMethods in org.goplanit.utils.misc with parameters of type Pair Modifier and Type Method Description int
ComparablePair. compareTo(Pair<A,B> o)
-
Uses of Pair in org.goplanit.utils.network.layer.macroscopic
Methods in org.goplanit.utils.network.layer.macroscopic that return Pair Modifier and Type Method Description Pair<MacroscopicLinkSegment,MacroscopicLinkSegment>
MacroscopicLinkSegmentFactory. registerNew(MacroscopicLink parentLink, boolean registerOnLink)
Create macroscopic link segments in both directions and register them -
Uses of Pair in org.goplanit.utils.network.layer.modifier
Methods in org.goplanit.utils.network.layer.modifier that return types with arguments of type Pair Modifier and Type Method Description default Map<Long,Pair<E,E>>
UntypedDirectedGraphLayerModifier. breakAt(E linkToBreak, V nodeToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in link by inserting the passed in node in between.Map<Long,Pair<E,E>>
UntypedDirectedGraphLayerModifier. breakAt(List<E> linksToBreak, V nodeToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in links by inserting the passed in node in between. -
Uses of Pair in org.goplanit.utils.network.layer.physical
Methods in org.goplanit.utils.network.layer.physical that return Pair Modifier and Type Method Description default Pair<? extends LinkSegment,? extends LinkSegment>
ConjugateLinkSegment. getOriginalAdjcentEdgeSegments()
Adjacent edge segments in original graph for this conjugate -
Uses of Pair in org.goplanit.utils.network.virtual
Methods in org.goplanit.utils.network.virtual that return Pair Modifier and Type Method Description default Pair<? extends LinkSegment,? extends LinkSegment>
ConjugateConnectoidSegment. getOriginalAdjcentEdgeSegments()
Adjacent edge segments in original graph for this conjugate -
Uses of Pair in org.goplanit.utils.xml
Methods in org.goplanit.utils.xml that return Pair Modifier and Type Method Description static Pair<XMLStreamWriter,Writer>
PlanitXmlWriterUtils. createXMLWriter(Path xmlFilePath)
create an xml stream writer for the given pathMethods in org.goplanit.utils.xml with parameters of type Pair Modifier and Type Method Description static void
PlanitXmlWriterUtils. endXmlDocument(Pair<XMLStreamWriter,Writer> xmlFileWriterPair)
end the XML document and close the writers, streams etc.
-