Uses of Class
org.goplanit.utils.misc.Pair
-
Packages that use Pair Package Description org.goplanit.algorithms.nodemodel Node model algorithms for PlanItorg.goplanit.algorithms.shortestpath Shortest Path algorithms for PlanItorg.goplanit.assignment.ltm.sltm org.goplanit.converter org.goplanit.cost.physical Contains the definition of physical cost classesorg.goplanit.io.converter.intermodal org.goplanit.osm.converter.intermodal org.goplanit.osm.converter.network org.goplanit.osm.converter.zoning org.goplanit.osm.converter.zoning.handler.helper org.goplanit.osm.util org.goplanit.tntp.converter.network org.goplanit.utils.geo org.goplanit.utils.misc Miscellaneous utility classesorg.goplanit.utils.xml -
-
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.shortestpath
Fields in org.goplanit.algorithms.shortestpath with type parameters of type Pair Modifier and Type Field Description protected static Comparator<Pair<DirectedVertex,Double>>
AStarShortestPathAlgorithm. pairSecondComparator
Comparator to sort based on the second elements minimum value (ascending order)protected static Comparator<Pair<DirectedVertex,Double>>
DijkstraShortestPathAlgorithm. pairSecondComparator
Comparator to sort based on the second elements minimum value (ascending order) -
Uses of Pair in org.goplanit.assignment.ltm.sltm
Methods in org.goplanit.assignment.ltm.sltm that return Pair Modifier and Type Method Description Pair<DirectedVertex,Map<DirectedVertex,EdgeSegment>>
Bush. findBushAlternativeSubpath(DirectedVertex mergeVertex, short[] alternativeSubpathVertexLabels)
The alternative subpath (not in this bush) is provided as 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>
MultiConverterReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit network -
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.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 network -
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<Link>,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 eith 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 overwrite 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>>
OsmNetworkHandler. 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 Link
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. getOverwrittenStopLocationWaitingArea(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<Mode>>
OsmPublicTransportModeHelper. 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<Collection<String>,Collection<Mode>>
OsmPublicTransportModeHelper. collectPublicTransportModesFromPtEntity(long osmPtEntityId, Map<String,String> tags, String defaultMode)
collect the pt modes both OSM and mapped PLANit modes for a pt entity. -
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<Collection<String>,Collection<Mode>> modeResult)
Check to see if pair with eligible modes contains any eligible OSM modestatic boolean
OsmModeUtils. hasMappedPlanitMode(Pair<Collection<String>,Collection<Mode>> modeResult)
Check to see if pair with eligible modes contains any mapped PLANit mode -
Uses of Pair in org.goplanit.tntp.converter.network
Methods 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.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 mapprotected 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.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Point referencePoint, 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.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.misc
Methods in org.goplanit.utils.misc that return Pair Modifier and Type Method Description static <A,B>
Pair<A,B>Pair. of(A valueA, B valueB)
Factory method -
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.
-