Uses of Class
org.goplanit.utils.exceptions.PlanItException
-
-
Uses of PlanItException in org.goplanit.algorithms.nodemodel
Methods in org.goplanit.algorithms.nodemodel that throw PlanItException Modifier and Type Method Description protected voidTampereNodeModel. initialiseRun()Initialise the run conforming to Step 1 in Appendix A of Bliemer et al.org.ojalgo.array.Array1D<Double>TampereNodeModel. run()Run the Tampere node modelConstructors in org.goplanit.algorithms.nodemodel that throw PlanItException Constructor Description TampereNodeModel(TampereNodeModelInput tampereNodeModelInput)ConstructorTampereNodeModelFixedInput(Node node, boolean initialiseReceivingFlowsAtCapacity)Constructor.TampereNodeModelInput(TampereNodeModelFixedInput fixedInput, org.ojalgo.array.Array2D<Double> turnSendingFlows)Constructor for a particular node model runTampereNodeModelInput(TampereNodeModelFixedInput fixedInput, org.ojalgo.array.Array2D<Double> turnSendingFlows, org.ojalgo.array.Array1D<Double> outgoingLinkSegmentReceivingFlows)Constructor for a particular node model run. -
Uses of PlanItException in org.goplanit.algorithms.shortestpath
Methods in org.goplanit.algorithms.shortestpath that throw PlanItException Modifier and Type Method Description MinMaxPathResultAcyclicMinMaxShortestPathAlgorithm. executeOneToAll(DirectedVertex currentOrigin)Perform a one-to-all min-max path search where we construct both the least and most costliest path from the origin vertex provided to all other vertices in the (sub)graph.ShortestPathResultDijkstraShortestPathAlgorithm. executeOneToAll(DirectedVertex currentOrigin)Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edgesShortestPathResultOneToAllShortestPathAlgorithm. executeOneToAll(DirectedVertex currentOrigin)Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edgesShortestPathResultAStarShortestPathAlgorithm. executeOneToOne(DirectedVertex origin, DirectedVertex destination)Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edgesShortestPathResultOneToOneShortestPathAlgorithm. executeOneToOne(DirectedVertex origin, DirectedVertex destination)Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edges -
Uses of PlanItException in org.goplanit.assignment
Methods in org.goplanit.assignment that throw PlanItException Modifier and Type Method Description OutputTypeConfigurationTrafficAssignmentConfigurator. activateOutput(OutputType outputType)Method that allows one to activate specific output types for persistence on the traffic assignment instanceTTrafficAssignmentBuilder. build()Build the traffic assignmentprotected voidTrafficAssignmentBuilder. buildSubComponents(T trafficAssignmentInstance)call to build and configure all sub components of this builderprotected voidTrafficAssignment. checkForEmptyComponents()Check if any components are undefined, if so throw exceptionGapFunctionConfigurator<? extends GapFunction>TrafficAssignmentConfigurator. createAndRegisterGapFunction(String gapFunctionType)Create and Register gapFunction componentPhysicalCostConfigurator<? extends AbstractPhysicalCost>TrafficAssignmentConfigurator. createAndRegisterPhysicalCost(String physicalTraveltimeCostFunctionType)Create and register physical link cost function to determine travel timeSmoothingConfigurator<? extends Smoothing>TrafficAssignmentConfigurator. createAndRegisterSmoothing(String smoothingType)Create and Register smoothing componentVirtualCostConfigurator<? extends AbstractVirtualCost>TrafficAssignmentConfigurator. createAndRegisterVirtualCost(String virtualTraveltimeCostFunctionType)Create and Register virtual link cost function to determine travel timestatic TrafficAssignmentBuilder<?>TrafficAssignmentBuilderFactory. createBuilder(String trafficAssignmentType, IdGroupingToken projectToken, InputBuilderListener inputBuilder, Demands theDemands, Zoning theZoning, TransportLayerNetwork<?,?> theNetwork)Create a builder for given assignment typeprotected abstract TrafficAssignmentConfigurator<T>TrafficAssignmentBuilder. createConfigurator()Allow derived classes to provide their own configurator for this builder, by default we create a base class configuratorprotected GapFunctionTrafficAssignmentBuilder. createGapFunctionInstance(StopCriterion stopCriterion)create a gap function instance based on configurationprotected AbstractPhysicalCostTrafficAssignmentBuilder. createPhysicalCostInstance()create a physical cost instance based on configurationprotected SmoothingTrafficAssignmentBuilder. createSmoothingInstance()create a smoothing instance based on configurationprotected TTrafficAssignmentBuilder. createTrafficAssignmentInstance()Factory method to create the instance of the desired typeprotected voidTrafficAssignment. createTransportNetwork()Initialize the transport network by combining the physical and virtual componentsprotected AbstractVirtualCostTrafficAssignmentBuilder. createVirtualCostInstance()create a virtual cost instance based on configurationprotected voidTrafficAssignment. disbandTransportNetwork()detach the virtual and physical transport network againvoidTrafficAssignment. execute()Execute assignment, including initializing resources, running equilibration and then closing resourcesvoidStaticTrafficAssignment. executeEquilibration()Execute equilibration over all time periods and modesprotected abstract voidTrafficAssignment. executeEquilibration()Run equilibration after resources initialized, including saving resultsprotected voidStaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod)Perform assignment for a given time periodprotected abstract voidStaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)Execute the time period for the registered modesprotected voidTrafficAssignment. finalizeAfterExecution()Finalize all relevant traffic assignment components after execution of the assignment has endedprotected voidTrafficAssignment. initialiseBeforeExecution()Initialize all relevant traffic assignment components before execution of the assignment commencesvoidTrafficAssignmentConfigurator. registerInitialLinkSegmentCost(TimePeriod timePeriod, InitialModesLinkSegmentCost initialLinkSegmentCost)Register the initial link segment cost for a specified time periodvoidTrafficAssignmentConfigurator. registerOutputFormatter(OutputFormatter outputFormatter)Register an output formattervoidTrafficAssignment. setPhysicalCost(AbstractPhysicalCost physicalCost)Set the physical cost where in case the cost is an InteractorAccessor will trigger an event to get access to the required data via requesting an InteractorAccesseevoidTrafficAssignment. setVirtualCost(AbstractVirtualCost virtualCost)Set the virtual cost where in case the cost is an InteractorAccessor will trigger an event to get access to the required data via requesting an InteractorAccesseevoidTrafficAssignmentConfigurator. unregisterOutputFormatter(OutputFormatter outputFormatter)Remove an output formatter which has already been registered This is used by the Python interface, which registers the PlanItIO formatter by defaultprotected abstract voidTrafficAssignment. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected abstract voidTrafficAssignment. verifyNetworkDemandZoningCompatibility()Verify if the traffic assignment inputs (components which are provided upon creation and not subcomponents that are created as part of the build process of the assignment are compatible).Constructors in org.goplanit.assignment that throw PlanItException Constructor Description TrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken projectToken, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, TransportLayerNetwork<?,?> network)Constructor -
Uses of PlanItException in org.goplanit.assignment.algorithmb
Methods in org.goplanit.assignment.algorithmb that throw PlanItException Modifier and Type Method Description protected voidAlgorithmB. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)Execute the time period for the registered modesvoidAlgorithmBEquilibration. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)The method that performs the equilibration for a given time period using AlgorithmBprotected voidAlgorithmB. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network. -
Uses of PlanItException in org.goplanit.assignment.ltm
Methods in org.goplanit.assignment.ltm that throw PlanItException Modifier and Type Method Description protected voidLtmTrafficAssignmentBuilder. buildSubComponents(T ltmAssignmentInstance)In addition to the super class sub components, we also construct the subcomponents specific to dynamic traffic assignmentFundamentalDiagramConfigurator<? extends FundamentalDiagramComponent>LtmConfigurator. createAndRegisterFundamentalDiagram(String fundamentalDiagramType)choose a particular fundamental diagram implementationNodeModelConfigurator<? extends NodeModelComponent>LtmConfigurator. createAndRegisterNodeModel(String nodeModelType)choose a particular node model implementationPathChoiceConfigurator<? extends PathChoice>LtmConfigurator. createAndRegisterPathChoice(String pathChoiceType)choose a particular path choice implementationprotected FundamentalDiagramComponentLtmTrafficAssignmentBuilder. createFundamentalDiagramComponentInstance(MacroscopicNetworkLayer macroscopicNetworkLayer)create a fundamental diagram component instance based on configurationprotected PathChoiceLtmTrafficAssignmentBuilder. createPathChoiceInstance(LtmConfigurator<? extends LtmAssignment> configurator)create a path choice instance based on configurationprotected voidLtmAssignment. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected voidLtmAssignment. verifyNetworkDemandZoningCompatibility()Verify if the network contains a single compatible infrastructure layer because sLTM does not (yet) support multiple (or intermodal) network layersConstructors in org.goplanit.assignment.ltm that throw PlanItException Constructor Description LtmConfigurator(Class<T> ltmClass)ConstructorLtmTrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, TransportLayerNetwork<?,?> network)Constructor -
Uses of PlanItException in org.goplanit.assignment.ltm.eltm
Methods in org.goplanit.assignment.ltm.eltm that throw PlanItException Modifier and Type Method Description protected EventBasedLtmConfiguratorEventBasedLtmTrafficAssignmentBuilder. createConfigurator()create the configurator for ELTMvoidEventBasedLtm. executeEquilibration()Constructors in org.goplanit.assignment.ltm.eltm that throw PlanItException Constructor Description EventBasedLtmConfigurator()ConstructorEventBasedLtmTrafficAssignmentBuilder(IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, TransportLayerNetwork<?,?> network)Constructor -
Uses of PlanItException in org.goplanit.assignment.ltm.sltm
Methods in org.goplanit.assignment.ltm.sltm that throw PlanItException Modifier and Type Method Description protected StaticLtmConfiguratorStaticLtmTrafficAssignmentBuilder. createConfigurator()create the configurator for sLTMprotected voidStaticLtm. executeEquilibration()Run equilibration after resources initialized, including saving resultsvoidStaticLtmAssignmentStrategy. executeNetworkCostsUpdate(Mode theMode, boolean updateOnlyPotentiallyBlockingNodeCosts, double[] costsToUpdate)Perform an update of the network wide costs where a partial update is applied in case only potentially blocking nodes are updated during the loadingprotected voidStaticLtm. initialiseBeforeExecution()Initialise the components before we start any assignment + create the assignment strategy (bush or path based)protected voidStaticLtm. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.Constructors in org.goplanit.assignment.ltm.sltm that throw PlanItException Constructor Description StaticLtmConfigurator()ConstructorStaticLtmTrafficAssignmentBuilder(IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, TransportLayerNetwork<?,?> network)Constructor -
Uses of PlanItException in org.goplanit.assignment.traditionalstatic
Methods in org.goplanit.assignment.traditionalstatic that throw PlanItException Modifier and Type Method Description protected TrafficAssignmentConfigurator<TraditionalStaticAssignment>TraditionalStaticAssignmentBuilder. createConfigurator()the user will configure this builder via this configuratorprotected voidTraditionalStaticAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)Perform assignment for a given time period using Dijkstra's algorithmprotected voidTraditionalStaticAssignment. verifyComponentCompatibility()Verify if a supported gap function is usedprotected voidTraditionalStaticAssignment. verifyNetworkDemandZoningCompatibility()Verify if the network contains a single compatible infrastructure layer as traditional static assignment does not support intermodal network layersConstructors in org.goplanit.assignment.traditionalstatic that throw PlanItException Constructor Description TraditionalStaticAssignmentBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilder, Demands demands, Zoning zoning, TransportLayerNetwork<?,?> network)ConstructorTraditionalStaticAssignmentConfigurator(Class<TraditionalStaticAssignment> instanceType)ConstructorTraditionalStaticAssignmentSimulationData(IdGroupingToken groupId)Constructor -
Uses of PlanItException in org.goplanit.component
Methods in org.goplanit.component that throw PlanItException Modifier and Type Method Description TPlanitComponentFactory. create(String planitComponentClassName, Object[] constructorParameters)Create PLANit componentTPlanitComponentFactory. create(String planitComponentClassName, Object[] constructorParameters, Object... eventParameters)Create PLANit componentvoidPlanitComponent. onPlanitComponentEvent(PlanitComponentEvent event)Act upon the provided event. -
Uses of PlanItException in org.goplanit.component.event
Methods in org.goplanit.component.event that throw PlanItException Modifier and Type Method Description voidPlanitComponentListener. onPlanitComponentEvent(PlanitComponentEvent event)Notify method for PLANit component events. -
Uses of PlanItException in org.goplanit.converter
Methods in org.goplanit.converter that throw PlanItException Modifier and Type Method Description voidConverter. convert()Convert the reader's parsed content by passing it on to the writer.abstract voidConverterBase. convert()Convert the reader's content and pass it on to the writer to convert it.voidMultiConverter. convert()Convert the reader's parsed content by passing it on to the writer.static Function<Connectoid,String>IdMapperFunctionFactory. createConnectoidIdMappingFunction(IdMapperType idMapper)create a function that takes a connectoid and generates the appropriate id based on the user configurationprotected static <T extends ExternalIdAble>
Function<T,String>IdMapperFunctionFactory. createIdMappingFunction(Class<T> clazz, IdMapperType idMapper)create a function that takes a a class that extendsExternalIdAbleand generate the appropriate id based on the user configurationstatic Function<Link,String>IdMapperFunctionFactory. createLinkIdMappingFunction(IdMapperType idMapper)create a function that takes a link and generates the appropriate id based on the user configurationstatic Function<MacroscopicLinkSegment,String>IdMapperFunctionFactory. createLinkSegmentIdMappingFunction(IdMapperType idMapper)create a function that takes a link segment and (optional) id mapper and generates the appropriate MATSIM link id based on the user configurationstatic Function<MacroscopicLinkSegmentType,String>IdMapperFunctionFactory. createLinkSegmentTypeIdMappingFunction(IdMapperType idMapper)create a function that takes a link segment type and generates the appropriate id based on the user configurationstatic Function<Mode,String>IdMapperFunctionFactory. createModeIdMappingFunction(IdMapperType idMapper)create a function that takes a mode and generates the appropriate id based on the user configurationstatic Function<TransferZoneGroup,String>IdMapperFunctionFactory. createTransferZoneGroupIdMappingFunction(IdMapperType idMapper)create a function that takes a transfer zone group and generates the appropriate id based on the user configurationstatic Function<Vertex,String>IdMapperFunctionFactory. createVertexIdMappingFunction(IdMapperType idMapper)create a function that takes a node and generates the appropriate id based on the user configurationstatic Function<Zone,String>IdMapperFunctionFactory. createZoneIdMappingFunction(IdMapperType idMapper)create a function that takes a zone and generates the appropriate id based on the user configurationprotected org.opengis.referencing.crs.CoordinateReferenceSystemBaseWriterImpl. identifyDestinationCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem overwriteCrs, String countryName, org.opengis.referencing.crs.CoordinateReferenceSystem fallBackCrs)identify what the destination Crs is supposed to be.TConverterReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkPair<T,U>MultiConverterReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkprotected <U,V>
voidBaseReaderImpl. registerBySourceId(Class<U> theClazz, V obj)Stores an object by its source Id, after checking whether the external Id is a duplicateprotected <V> voidBaseReaderImpl. registerBySourceId(V obj)Stores an object by its source Id, after checking whether the external Id is a duplicatevoidConverterWriter. write(T entity)write a network to the writer's output format.voidMultiConverterWriter. write(T entity1, U entity2)Write a network to the writer's output format. -
Uses of PlanItException in org.goplanit.cost.physical
Methods in org.goplanit.cost.physical that throw PlanItException Modifier and Type Method Description voidPhysicalCostConfigurator. configure(AbstractPhysicalCost physicalCost)Needed to avoid issues with generics, although it should be obvious that T extends PhysicalCoststatic PhysicalCostConfigurator<? extends AbstractPhysicalCost>PhysicalCostConfiguratorFactory. createConfigurator(String physicalCostType)Create a configurator for given physical cost typeabstract voidAbstractPhysicalCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)Initialize the cost parameter values in the networkvoidBPRLinkTravelTimeCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)Register the BPR cost parameter values on the PhysicalNetworkvoidFreeFlowLinkTravelTimeCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)Initialize the cost parameter values in the networkvoidSteadyStateTravelTimeCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)Initialize the cost parameter values in the networkvoidAbstractPhysicalCost. populateWithCost(UntypedPhysicalLayer<?,?,?> physicalLayer, Mode mode, double[] costToFill)Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its id.voidBPRLinkTravelTimeCost. populateWithCost(UntypedPhysicalLayer<?,?,?> physicalLayer, Mode mode, double[] costToFill)populate the cost array with the BPR link travel times for all link segments for the specified modevoidSteadyStateTravelTimeCost. populateWithCost(UntypedPhysicalLayer<?,?,?> physicalLayer, Mode mode, double[] costToFill)Populate the cost array with the free flow link travel times for all link segments for the specified mode -
Uses of PlanItException in org.goplanit.cost.virtual
Methods in org.goplanit.cost.virtual that throw PlanItException Modifier and Type Method Description voidVirtualCostConfigurator. configure(AbstractVirtualCost virtualCost)Needed to avoid issues with generics, although it should be obvious that T extends VirtualCoststatic VirtualCostConfigurator<? extends AbstractVirtualCost>VirtualCostConfiguratorFactory. createConfigurator(String virtualCostType)Create a configurator for given virtual cost typeabstract voidAbstractVirtualCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)Initialize the virtual cost componentvoidFixedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)Initialize the virtual cost componentvoidSpeedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)Initialize the virtual cost componentvoidFixedConnectoidTravelTimeCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its idvoidSpeedConnectoidTravelTimeCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its idvoidVirtualCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its id -
Uses of PlanItException in org.goplanit.data
Methods in org.goplanit.data that throw PlanItException Modifier and Type Method Description intMultiKeyPlanItData. getPositionOfOutputKeyProperty(OutputPropertyType outputKeyProperty)Get the position of a property type in the output keys property arrayintMultiKeyPlanItData. getPositionOfOutputValueProperty(OutputPropertyType outputValueProperty)Get the position of a property type in the output values property arrayObjectMultiKeyPlanItData. getRowValue(OutputPropertyType outputProperty, Object... keyValues)Get data value for a specified row and columnObject[]MultiKeyPlanItData. getRowValues(Object... keyValues)Returns an array representing the row of data values defined by the specified array of key valuesvoidMultiKeyPlanItData. putRow(Object[] outputValues, Object... keyValues)Puts the data values into a specified rowvoidMultiKeyPlanItData. putRowValue(OutputPropertyType outputProperty, Object value, Object... keyValues)Set the data value for an individual cellConstructors in org.goplanit.data that throw PlanItException Constructor Description MultiKeyPlanItData(OutputProperty[] outputKeyProperties, OutputProperty... outputValueProperties)ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty... outputValueProperties)ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty outputKeyProperty2, OutputProperty... outputValueProperties)ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty outputKeyProperty2, OutputProperty outputKeyProperty3, OutputProperty... outputValueProperties)Constructor -
Uses of PlanItException in org.goplanit.demands
Methods in org.goplanit.demands that throw PlanItException Modifier and Type Method Description TimePeriodDemands.TimePeriods. createAndRegisterNewTimePeriod(String description, long startTimeSeconds, long durationSeconds)Factory method to create and register a new time period on the demands -
Uses of PlanItException in org.goplanit.gap
Methods in org.goplanit.gap that throw PlanItException Modifier and Type Method Description voidGapFunctionConfigurator. configure(GapFunction gapFunction)Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionvoidStopCriterionConfigurator. configure(StopCriterion stopCriterion)Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionstatic GapFunctionConfigurator<? extends GapFunction>GapFunctionConfiguratorFactory. createConfigurator(String gapFunctionType)Create a configurator for given gap function type -
Uses of PlanItException in org.goplanit.graph
Methods in org.goplanit.graph that throw PlanItException Modifier and Type Method Description EdgeEdgeFactoryImpl. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated)booleanEdgeImpl. replace(Vertex vertexToReplace, Vertex vertexToReplaceWith)Replace one of the vertices of the link -
Uses of PlanItException in org.goplanit.graph.directed
Methods in org.goplanit.graph.directed that throw PlanItException Modifier and Type Method Description voidEdgeSegmentsImpl. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)Register a edge segment (not registered on nodes and edge)DirectedEdgeDirectedEdgeFactoryImpl. registerNew(DirectedVertex vertexA, DirectedVertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.graph.modifier
Methods in org.goplanit.graph.modifier that throw PlanItException Modifier and Type Method Description <Ex extends DirectedEdge>
ExDirectedGraphModifierImpl. breakEdgeAt(DirectedVertex vertexToBreakAt, Ex edgeToBreak, PlanitJtsCrsUtils geoUtils)Identical to theGraphImplimplementation except that we now also account for the edge segments present on the edge.<Ex extends Edge>
ExGraphModifierImpl. breakEdgeAt(Vertex vertexToBreakAt, Ex edgeToBreak, PlanitJtsCrsUtils geoUtils)Break the passed in edge by inserting the passed in vertex in between.<Ex extends DirectedEdge>
Map<Long,Set<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.<Ex extends Edge>
Map<Long,Set<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.protected Set<Vertex>GraphModifierImpl. processSubNetworkVertex(Vertex referenceVertex)helper function for subnetwork identification (deliberately NOT recursive to avoid stack overflow on large networks)voidDirectedGraphModifierImpl. removeDanglingSubGraphs(Integer belowSize, Integer aboveSize, boolean alwaysKeepLargest)remove any dangling subgraphs below a given size from the graph if they exist and subsequently reorder the internal ids if neededvoidGraphModifierImpl. removeDanglingSubGraphs(Integer belowSize, Integer aboveSize, boolean alwaysKeepLargest)remove any dangling subgraphs below a given size from the graph if they exist and subsequently reorder the internal ids if neededvoidDirectedGraphModifierImpl. removeSubGraphOf(DirectedVertex referenceVertex)remove the (sub)graph in which the passed in vertex resides.voidGraphModifierImpl. removeSubGraphOf(Vertex referenceVertex)remove the (sub)graph in which the passed in vertex resides.protected static voidGraphModifierImpl. updateBrokenEdgeGeometry(Edge brokenEdge, Vertex vertexBrokenAt)update the geometry of the broken edge, knowing at what vertex it was broken from a previously longer edge -
Uses of PlanItException in org.goplanit.io.converter
Methods in org.goplanit.io.converter that throw PlanItException Modifier and Type Method Description protected static StringPlanitWriterImpl. extractSrsName(PlanitXmlWriterSettings xmlSettings)Extract the src name to use based on the available crs information on network and settingsprotected voidPlanitWriterImpl. initialiseIdMappingFunctions()depending on the chosen id mapping, create the mapping functions for all id carrying entities that are persistedprotected voidPlanitWriterImpl. persist(Object xmlRootElement, Class<?> rootElementClazz, String planitSchemaName)Persist the populated XML memory model to disk using JAXbprotected voidPlanitWriterImpl. prepareCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCrs)prepare the Crs transformer (if any) based on the user configuration settings -
Uses of PlanItException in org.goplanit.io.converter.demands
Methods in org.goplanit.io.converter.demands that throw PlanItException Modifier and Type Method Description protected voidPlanitDemandsReader. populateDemandConfiguration()Sets up all the configuration data from the XML demands fileprotected voidPlanitDemandsReader. populateDemandContents()Parses the demand contents of the XMLDemandsPlanitDemandsReader. read()Parse the XMLand populate the demands memory modelConstructors in org.goplanit.io.converter.demands that throw PlanItException Constructor Description PlanitDemandsReader(String pathDirectory, String xmlFileExtension, Demands demands)ConstructorPlanitDemandsReader(org.goplanit.xml.generated.XMLElementMacroscopicDemand xmlMacroscopicDemands, MacroscopicNetwork network, Zoning zoning, Demands demandsToPopulate)Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model -
Uses of PlanItException in org.goplanit.io.converter.intermodal
Methods in org.goplanit.io.converter.intermodal that throw PlanItException Modifier and Type Method Description static PlanitIntermodalReaderPlanitIntermodalReaderFactory. create()Factory method based on all defaults.static PlanitIntermodalReaderPlanitIntermodalReaderFactory. create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning)Factory methodstatic PlanitIntermodalReaderPlanitIntermodalReaderFactory. create(PlanitIntermodalReaderSettings intermodalSettings)Factory method absed on passed in network and zoning reader settingsstatic PlanitIntermodalReaderPlanitIntermodalReaderFactory. create(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning, MacroscopicNetwork network, Zoning zoning)constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory modelPair<MacroscopicNetwork,Zoning>PlanitIntermodalReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkvoidPlanitIntermodalWriter. write(MacroscopicNetwork macroscopicNetwork, Zoning zoning)Write a network to the writer's output format.Constructors in org.goplanit.io.converter.intermodal that throw PlanItException Constructor Description PlanitIntermodalReader(String inputPathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning)constructor where xml content is still on disk and first needs to be parsed into memory before converted to planit memory modelPlanitIntermodalReader(String inputPathDirectory, String xmlFileExtension, IdGroupingToken idToken)constructor where xml content is still on disk and first needs to be parsed into memory before converted to planit memory model.PlanitIntermodalReader(PlanitIntermodalReaderSettings settings, IdGroupingToken idToken)constructor where xml content is still on disk and first needs to be parsed into memory before converted to planit memory model.PlanitIntermodalReader(org.goplanit.xml.generated.XMLElementMacroscopicNetwork xmlRawNetwork, org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning, MacroscopicNetwork network, Zoning zoning)constructor where the xml content has already been parsed into a JAXB memory model which subsequently needs to be converted into the planit memory model -
Uses of PlanItException in org.goplanit.io.converter.network
Methods in org.goplanit.io.converter.network that throw PlanItException Modifier and Type Method Description voidPlanitNetworkReader. parseLinkAndLinkSegments(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils jtsUtils)parse link and link segmentsvoidPlanitNetworkReader. parseLinkSegmentTypeAccessProperties(org.goplanit.xml.generated.XMLElementAccessGroup xmlAccessGroupProperties, MacroscopicLinkSegmentType linkSegmentType, Collection<Mode> defaultModes)parse the mode properties for given link segment type and populate the helper with themvoidPlanitNetworkReader. parseLinkSegmentTypes(org.goplanit.xml.generated.XMLElementLayerConfiguration xmlLayerconfiguration, MacroscopicNetworkLayer networkLayer)Parse the link segment typesvoidPlanitNetworkReader. parseNodes(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer)Create and register nodes on the networkprotected voidPlanitNetworkWriter. populateXmlNetworkLayer(org.goplanit.xml.generated.XMLElementInfrastructureLayers xmlInfrastructureLayers, MacroscopicNetworkLayerImpl physicalNetworkLayer)Populate the network layerprotected voidPlanitNetworkWriter. populateXmlNetworkLayers(MacroscopicNetwork network)Populate the available network layersMacroscopicNetworkPlanitNetworkReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkprotected voidPlanitNetworkReader. setNetwork(TransportLayerNetwork<?,?> network)Place network to populatevoidPlanitNetworkWriter. write(TransportLayerNetwork<?,?> network)write a network to the writer's output format.Constructors in org.goplanit.io.converter.network that throw PlanItException Constructor Description PlanitNetworkReader(String networkPathDirectory, String xmlFileExtension, TransportLayerNetwork<?,?> network)ConstructorPlanitNetworkReader(PlanitNetworkReaderSettings settings, TransportLayerNetwork<?,?> network)Constructor where settings are directly provided such that input information can be exracted from itPlanitNetworkReader(PlanitNetworkReaderSettings settings, IdGroupingToken idToken)Constructor where settings are directly provided such that input information can be exracted from itPlanitNetworkReader(org.goplanit.xml.generated.XMLElementMacroscopicNetwork externalXmlRawNetwork, TransportLayerNetwork<?,?> network)Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model -
Uses of PlanItException in org.goplanit.io.converter.service
Methods in org.goplanit.io.converter.service that throw PlanItException Modifier and Type Method Description RoutedServicesPlanitRoutedServicesReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkServiceNetworkPlanitServiceNetworkReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkConstructors in org.goplanit.io.converter.service that throw PlanItException Constructor Description PlanitRoutedServicesReader(String inputPathDirectory, String xmlFileExtension, RoutedServices routedServices)ConstructorPlanitRoutedServicesReader(PlanitRoutedServicesReaderSettings settings, RoutedServices routedServices)Constructor where settings and routed services to populate are directly providedPlanitRoutedServicesReader(IdGroupingToken idToken, PlanitRoutedServicesReaderSettings settings)Constructor where settings are directly provided such that input information can be extracted from itPlanitRoutedServicesReader(org.goplanit.xml.generated.XMLElementRoutedServices populatedXmlRawRoutedServices, RoutedServices routedServices)Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory modelPlanitServiceNetworkReader(String networkPathDirectory, String xmlFileExtension, ServiceNetwork serviceNetwork)ConstructorPlanitServiceNetworkReader(PlanitServiceNetworkReaderSettings settings, ServiceNetwork serviceNetwork)Constructor where settings and service network are directly providedPlanitServiceNetworkReader(IdGroupingToken idToken, PlanitServiceNetworkReaderSettings settings)Constructor where settings are directly provided such that input information can be extracted from itPlanitServiceNetworkReader(org.goplanit.xml.generated.XMLElementServiceNetwork populatedXmlRawServiceNetwork, ServiceNetwork serviceNetwork)Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model -
Uses of PlanItException in org.goplanit.io.converter.zoning
Methods in org.goplanit.io.converter.zoning that throw PlanItException Modifier and Type Method Description static PlanitZoningReaderPlanitZoningReaderFactory. create()Factory method wit all default, expected that user configures the settings afterwards to reach minimum requirements for successful parsing (input dir especially)static PlanitZoningReaderPlanitZoningReaderFactory. create(String pathDirectory, String xmlFileExtension, TransportLayerNetwork<?,?> network, Zoning zoning)Factory methodstatic PlanitZoningReaderPlanitZoningReaderFactory. create(org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlRawZoning, TransportLayerNetwork<?,?> network, Zoning zoning)Factory method where file has already been parsed and we only need to convert from raw XML objects to PLANit memory modelprotected voidPlanitZoningReader. populateIntermodal(Modes modes)Parse the intermodal zones, i.e., platforms, stops, stations, etc.protected voidPlanitZoningReader. populateODZones()Parse the OD zones from Xml element into Planit memoryZoningPlanitZoningReader. read()Read the zoning from diskvoidPlanitZoningWriter. write(Zoning zoning)write a network to the writer's output format.Constructors in org.goplanit.io.converter.zoning that throw PlanItException Constructor Description PlanitZoningReader(String pathDirectory, String xmlFileExtension, TransportLayerNetwork<?,?> network, Zoning zoning)ConstructorPlanitZoningReader(org.goplanit.xml.generated.XMLElementMacroscopicZoning xmlMacroscopicZoning, TransportLayerNetwork<?,?> network, Zoning zoning)Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model -
Uses of PlanItException in org.goplanit.io.geo
Methods in org.goplanit.io.geo that throw PlanItException Modifier and Type Method Description List<org.opengis.geometry.DirectPosition>PlanitOpenGisUtils. convertToDirectPositions(org.locationtech.jts.geom.Coordinate[] coordinates)Convert JTS coordinates to OpenGIS directPositionsorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. convertToOpenGisLineString(org.locationtech.jts.geom.LineString jtsLineString)Convert a JTS line string object to an OpenGis LineString instance by transferring the internal coordinatesorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. convertToOpenGisLineString(org.locationtech.jts.geom.MultiLineString jtsMultiLineString)Converts a JTS MultiLineString with a single entry into an OpenGIS LineString instanceorg.opengis.geometry.DirectPositionPlanitOpenGisUtils. createDirectPosition(double xCoordinate, double yCoordinate)Create DirectPosition object from X- and Y-coordinatesorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineString(String value, char ts, char cs)Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineString(List<Double> coordinateList)Create a line string from the doubles passed in (list of doubles containing x1,y1,x2,y2,etc.org.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineStringFromCsvString(String value, String ts, String cs)Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineStringFromPositions(List<org.opengis.geometry.coordinate.Position> positionList)Create a line string from the passed in positionsorg.opengis.geometry.coordinate.PositionPlanitOpenGisUtils. getClosestSamplePointOnLineString(org.opengis.geometry.coordinate.Position toMatch, org.opengis.geometry.coordinate.LineString lineString)Find the closest explicit sample point registered on the line string compared to the passed in positiondoublePlanitOpenGisUtils. getDistanceInKilometres(Vertex vertexA, Vertex vertexB)Compute the distance in kilometres between two vertices assuming the positions are set and based on the same crs as registered on this class instancedoublePlanitOpenGisUtils. getDistanceInKilometres(org.opengis.geometry.coordinate.LineString geometry)Compute the length of the line string by traversing all nodes and computing the segment by segment distances TODO: find out if a faster way is possibledoublePlanitOpenGisUtils. getDistanceInKilometres(org.opengis.geometry.coordinate.Position startPosition, org.opengis.geometry.coordinate.Position endPosition)Compute the distance in kilometres between two positions assuming the positions are provided in the same crs as registered on this class instancedoublePlanitOpenGisUtils. getDistanceInMetres(org.opengis.geometry.coordinate.Position startPosition, org.opengis.geometry.coordinate.Position endPosition)Compute the distance in metres between two positions assuming the positions are provided in the same crs as registered on this class instance -
Uses of PlanItException in org.goplanit.io.input
Methods in org.goplanit.io.input that throw PlanItException Modifier and Type Method Description voidPlanItInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)Whenever a project component is created this method will be invokedprotected voidPlanItInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)Populates the Demands object from the input fileprotected voidPlanItInputBuilder. populateInitialLinkSegmentCost(PopulateInitialLinkSegmentCostEvent initialCostEvent)Populate the initial link segment cost from a CSV fileprotected voidPlanItInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork network)Creates the macroscopic network object from the data in the input fileprotected voidPlanItInputBuilder. populateRoutedServices(RoutedServices routedServicesToPopulate)Populate the routed services based on the local XML file if it can be found.protected voidPlanItInputBuilder. populateServiceNetwork(ServiceNetwork serviceNetworkToPopulate)Populate the service network based on the local XML file if it can be found.protected voidPlanItInputBuilder. populateZoning(Zoning zoning, MacroscopicNetwork network)Creates the Zoning object and connectoids from the data in the input fileConstructors in org.goplanit.io.input that throw PlanItException Constructor Description PlanItInputBuilder(String projectPath)Constructor which generates the input objects from files in a specified directory, using the default extension ".xml"PlanItInputBuilder(String projectPath, String xmlFileExtension)Constructor which generates the input objects from files in a specified directory -
Uses of PlanItException in org.goplanit.io.output.formatter
Methods in org.goplanit.io.output.formatter that throw PlanItException Modifier and Type Method Description voidPlanItOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Finalize the persistence after the simulation.voidPlanItOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Create the output directories and open the CSV writersvoidPlanItOutputFormatter. resetCsvDirectory()Call this method to delete all existing files in the CSV output directoryvoidPlanItOutputFormatter. resetXmlDirectory()Call this method to delete all existing files in the XML output directoryprotected voidPlanItOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected voidPlanItOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to the CSV fileprotected voidPlanItOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the CSV fileprotected voidPlanItOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Path results for the time period to the CSV fileprotected voidPlanItOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV fileConstructors in org.goplanit.io.output.formatter that throw PlanItException Constructor Description PlanItOutputFormatter(IdGroupingToken groupId)Constructor, takes values for properties file name, description and version property -
Uses of PlanItException in org.goplanit.io.project
Methods in org.goplanit.io.project that throw PlanItException Modifier and Type Method Description TrafficAssignmentConfigurator<? extends TrafficAssignment>PlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, TransportLayerNetwork<?,?> theNetwork)Create and register a traffic assignment instance of a given typeTrafficAssignmentConfigurator<? extends TrafficAssignment>PlanItSimpleProject. createAndRegisterTrafficAssignment(String trafficAssignmentType)On a simple project we only allow a single assignment to be registered.TrafficAssignmentConfigurator<? extends TrafficAssignment>PlanItSimpleProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, TransportLayerNetwork<?,?> theNetwork)Disallow the use of the generic create and register traffic assignment because a simple project automatically determines its demands, zoning, and networkvoidPlanItSimpleProject. executeAllTrafficAssignments()Execute all registered traffic assignments Top-level error recording is done in this class.Constructors in org.goplanit.io.project that throw PlanItException Constructor Description PlanItProject(String projectPath)Constructor taking project path where to find all project input filesPlanItSimpleProject()Base constructor for simple project which adopts the PlanItIO input/output format.PlanItSimpleProject(String projectPath)Base constructor for simple project which adopts the PlanItIO input/output format -
Uses of PlanItException in org.goplanit.io.xml.converter
Methods in org.goplanit.io.xml.converter that throw PlanItException Modifier and Type Method Description static org.goplanit.xml.generated.TypevaluesEnumConverter. convertFromPlanItToXmlGeneratedType(DataType type)Convert values from Type enumeration in PLANit project to generated Typevalues enumerationstatic org.goplanit.xml.generated.UnitsvaluesEnumConverter. convertFromPlanItToXmlGeneratedUnits(OutputProperty outputProperty)Convert values from Units enumeration in PLANit project to generated Unitsvalues enumeration -
Uses of PlanItException in org.goplanit.io.xml.network.physical.macroscopic
Methods in org.goplanit.io.xml.network.physical.macroscopic that throw PlanItException Modifier and Type Method Description static doubleXmlMacroscopicNetworkLayerHelper. parseLength(org.goplanit.xml.generated.XMLElementLinks.Link xmlLink, org.locationtech.jts.geom.LineString theLineString, PlanitJtsCrsUtils jtsUtils)parse the length of an XML Link based on geometry or length attributestatic DoubleXmlMacroscopicNetworkLayerHelper. parseLengthFromLineString(org.goplanit.xml.generated.XMLElementLinks.Link generatedLink, PlanitJtsCrsUtils jtsUtils)Get the link length from the gml:LineString element in the XML file, if this has been setstatic org.locationtech.jts.geom.LineStringXmlMacroscopicNetworkLayerHelper. parseLinkGeometry(org.goplanit.xml.generated.XMLElementLinks.Link generatedLink)parse the geometry from the xml link -
Uses of PlanItException in org.goplanit.io.xml.util
Methods in org.goplanit.io.xml.util that throw PlanItException Modifier and Type Method Description static org.opengis.referencing.crs.CoordinateReferenceSystemPlanitXmlJaxbParser. createPlanitCrs(String srsName)Create a crs based on passed in srs name.booleanPlanitXmlJaxbParser. initialiseAndParseXmlRootElement(String inputPathDirectory, String xmlFileExtension)Parse the raw XML root (and rest) from file if not already set via constructorstatic org.goplanit.xml.generated.MotorisationTypeEnumConversionUtil. planitToXml(MotorisationModeType planitMotorisationType)convert motorisation type from PLANit to XMLstatic org.goplanit.xml.generated.TrackTypeEnumConversionUtil. planitToXml(TrackModeType xmlTrackType)convert track type from PLANit to XMLstatic org.goplanit.xml.generated.UsedToTypeEnumConversionUtil. planitToXml(UseOfModeType useOfType)convert used-to type from PLANit to XMLstatic org.goplanit.xml.generated.VehicularTypeEnumConversionUtil. planitToXml(VehicularModeType planitVehicularType)convert motorisation type from PLANit to XMLstatic org.goplanit.xml.generated.TimeUnitEnumConversionUtil. planitToXml(Unit planitTimeUnit)Convert time unit from PLANit to XML TimeUnitstatic MotorisationModeTypeEnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.MotorisationType xmlMotorisationType)convert motorisation type from xml to PLANitstatic TimeUnitEnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.TimeUnit xmlTimeUnitType)Convert TimeUnit type from XML to PLANit Unitstatic TrackModeTypeEnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.TrackType xmlTrackType)convert track type from xml to PLANitstatic UseOfModeTypeEnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.UsedToType xmlUseOfType)convert used-to type from xml to PLANitstatic VehicularModeTypeEnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.VehicularType xmlVehicularType)convert vehicle type from xml to PLANit -
Uses of PlanItException in org.goplanit.matsim.converter
Methods in org.goplanit.matsim.converter that throw PlanItException Modifier and Type Method Description protected org.opengis.referencing.crs.CoordinateReferenceSystemMatsimWriter. prepareCoordinateReferenceSystem(MacroscopicNetwork network, String destinationCountry, org.opengis.referencing.crs.CoordinateReferenceSystem destinationCrs)Prepare the Crs transformer (if any) based on the user configuration settings.protected booleanMatsimWriter. validateNetwork(TransportLayerNetwork<?,?> referenceNetwork)Validate the network instance available, throw or log when issues are foundvoidMatsimIntermodalWriter. write(MacroscopicNetwork infrastructureNetwork, Zoning zoning)Persist the PLANit network and zoning and a MATSIM compatible network to diskvoidMatsimNetworkWriter. write(TransportLayerNetwork<?,?> network)write a network to the writer's output format.voidMatsimZoningWriter. write(Zoning zoning)extract public transport information from planit zoning and use it to persist as much of the matsim public transport xml's as possibleprotected voidMatsimNetworkWriter. writeDetailedGeometryFile(MacroscopicNetworkLayerImpl networkLayer)Create detailed geometry file compatible with VIA viewerprotected voidMatsimZoningWriter. writeTransitScheduleXML(XMLStreamWriter xmlWriter, Zoning zoning, MacroscopicNetworkLayer networkLayer)convert the planit public transport infrastructure to matsim transit schedule xmlprotected voidMatsimNetworkWriter. writeXmlNetworkFile(MacroscopicNetworkLayerImpl networkLayer)write the xml MATSIM networkprotected voidMatsimZoningWriter. writeXmlTransitScheduleFile(Zoning zoning)Starting point for persisting the matsim transit schedule file -
Uses of PlanItException in org.goplanit.mode
Methods in org.goplanit.mode that throw PlanItException Modifier and Type Method Description PredefinedModeModeFactoryImpl. createPredefinedMode(IdGroupingToken groupId, PredefinedModeType modeType)create a predefined mode instance without registering it on the container.PredefinedModeModeFactoryImpl. registerNew(PredefinedModeType modeType)Create and register a new predefined mode. -
Uses of PlanItException in org.goplanit.network
Methods in org.goplanit.network that throw PlanItException Modifier and Type Method Description voidUntypedPhysicalNetwork. removeDanglingSubnetworks()remove any dangling subnetworks from the network's layers if they exist and subsequently reorder the internal ids if neededvoidUntypedPhysicalNetwork. removeDanglingSubnetworks(Integer belowSize, Integer aboveSize, boolean alwaysKeepLargest)remove any dangling subnetworks below a given size from the network if they exist and subsequently reorder the internal ids if neededbooleanMacroscopicNetworkLayerConfigurator. removeLayer(String layerXmlId)remove a proposed layer, this means that all modes mapped to this layer are no longer mapped at allvoidTopologicalLayerNetwork. transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCoordinateReferenceSystem)change the coordinate system, which will result in an update of all geometries in the network layers from the original CRS to the new CRS. -
Uses of PlanItException in org.goplanit.network.layer
Methods in org.goplanit.network.layer that throw PlanItException Modifier and Type Method Description voidUntypedNetworkLayerImpl. transform(org.opengis.referencing.crs.CoordinateReferenceSystem fromCoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem toCoordinateReferenceSystem)transform all underlying geometries in the layer from the given crs to the new crs -
Uses of PlanItException in org.goplanit.network.layer.macroscopic
Methods in org.goplanit.network.layer.macroscopic that throw PlanItException Modifier and Type Method Description MacroscopicLinkSegmentMacroscopicLinkSegmentFactoryImpl. create(Link parentLink, boolean directionAB)Create macroscopic link segment, do not register nor register on nodes and linkMacroscopicLinkSegmentMacroscopicLinkSegmentFactoryImpl. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)Create a macroscopic link segment and register itMacroscopicLinkSegmentMacroscopicLinkSegmentFactoryImpl. registerNew(Link parentLink, MacroscopicLinkSegmentType type, boolean directionAb, boolean registerOnNodeAndLink)Create a macroscopic link segment and register itConstructors in org.goplanit.network.layer.macroscopic that throw PlanItException Constructor Description MacroscopicLinkSegmentImpl(IdGroupingToken groupId, Link parentLink, boolean directionAB)Constructor -
Uses of PlanItException in org.goplanit.network.layer.modifier
Methods in org.goplanit.network.layer.modifier that throw PlanItException Modifier and Type Method Description Map<Long,Set<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.voidUntypedNetworkLayerModifierImpl. removeDanglingSubnetworks(Integer belowSize, Integer aboveSize, boolean alwaysKeepLargest)remove any dangling subnetworks below a given size from the network if they exist and subsequently reorder the internal ids if needed. -
Uses of PlanItException in org.goplanit.network.layer.physical
Methods in org.goplanit.network.layer.physical that throw PlanItException Modifier and Type Method Description LinkSegmentLinkSegmentFactoryImpl. create(Link parentLink, boolean directionAB)Create link segmentLinkSegmentLinkSegmentFactoryImpl. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)Create link segment and register itConstructors in org.goplanit.network.layer.physical that throw PlanItException Constructor Description LinkSegmentImpl(IdGroupingToken groupId, boolean directionAB)ConstructorLinkSegmentImpl(IdGroupingToken groupId, Link parentLink, boolean directionAB)Constructor -
Uses of PlanItException in org.goplanit.network.transport
Methods in org.goplanit.network.transport that throw PlanItException Modifier and Type Method Description protected voidTransportModelNetwork. connectVerticesToEdge(Edge edge)Add Edge to both verticesprotected voidTransportModelNetwork. connectVerticesToEdgeSegment(EdgeSegment edgeSegment)Add edge segment to the incoming or outgoing set of edge segments for the related verticesprotected voidTransportModelNetwork. createAndRegisterConectoidEdgeSegments(VirtualNetwork virtualNetwork, Collection<ConnectoidEdge> connectoidEdges)create and register the edge segments for the passed in connectoid edgesprotected voidTransportModelNetwork. disconnectVerticesFromEdge(Edge edge)Remove Edge from both verticesprotected voidTransportModelNetwork. disconnectVerticesFromEdgeSegment(EdgeSegment edgeSegment)Remove edge segment from the incoming or outgoing set of edge segments for the related verticesvoidTransportModelNetwork. integrateTransportNetworkViaConnectoids()Integrate physical and virtual links within od zones (undirected connectoid access node and centroid)voidTransportModelNetwork. removeVirtualNetworkFromPhysicalNetwork()Remove the edges and edge segments on the vertices of both virtual and physical networks -
Uses of PlanItException in org.goplanit.network.virtual
Methods in org.goplanit.network.virtual that throw PlanItException Modifier and Type Method Description ConnectoidSegmentConnectoidEdgeImpl. registerConnectoidSegment(ConnectoidSegment connectoidSegment, boolean directionAB)Register connectoidSegment.Collection<ConnectoidEdge>ConnectoidEdgeFactoryImpl. registerNew(Connectoid connectoid)Create new connectoid edges from a specified connectoid to all centroids of the zones this connectoid has registered as access zone.ConnectoidSegmentConnectoidSegmentFactoryImpl. registerNew(ConnectoidEdge parent, boolean directionAB)Create and register connectoid segment in AB direction on containerConstructors in org.goplanit.network.virtual that throw PlanItException Constructor Description ConnectoidEdgeImpl(IdGroupingToken groupId, Centroid centroidA, DirectedVertex vertexB, double length)ConstructorConnectoidSegmentImpl(IdGroupingToken groupId, ConnectoidEdge parentEdge, boolean directionAb)Constructor -
Uses of PlanItException in org.goplanit.osm.converter
Methods in org.goplanit.osm.converter that throw PlanItException Modifier and Type Method Description voidOsmReaderSettings. setBoundingBox(Number x1, Number x2, Number y1, Number y2)Set an additional (more restricting) square bounding box based on provided envelopevoidOsmReaderSettings. setInputFile(String inputFile)Set the input file to use, which is internally converted into a URLvoidOsmReaderSettings. setInputSource(String inputSource)Set the input source to use, we attempt to extract a URL from the String directly here -
Uses of PlanItException in org.goplanit.osm.converter.intermodal
Methods in org.goplanit.osm.converter.intermodal that throw PlanItException Modifier and Type Method Description static OsmIntermodalReaderOsmIntermodalReaderFactory. create(String inputFile, String countryName)Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReaderOsmIntermodalReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populatestatic OsmIntermodalReaderOsmIntermodalReaderFactory. create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings)Create a PLANitOsmIntermodalReader which requires the user to set the remaining required settings on the provided settings instancesstatic OsmIntermodalReaderOsmIntermodalReaderFactory. create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, PlanitOsmNetwork osmNetworkToPopulate)Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReaderOsmIntermodalReaderFactory. create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populatestatic OsmIntermodalReaderOsmIntermodalReaderFactory. create(OsmNetworkReaderSettings networkSettings, PlanitOsmNetwork osmNetworkToPopulate)Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningPair<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 setvoidOsmIntermodalReaderSettings. setBoundingBox(Number x1, Number x2, Number y1, Number y2)Set a square bounding box based on provided envelopevoidOsmIntermodalReaderSettings. setInputFile(String inputFile)Set the input file to use, which is internally converted into a URLConstructors in org.goplanit.osm.converter.intermodal that throw PlanItException Constructor Description OsmIntermodalReader(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)Constructor -
Uses of PlanItException in org.goplanit.osm.converter.network
Methods in org.goplanit.osm.converter.network that throw PlanItException Modifier and Type Method Description static Map<Long,Set<Link>>OsmNetworkHandlerHelper. breakLinksWithInternalNode(Node theNode, List<Link> linksToBreak, MacroscopicNetworkLayer networkLayer, org.opengis.referencing.crs.CoordinateReferenceSystem crs)Check if we should break any links for the passed in node and if so, do itprotected booleanOsmNetworkLayerParser. breakLinksWithInternalNode(Node thePlanitNode)whenever we find that internal nodes are used by more than one link OR a node is an extreme node on an existing link but also an internal link on another node, we break the links where this node is internal.static OsmNetworkReaderOsmNetworkReaderFactory. create()Create a PLANitOSMReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving countrystatic OsmNetworkReaderOsmNetworkReaderFactory. create(String countryName)Create a PLANitOSMReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving countrystatic OsmNetworkReaderOsmNetworkReaderFactory. create(String inputFile, String countryName)Create a PLANitOSMReader which will create its own macroscopic networkstatic OsmNetworkReaderOsmNetworkReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmNetworkReaderOsmNetworkReaderFactory. create(URL inputQuery, String countryName)Create a PLANitOSMReader which will create its own macroscopic network by drawing from a cloud based map sourcestatic OsmNetworkReaderOsmNetworkReaderFactory. create(URL inputQuery, String countryName, PlanitOsmNetwork osmNetworkToPopulate)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmNetworkReaderOsmNetworkReaderFactory. create(OsmNetworkReaderSettings settings)Create a PLANitOSMReader while providing an OSM network to populatestatic NodeOsmNetworkHandlerHelper. createPopulateAndRegisterNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, MacroscopicNetworkLayer networkLayer, OsmNetworkReaderLayerData layerData)Extract a PLANit node from the osmNode information and register it on the provided layerstatic NodeOsmNetworkHandlerHelper. createPopulateAndRegisterNode(org.locationtech.jts.geom.Point osmNodeLocation, MacroscopicNetworkLayer networkLayer, OsmNetworkReaderLayerData layerData)Extract a PLANit node from the location information and register it on the provided layerprotected 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 wayprotected voidOsmNetworkHandler. extractOsmWay(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags)extract OSM way's PLANit infrastructure for the entire way, i.e., link, nodes, and link segments where applicable.protected Map<TransportLayer,Link>OsmNetworkHandler. extractPartialOsmWay(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags, int startNodeIndex, int endNodeIndex, boolean isPartOfCircularWay)Extract OSM way's PLANit infrastructure for the part of the way that is indicated.LinkOsmNetworkLayerParser. 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.doubleOsmHighwaySettings. getDefaultSpeedLimitByOsmHighwayType(String osmWayValue)Collect the speed limit for a given highway tag value, e.g.DoubleOsmHighwaySettings. getDefaultSpeedLimitByOsmHighwayType(Map<String,String> tags)Collect the default speed limit for a given highway tag value, where we extract the key and value from the passed in tags, if availabledoubleOsmRailwaySettings. getDefaultSpeedLimitByOsmRailwayType(String osmWayValue)Collect the speed limit for a given railway tag value, e.g.DoubleOsmRailwaySettings. getDefaultSpeedLimitByOsmRailwayType(Map<String,String> tags)Collect the default speed limit for a given railway tag value, where we extract the key and value from the passed in tags, if availableDoubleOsmNetworkReaderSettings. getDefaultSpeedLimitByOsmWayType(Map<String,String> tags)Collect the default speed limit for a given highway or railway tag value, where we extract the key and value from the passed in tags, if availableprotected doubleOsmWaySettings. getDefaultSpeedLimitByOsmWayType(String osmWayValue)Collect the speed limit for a given railway tag value, e.g.protected DoubleOsmWaySettings. getDefaultSpeedLimitByOsmWayType(String osmWayKey, Map<String,String> tags)Collect the default speed limit for a given way tag value, where we extract the key and value from the passed in tags, if availableNodeOsmNetworkReaderLayerData. getPlanitNodeByLocation(org.locationtech.jts.geom.Point location)Collect the PLANit node available for the given locationNodeOsmNetworkReaderLayerData. getPlanitNodeByOsmNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode)Collect the planit node available for this osm node (if any)voidOsmNetworkReader. initialiseBeforeParsing()Call this BEFORE we parse the OSM network to initialise the handler(s) properlyprotected voidOsmNetworkReaderSettings. initialiseDefaultMappingFromOsmModes2PlanitModes(Modes planitModes)Map both road and rail modes from OSM modes to PLANit modesprotected voidOsmRailwaySettings. initialiseDefaultMappingFromOsmRailModes2PlanitModes(Modes planitModes)each OSM rail mode is mapped (or not) to a PLANit mode by default so that the memory model's modes are user configurable yet linked to the original format.protected voidOsmHighwaySettings. initialiseDefaultMappingFromOsmRoadModes2PlanitModes(Modes planitModes)Each OSM road mode is mapped to a PLANit mode by default so that the memory model's modes are user configurable yet linked to the original format.booleanOsmNetworkReaderLayerData. isOsmNodePresentInLayer(de.topobyte.osm4j.core.model.iface.OsmNode osmNode)verify if OSM node is part of this layer either as a PLANit node, or internal to any PLANit linkMacroscopicNetworkOsmNetworkReader. read()Parse a local *.osm or *.osm.pbf file and convert it into a Macroscopic network given the configuration options that have been setvoidOsmNetworkReaderLayerData. registerOsmNodeAsInternalToPlanitLink(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Link planitLink)Add a mapping from OSM node id to the (initial) planit link it is internal tovoidOsmNetworkReaderLayerData. registerPlanitNodeByLocation(org.locationtech.jts.geom.Point location, Node planitNode)register a PLANit node based on a location only, instead of based on an osm nodevoidOsmNetworkReaderLayerData. registerPlanitNodeByOsmNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Node planitNode)Register a PLANit node based on an OSM node for this layerprotected voidOsmNetworkReader. removeDanglingSubNetworks()Remove dangling subnetworks when settings dictate itvoidOsmNetworkReader. removeDanglingSubNetworks(Zoning zoning)remove dangling subnetworks when settings dictate it.protected 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.Constructors in org.goplanit.osm.converter.network that throw PlanItException Constructor Description OsmNetworkReader(String countryName, PlanitOsmNetwork osmNetwork)ConstructorOsmNetworkReader(URL inputSource, String countryName, PlanitOsmNetwork osmNetwork)ConstructorOsmNetworkReader(OsmNetworkReaderSettings settings)ConstructorOsmNetworkReader(PlanitOsmNetwork osmNetwork)Constructor -
Uses of PlanItException in org.goplanit.osm.converter.zoning
Methods in org.goplanit.osm.converter.zoning that throw PlanItException Modifier and Type Method Description static OsmZoningReaderOsmZoningReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork referenceNetwork)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(String inputFile, String countryName, Zoning zoningToPopulate, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(URL inputSource, String countryName, PlanitOsmNetwork referenceNetwork)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(URL inputSource, String countryName, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(URL inputSource, String countryName, Zoning zoningToPopulate, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(OsmPublicTransportReaderSettings settings)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(OsmPublicTransportReaderSettings settings, Zoning zoningToPopulate)Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReaderOsmZoningReaderFactory. create(Zoning zoningToPopulate)Create a default PLANitOsmZoningReader.Collection<TransferZone>OsmZoningReaderPlanitData. getTransferZonesByOsmId(de.topobyte.osm4j.core.model.iface.EntityType entityType)Collect the transfer zones by entity type, unmodifiableZoningOsmZoningReader. read()Parse a local *.osm or *.osm.pbf file and convert it into a PLANit Zoning instance given the configuration options that have been setprotected voidOsmZoningReader. read(de.topobyte.osm4j.core.access.OsmReader osmReader, OsmZoningHandlerBase osmHandler)conduct reading of data with given reader and handler -
Uses of PlanItException in org.goplanit.osm.converter.zoning.handler
Methods in org.goplanit.osm.converter.zoning.handler that throw PlanItException Modifier and Type Method Description protected voidOsmZoningProcessingHandler. extractTransferInfrastructure(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, OsmPtVersionScheme ptVersion, Map<String,String> tags)extract the transfer infrastructure which will contribute to newly created transfer zones on the zoning instanceprotected voidOsmZoningProcessingHandler. extractTransferInfrastructure(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, OsmPtVersionScheme ptVersion, Map<String,String> tags)extract the transfer infrastructure which will contribute to newly created transfer zones on the zoning instanceprotected booleanOsmZoningHandlerBase. hasNetworkLayersWithActiveOsmNode(long osmNodeId)Verify if there exist any layers where the node is active either as an extreme node or internal to a PLANit linkabstract voidOsmZoningHandlerBase. initialiseBeforeParsing()Call this BEFORE we parse the OSM network to initialise the handler properlyvoidOsmZoningPostProcessingHandler. initialiseBeforeParsing()Call this BEFORE we parse the OSM network to initialise the handler properlyvoidOsmZoningPreProcessingHandler. initialiseBeforeParsing()Call this BEFORE we apply the handlervoidOsmZoningProcessingHandler. initialiseBeforeParsing()Call this before we parse the OSM network to initialise the handler properlyprotected voidOsmZoningHandlerBase. logWarningIfNotNearBoundingBox(String message, org.locationtech.jts.geom.Geometry geometry)log the given warning message but only when it is not too close to the bounding box, because then it is too likely that it is discarded due to missing infrastructure or other missing assets that could not be parsed fully as they pass through the bounding box barrier. -
Uses of PlanItException in org.goplanit.osm.converter.zoning.handler.helper
Methods in org.goplanit.osm.converter.zoning.handler.helper that throw PlanItException Modifier and Type Method Description Collection<DirectedConnectoid>ConnectoidHelper. createAndRegisterDirectedConnectoidsOnTopOfTransferZone(TransferZone transferZone, MacroscopicNetworkLayer networkLayer, Mode planitMode, PlanitJtsCrsUtils geoUtils)Create directed connectoids for transfer zones that reside on osw ways.TransferZoneTransferZoneHelper. createAndRegisterTransferZoneWithConnectoidsAtOsmNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, String defaultOsmMode, TransferZoneType defaultTransferZoneType, PlanitJtsCrsUtils geoUtils)Method that will attempt to create both a transfer zone and its connectoids at the location of the OSM node.TransferZoneTransferZoneHelper. createAndRegisterTransferZoneWithoutConnectoidsFindAccessModes(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<String,String> tags, TransferZoneType transferZoneType, String defaultOsmMode, PlanitJtsCrsUtils geoUtils)Attempt to create a new transfer zone and register it, do not yet create connectoids for it.TransferZoneTransferZoneHelper. createAndRegisterTransferZoneWithoutConnectoidsSetAccessModes(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<String,String> tags, TransferZoneType transferZoneType, Collection<String> eligibleOsmModes, PlanitJtsCrsUtils geoUtils)Attempt to create a new transfer zone and register it, do not create connectoids for it.booleanConnectoidHelper. extractDirectedConnectoids(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, Collection<TransferZone> transferZones, Collection<Mode> planitModes, TransferZoneGroup transferZoneGroup)create and/or update directed connectoids for the transfer zones and mode combinations when eligible, based on the passed in OSM node where the connectoids access link segments are extracted frombooleanConnectoidHelper. extractDirectedConnectoidsForMode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, TransferZone transferZone, Mode planitMode, PlanitJtsCrsUtils geoUtils)create and/or update directed connectoids for the given mode and layer based on the passed in osm node (location) where the connectoids access link segments are extracted for.booleanConnectoidHelper. extractDirectedConnectoidsForMode(org.locationtech.jts.geom.Point location, TransferZone transferZone, Mode planitMode, Collection<Link> eligibleAccessLinks, PlanitJtsCrsUtils geoUtils)create and/or update directed connectoids for the given mode and layer based on the passed in location where the connectoids access link segments are extracted for.voidConnectoidHelper. extractDirectedConnectoidsForStandAloneTransferZoneByPlanitLink(long osmWaitingAreaId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, Link accessLink, TransferZone transferZone, Mode accessMode, double maxAllowedStopToTransferZoneDistanceMeters, MacroscopicNetworkLayer networkLayer)create connectoids not based on osm node location but based on auto-generated geographic location on the provided link's link segments by finding either a close enough existing coordinate (osm node), or if not close enough a newly created coordinate at the appropriate position.org.locationtech.jts.geom.PointConnectoidHelper. findConnectoidLocationForstandAloneTransferZoneOnLink(TransferZone transferZone, Link accessLink, Mode accessMode, double maxAllowedStopToTransferZoneDistanceMeters, MacroscopicNetworkLayer networkLayer)find a suitable connectoid location on the given link based on the constraints that it must be able to reside on a linksegment that is in the correct relative position to the transfer zone and supports the access mode on at least one of the designated link segment(s) that is eligible (if any).Collection<TransferZone>TransferZoneHelper. findTransferZonesForStopPosition(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, Collection<String> eligibleOsmModes)Identical to the one with transfer zone group parameter, only here no stop_position is not part of transfer zone group and therefore we only can find matches spatiallyCollection<TransferZone>TransferZoneHelper. findTransferZonesForStopPosition(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Map<String,String> tags, Collection<String> eligibleOsmModes, TransferZoneGroup transferZoneGroup)Find the transfer zone(s) for a given stop_position, either the user overwritten mapping, or conditioned on mode,reference/name/spatially, or just the closest one in absence of eligible modes. -
Uses of PlanItException in org.goplanit.osm.defaults
Methods in org.goplanit.osm.defaults that throw PlanItException Modifier and Type Method Description static StringCountrySpecificDefaultUtils. extractCountryNameFromFile(Path filePath)Validate if file is a valid resource file and its name is constructed based on a country code.protected static doubleOsmSpeedLimitDefaultsByCountry. getSpeedLimitByHighwayType(OsmSpeedLimitDefaults countryDefaults, boolean outside, String type)Collect the speed limit based on the highway type, e.g.protected static voidOsmHighwayTypeConfiguration. initialiseDefaultActivatedOsmHighwayTypes()Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM highway types to macroscopic link segment types that we explicitly do include, i.e., support.protected static voidOsmRailwayTypeConfiguration. initialiseDefaultActivatedOsmRailwayTypes()Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do include, i.e., support.protected static voidOsmHighwayTypeConfiguration. initialiseDefaultDeactivatedOsmHighwayTypes()Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM highway types to macroscopic link segment types that we explicitly do not include FOOTWAY BRIDLEWAY STEPS CORRIDOR CYCLEWAY PATH ELEVATOR PROPOSED CONSTRUCTION TURNING_CIRCLE RACE_WAYprotected static voidOsmRailwayTypeConfiguration. initialiseDefaultDeactivatedOsmRailwayTypes()Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do not activate either because they are not used in general assignment (miniature) or because we cannot properly convert them (turn tables, razed), or because they do not represent a railway as such (platform as a way) FUNICULAR MONO_RAIL NARROW_GAUGE ABANDONED CONSTRUCTION DISUSED MINIATURE RAZED TURNTABLE PROPOSEDprotected static voidOsmSpeedLimitDefaultsByCountry. populateAustralianSpeedLimits()Populate the defaults for Australiaprotected static voidOsmSpeedLimitDefaultsByCountry. populateCountrySpecificSpeedLimits()Populate the country specific defaults for highway/railway types for supported countriesprotected static voidOsmSpeedLimitDefaultsByCountry. populateGlobalDefaultHighwaySpeedLimits()Populate the global defaults for highway types in case the country is not available, or in case the road type for that country is not availableprotected static voidOsmSpeedLimitDefaultsByCountry. populateGlobalDefaultRailwaySpeedLimits()populate the global defaults for railway types in case the country is not available, or in case the railway type for that country is not available.protected static voidOsmSpeedLimitDefaultsByCountry. populateGlobalSpeedLimits()populate the global defaults for highway/railway typesprotected static voidOsmSpeedLimitDefaultsByCountry. setDefaultsByCountry(OsmSpeedLimitDefaults countrySpeedLimits)Register speed limits for a specific country -
Uses of PlanItException in org.goplanit.osm.physical.network.macroscopic
Methods in org.goplanit.osm.physical.network.macroscopic that throw PlanItException Modifier and Type Method Description protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createBridleway(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create bridleway type with defaults For horse riders.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createCycleway(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create cycleway type with defaults For designated cyclewaysprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createDefaultOsmLinkSegmentType(String name, double capacityPcuPerhour, double maxSpeedKmh, Collection<Mode> modes)Create an OSM default link segment typeprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createFootway(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create footway type with defaults For designated footpaths; i.e., mainly/exclusively for pedestrians.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createFunicular(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create funicular (rail) type with defaultsprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createLightRail(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create light rail (rail) type with defaultsprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createLivingStreet(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create living street type with defaults Roads which serve as an access to housing, without function of connecting settlements.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createMonoRail(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create mono rail (rail) type with defaultsprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createMotorway(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create motorway type with defaults restricted access major divided highway, normally with 2 or more running lanes plus emergency hard shoulder.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createMotorwayLink(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create motorway link type with defaults The link roads (sliproads/ramps) leading to/from a motorway from/to a motorway or lower class highway.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createNarrowGauge(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create narrow gauge(rail) type with defaultsvoidPlanitOsmNetwork. createOsmCompatibleLinkSegmentTypes(OsmNetworkReaderSettings settings)Create the link segment types that are marked in the passed in settings.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createOsmCompatibleRailLinkSegmentTypeByLayer(String osmWayValue, OsmNetworkReaderSettings settings)create the rail based link segment type based on the settingprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createOsmCompatibleRoadLinkSegmentTypeByLayer(String osmWayValue, OsmNetworkReaderSettings settings)create the road based link segment type based on the settingprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createOsmLinkSegmentType(String externalId, double capacityPcuPerhour, double maxDensityPcuPerKm, double maxSpeed, Collection<Mode> modes)Create OSM default link segment types with mode properties where we create multiple types if modes reside on different layers in which case only the modes on that layer will be added to the layer specific typeprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createOsmRailWayLinkSegmentType(String railwayTypeValue, double maxSpeed, Collection<Mode> modes)Create a link segment type on the network based on the passed in OSM railway value tagsprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createOsmRoadWayLinkSegmentType(String highwayTypeValue, double maxSpeed, Collection<Mode> modes)Create a link segment type on the network based on the passed in OSM highway value tags.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createPath(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create path type with defaults A non-specific path either multi-use or unspecified usage, open to all non-motorized vehicles and not intended for motorized vehicles unless tagged so separatelyprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createPedestrian(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create pedestrian type with defaults For roads used mainly/exclusively for pedestrians in shopping and some residential areas which may allow access by motorised vehicles only for very limited periods of the day.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createPrimary(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create primary type with defaults The next most important roads in a country's system (after trunk).protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createPrimaryLink(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create primary link type with defaults The link roads (sliproads/ramps) leading to/from a primary road from/to a primary road or lower class highway.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createRail(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create rail type with defaultsprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createResidential(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create residential type with defaults Roads which serve as an access to housing, without function of connecting settlements.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createRoad(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create road type with defaults A road/way/street/motorway/etc.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createSecondary(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create secondary type with defaults The link roads (sliproads/ramps) leading to/from a primary road from/to a primary road or lower class highway.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createSecondaryLink(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create secondary link type with defaults The link roads (sliproads/ramps) leading to/from a secondary road from/to a secondary road or lower class highway.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createService(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create service type with defaults For access roads to, or within an industrial estate, camp site, business park, car park, alleys, etc.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createSteps(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create step type with defaults For flights of steps (stairs) on footwaysprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createSubway(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create subway type with defaultsprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createTertiary(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create tertiary type with defaults The next most important roads in a country's system (after secondary).protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createTertiaryLink(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create tertiary link type with defaults The link roads (sliproads/ramps) leading to/from a tertiary road from/to a tertiary road or lower class highway.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createTrack(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create track type with defaults Roads for mostly agricultural or forestry uses.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createTram(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create tram type with defaultsprotected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createTrunk(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create trunk type with defaults The most important roads in a country's system that aren't motorways.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createTrunkLink(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create trunk link type with defaults restricted access major divided highway, normally with 2 or more running lanes plus emergency hard shoulder.protected Map<TransportLayer,MacroscopicLinkSegmentType>PlanitOsmNetwork. createUnclassified(double osmHighwayTypeMaxSpeed, Collection<Mode> modes)Create unclassified type with defaults The least important through roads in a country's system – i.e. -
Uses of PlanItException in org.goplanit.osm.util
Methods in org.goplanit.osm.util that throw PlanItException Modifier and Type Method Description static org.locationtech.jts.geom.Coordinate[]OsmWayUtils. createCoordinateArray(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Based on the passed in osmWay collect the coordinates on that way as a coordinate array for the given range.static org.locationtech.jts.geom.Coordinate[]OsmWayUtils. createCoordinateArray(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Based on the passed in osmWay collect the coordinates on that way as a coordinate array.static org.locationtech.jts.geom.Coordinate[]OsmWayUtils. createCoordinateArray(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, int startNodeIndex, int endNodeIndex, PlanitExceptionConsumer<Set<Long>> missingNodeConsumer)Based on the passed in osmWay collect the coordinates on that way as a coordinate array.static org.locationtech.jts.geom.Coordinate[]OsmWayUtils. createCoordinateArrayNoThrow(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Based on the passed in osmWay collect the coordinates on that way as a coordinate array for the given range.static org.locationtech.jts.geom.PointOsmNodeUtils. createPoint(long osmNodeId, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Create a point based on the OSMnodestatic Collection<Link>PlanitLinkUtils. excludeLinksOnWrongSideOf(org.locationtech.jts.geom.Geometry waitingAreaGeometry, Collection<Link> links, boolean isLeftHandDrive, Collection<Mode> accessModes, PlanitJtsCrsUtils geoUtils)create a subset of links from the passed in ones, removing all links for which we can be certain that geometry is located on the wrong side of the road infrastructure geometry.static org.locationtech.jts.geom.LineSegmentPlanitLinkSegmentUtils. extractClosestLineSegmentToGeometryFromLinkSegment(org.locationtech.jts.geom.Geometry referenceGeometry, MacroscopicLinkSegment linkSegment, PlanitJtsCrsUtils geoUtils)Extract a JTS line segment based on the closest two coordinates on the link segment geometry in its intended direction to the reference geometry providedstatic org.locationtech.jts.linearref.LinearLocationPlanitTransferZoneUtils. extractClosestProjectedLinearLocationOnEdgeForTransferZone(TransferZone transferZone, Edge accessEdge, PlanitJtsCrsUtils geoUtils)Find the linear location reflecting the closest projected location between the transfer zone and link geometries.static org.locationtech.jts.geom.GeometryOsmWayUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)extract geometry from the osm way which can either be a line string or polygonstatic org.locationtech.jts.geom.GeometryOsmWayUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, Level logLevel)extract geometry from the osm way which can either be a line string or polygonstatic org.locationtech.jts.geom.GeometryPlanitOsmUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)extract geometry from the osm entity, either a point, line string or polygonstatic org.locationtech.jts.geom.GeometryPlanitOsmUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, Level logLevel)extract geometry from the osm entity, either a point, line string or polygonstatic org.locationtech.jts.geom.LineStringOsmWayUtils. extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Extract the geometry for the passed in way as line string for the given nodesstatic org.locationtech.jts.geom.LineStringOsmWayUtils. extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Extract the geometry for the passed in way as line stringstatic org.locationtech.jts.geom.LineStringOsmWayUtils. extractLineStringNoThrow(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Identical toOsmWayUtils.extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay,java.util.Map<java.lang.Long,de.topobyte.osm4j.core.model.iface.OsmNode>), except it does not throw exceptions, but simply logs any issues foundstatic de.topobyte.osm4j.core.model.iface.EntityTypePlanitTransferZoneUtils. extractOsmEntityType(TransferZone transferZone)Extract the OSM entity type from a PLANit Transfer zonestatic org.locationtech.jts.geom.PointOsmWayUtils. extractPoint(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)creates a point geoetry using the first available node from the nodes on the osm way.static org.locationtech.jts.geom.PolygonOsmWayUtils. extractPolygon(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Extract the geometry for the passed in way as polygon (assumed it has been identified as such already)static org.locationtech.jts.geom.CoordinateOsmNodeUtils. findClosestProjectedCoordinateTo(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, org.locationtech.jts.geom.LineString geometry, PlanitJtsCrsUtils geoUtils)Create a coordinate at the location that represents the closest point between the osmNode and the passed in geometrystatic EdgeOsmNodeUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Edge> edges, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)Find the closest edge to the node location.static EdgeOsmNodeUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)Find the closest link to the node location.static EdgeOsmWayUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Edge> edges, double maxDistanceMeters, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)find the closest edge to the way from the available edges.static EdgeOsmWayUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Edge> edges, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)find the closest edge to the way from the available edges.static EdgePlanitOsmUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Collection<? extends Edge> edges, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)find the link closest to the passed in osm Entitystatic IntegerOsmWayUtils. findLastAvailableOsmNodeIndexAfter(int offsetIndex, de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Finds the last consecutive available OSM node index after the offset, i.e.static org.locationtech.jts.geom.LineSegmentOsmWayUtils. findMinimumLineSegmentBetween(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, org.locationtech.jts.geom.LineString geometry, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)find the minimum distance line segment that connects the osmWay to the passed in line string geometryprotected static <T> TOsmWayUtils. findPlanitEntityClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends T> planitEntities, double maxDistanceMeters, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)find the closest PLANit entity to the way from the available entities.static TransferZonePlanitTransferZoneUtils. findTransferZoneClosestByTransferGroup(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Collection<? extends TransferZoneGroup> transferZoneGroups, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)Find the zone (within any of the transfer zone groups) closest to the passed in OSM Entitystatic ZoneOsmNodeUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)find the closest zone to the node location.static ZoneOsmNodeUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, PlanitJtsCrsUtils geoUtils)find the closest zone to the node location.static ZoneOsmWayUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Zone> zones, double maxDistanceMeters, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)Find the closest zone to the way .static ZoneOsmWayUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Collection<? extends Zone> zones, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, PlanitJtsCrsUtils geoUtils)Find the closest zone to the way .static ZoneOsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)find the closest zone to the node location.static ZoneOsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, PlanitJtsCrsUtils geoUtils)identical to findZoneWithClosest coordinate that requires a maximum search distance.static LinkPlanitLinkUtils. getClosestLinkWithOsmWayIdToGeometry(long osmWayId, org.locationtech.jts.geom.Geometry geometry, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils geoUtils)Collect the closest by link (with the given OSM way id on the layer) to the provided geometry.static doubleOsmNodeUtils. getDistanceToZone(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Zone zone, PlanitJtsCrsUtils geoUtils)find the distance from the zone to the node.static booleanPlanitNetworkLayerUtils. hasNetworkLayersWithActiveOsmNode(long osmNodeId, TransportLayerNetwork<?,?> network, OsmNetworkReaderData networkData)Verify if there exist any layers where the node is active either as an extreme node or internal to a PLANit linkstatic booleanPlanitNetworkLayerUtils. hasNetworkLayersWithActiveOsmNode(long osmNodeId, TransportLayerNetwork<?,?> network, OsmNetworkToZoningReaderData networkToZoningData)Verify if there exist any layers where the node is active either as an extreme node or internal to a PLANit linkstatic Collection<EdgeSegment>PlanitTransferZoneUtils. identifyInvalidTransferZoneAccessLinkSegmentsBasedOnRelativeLocationToInfrastructure(Collection<EdgeSegment> accessLinkSegments, TransferZone transferZone, Mode planitMode, boolean leftHandDrive, PlanitJtsCrsUtils geoUtils)Find the access link segments ineligible given the intended location of the to be created connectoid, the transfer zone provided, and the access mode.static booleanOsmBoundingAreaUtils. isNearNetworkBoundingBox(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Envelope networkBoundingBox, PlanitJtsCrsUtils geoUtils)check if geometry is near network bounding box using buffer based on PlanitOsmNetworkReaderData.BOUNDINGBOX_NEARNESS_DISTANCE_METERSstatic booleanPlanitTransferZoneUtils. isTransferZoneAtLocation(TransferZone transferZone, org.locationtech.jts.geom.Point location)Verify if the geometry of the transfer zone equates to the provided locationstatic booleanPlanitTransferZoneUtils. isTransferZoneLeftOf(TransferZone transferZone, org.locationtech.jts.geom.Coordinate coordA, org.locationtech.jts.geom.Coordinate coordB, PlanitJtsCrsUtils geoUtils)Verify of the transfer zone resides left of the line coordA to coordBstatic voidOsmBoundingAreaUtils. logWarningIfNotNearBoundingBox(String message, org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Envelope boundingBox, PlanitJtsCrsUtils geoUtils)log the given warning message but only when it is not too close to the bounding box, because then it is too likely that it is discarded due to missing infrastructure or other missing assets that could not be parsed fully as they pass through the bounding box barrier.static doublePlanitOsmUtils. parseMaxSpeedValueKmPerHour(String maxSpeedValue)parse an OSM maxSpeedValue tag value and perform unit conversion to km/h if neededstatic double[]PlanitOsmUtils. parseMaxSpeedValueLanesKmPerHour(String maxSpeedLanes)parse an OSM maxSpeedValue tag value with speeds per lane separated by "|" and perform unit conversion to km/h if needed -
Uses of PlanItException in org.goplanit.output
Methods in org.goplanit.output that throw PlanItException Modifier and Type Method Description OutputTypeConfigurationOutputManager. createAndRegisterOutputTypeConfiguration(OutputType outputType)Factory method to create an output configuration for a given typevoidOutputManager. finaliseAfterSimulation()Allows the output manager to finalise itself and any of its registered output formatters to after the simulation endedvoidOutputManager. initialiseBeforeSimulation(long runId)Allows the output manager to initialize itself and any of its registered output formatters to prepare before the simulation startsvoidOutputManager. persistOutputData(TimePeriod timePeriod, Set<Mode> modes, boolean converged)Persist the output data for all registered output types -
Uses of PlanItException in org.goplanit.output.adapter
Methods in org.goplanit.output.adapter that throw PlanItException Modifier and Type Method Description protected static Optional<?>OutputTypeAdapterImpl. createConvertedUnitsValue(OutputProperty outputProperty, Optional<?> unconvertedValue)Convert the output property value that is assumed to be in the properties default units in the desired units indicated on the propertydefault Optional<Double>MacroscopicLinkOutputTypeAdapter. getCapacityPerLanePcuHour(MacroscopicLinkSegment linkSegment)Returns the value of the capacity per lanestatic Optional<String>OdOutputTypeAdapter. getDestinationZoneExternalId(OdDataIterator<?> odIterator)Returns the external Id of the destination zone for the current ODstatic Optional<String>PathOutputTypeAdapter. getDestinationZoneExternalId(OdDataIterator<?> odPathIterator)Returns the external Id of the destination zone for the current cell in the OD path matrixstatic Optional<Long>OdOutputTypeAdapter. getDestinationZoneId(OdDataIterator<?> odIterator)Returns the Id of the destination zone for the current cell in the OD destinationstatic Optional<Long>PathOutputTypeAdapter. getDestinationZoneId(OdDataIterator<?> odPathIterator)Returns the Id of the destination zone for the current cell in the OD path matrixstatic Optional<String>OdOutputTypeAdapter. getDestinationZoneXmlId(OdDataIterator<?> odIterator)Returns the XML Id of the destination zone for the current OD destinationstatic Optional<String>PathOutputTypeAdapter. getDestinationZoneXmlId(OdDataIterator<?> odPathIterator)Returns the Xml Id of the destination zone for the current cell in the OD path matrixdefault Optional<String>MacroscopicLinkOutputTypeAdapter. getDownstreamNodeExternalId(MacroscopicLinkSegment linkSegment)Returns the external Id of the downstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getDownstreamNodeExternalId(T linkSegment)Returns the external Id of the downstream nodedefault Optional<Long>UntypedLinkOutputTypeAdapter. getDownstreamNodeId(T linkSegment)Returns the Id of the downstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getDownstreamNodeLocation(T linkSegment)Returns the location of the downstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getDownstreamNodeXmlId(T linkSegment)Returns the XML Id of the downstream nodeOptional<Integer>OdOutputTypeAdapterImpl. getIterationIndexForSubOutputType(SubOutputTypeEnum outputTypeEnum)ODSkimOutputType.COST: Cost is collected through the shortest path in iteration i based on the link costs of iteration i-1, so the od cost of i-1 are only known once we are in iteration i, hence this information is trailing behind one iteration, and we can only store it in i.Optional<Integer>OutputTypeAdapter. getIterationIndexForSubOutputType(SubOutputTypeEnum subOutputTypeEnum)Determine the iteration index that is relevant for the data related to the provided output type enum Generally, this equates to the actual current iteration index, but if the data for example is trailing an iteration then this will collect the correct iteration index for this data as opposed to the iteration index of the simulation itself.Optional<Integer>OutputTypeAdapterImpl. getIterationIndexForSubOutputType(SubOutputTypeEnum outputTypeEnum)Default implementation assumes that regular iteration index is used, which in most cases it true, only when for example costs are trailing one iteration behind in case they are only revealed in the next iteration this method should be overriddendefault Optional<Double>UntypedLinkOutputTypeAdapter. getLength(T linkSegment)Returns the length of the current link segmentdefault Optional<String>UntypedLinkOutputTypeAdapter. getLinkSegmentExternalId(T linkSegment)Returns the external Id of the current link segmentdefault Optional<Long>UntypedLinkOutputTypeAdapter. getLinkSegmentId(T linkSegment)Returns the Id of the current link segmentdefault Optional<Long>MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeId(MacroscopicLinkSegment linkSegment)Return the link segment type id of the current link segmentdefault Optional<String>MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeName(MacroscopicLinkSegment linkSegment)Return the link segment type name of the current link segmentdefault Optional<String>MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeXmlId(MacroscopicLinkSegment linkSegment)Return the link segment type xml id of the current link segmentdefault Optional<String>UntypedLinkOutputTypeAdapter. getLinkSegmentXmlId(T linkSegment)Returns the XML Id of the current link segmentdefault Optional<Double>MacroscopicLinkOutputTypeAdapter. getMaximumDensity(MacroscopicLinkSegment linkSegment)Returns the flow density of the current linkdefault Optional<Double>MacroscopicLinkOutputTypeAdapter. getMaximumSpeed(MacroscopicLinkSegment linkSegment, Mode mode)Returns the maximum speed through the current link segmentdefault Optional<Integer>UntypedLinkOutputTypeAdapter. getNumberOfLanes(T linkSegment)Returns the number of lanes of the current linkstatic <T> Optional<T>OdOutputTypeAdapter. getOdValue(OdDataIterator<T> odIterator)Returns the Od valuestatic Optional<String>OdOutputTypeAdapter. getOriginZoneExternalId(OdDataIterator<?> odIterator)Returns the origin zone external Id for the current cell in the OD originstatic Optional<String>PathOutputTypeAdapter. getOriginZoneExternalId(OdDataIterator<?> odPathIterator)Returns the origin zone external Id for the current cell in the OD path matrixstatic Optional<Long>OdOutputTypeAdapter. getOriginZoneId(OdDataIterator<?> odIterator)Returns the origin zone Id for the current cell in the OD originstatic Optional<Long>PathOutputTypeAdapter. getOriginZoneId(OdDataIterator<?> odPathIterator)Returns the origin zone Id for the current cell in the OD path matrixstatic Optional<String>OdOutputTypeAdapter. getOriginZoneXmlId(OdDataIterator<?> odIterator)Returns the origin zone XML Id for the current cell in the OD originstatic Optional<String>PathOutputTypeAdapter. getOriginZoneXmlId(OdDataIterator<?> odPathIterator)Returns the Xml Id of the origin zone for the current cell in the OD path matrixdefault Optional<String>UntypedLinkOutputTypeAdapter. getUpstreamNodeExternalId(T linkSegment)Returns the external Id of the upstream nodedefault Optional<Long>UntypedLinkOutputTypeAdapter. getUpstreamNodeId(T linkSegment)Returns the Id of the upstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getUpstreamNodeLocation(T linkSegment)Returns the location of the upstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getUpstreamNodeXmlId(T linkSegment)Returns the XML Id of the upstream node -
Uses of PlanItException in org.goplanit.output.configuration
Methods in org.goplanit.output.configuration that throw PlanItException Modifier and Type Method Description voidOutputTypeConfiguration. addProperty(OutputPropertyType outputProperty)Add an output property to be included in the output filesOutputTypeConfigurationOutputConfiguration. createAndRegisterOutputTypeConfiguration(OutputType outputType)Factory method to create an output configuration for a given typebooleanOutputTypeConfiguration. removeProperty(String propertyClassName)Remove an output property from the list of properties to be included in the output filebooleanOutputTypeConfiguration. removeProperty(OutputPropertyType outputProperty)Remove an output property from the list of properties to be included in the output filevoidPathOutputTypeConfiguration. setPathIdentificationType(PathOutputIdentificationType pathIdType)Set the path id typeConstructors in org.goplanit.output.configuration that throw PlanItException Constructor Description LinkOutputTypeConfiguration()Constructor Define the default output properties here.OdOutputTypeConfiguration()Constructor Define the default output properties here.OutputTypeConfiguration(OutputType outputType)OutputTypeconfiguration constructorPathOutputTypeConfiguration()Constructor Define the default output properties here. -
Uses of PlanItException in org.goplanit.output.formatter
Methods in org.goplanit.output.formatter that return PlanItException Modifier and Type Method Description protected PlanItExceptionCsvFileOutputFormatter. writeLinkResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)Write output values to the Link CSV file for the current iterationprotected PlanItExceptionCsvFileOutputFormatter. writeOdResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)Write output values to the OD CSV file for the current iterationprotected PlanItExceptionCsvFileOutputFormatter. writePathResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)Write output values to the Path CSV file for the current iterationMethods in org.goplanit.output.formatter that throw PlanItException Modifier and Type Method Description static OutputFormatterOutputFormatterFactory. createOutputFormatter(String OutputFormatterCanonicalClassName)Create an output formatter based on the passed in class namevoidMemoryOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Close all resources used in this formattervoidOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Close resources to store resultsprotected StringFileOutputFormatter. generateOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId)Generates the name of an output file.protected StringFileOutputFormatter. generateOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId, int iteration)Generates the name of an output file.ObjectMemoryOutputFormatter. getOutputDataValue(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType, OutputPropertyType outputProperty, Object[] keyValues)Get a specified data valueintMemoryOutputFormatter. getPositionOfOutputKeyProperty(OutputType outputType, OutputPropertyType outputKeyProperty)Returns the position of a property type in the output key property arrayintMemoryOutputFormatter. getPositionOfOutputValueProperty(OutputType outputType, OutputPropertyType outputValueProperty)Returns the position of a property type in the output values property arrayvoidMemoryOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Opens all resources used in the formattervoidOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Open resources to store resultsvoidBaseOutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)Write data to output filevoidOutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)Persist the output data based on the passed in configuration and adapter (contained in the configuration)protected abstract voidBaseOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected voidMemoryOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected abstract voidBaseOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to the CSV fileprotected voidMemoryOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to Map in memoryprotected abstract voidBaseOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the CSV fileprotected voidMemoryOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the Map in memoryprotected abstract voidBaseOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write OD Path results for the time period to the CSV fileprotected voidMemoryOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Path results for the time period to the CSV fileprotected abstract voidBaseOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV fileprotected voidMemoryOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV file -
Uses of PlanItException in org.goplanit.output.property
Methods in org.goplanit.output.property that throw PlanItException Modifier and Type Method Description static OutputPropertyTypeOutputPropertyType. fromHeaderName(String name)Returns the enumeration value associated with a specified header name (the header name in input and output files)static Optional<Integer>IterationIndexOutputProperty. getIterationIndex(TrafficAssignment trafficAssignment)Returns the current iteration indexstatic Optional<Long>ModeIdOutputProperty. getModeId(Mode mode)Returns the Id of the current modestatic Optional<Long>RunIdOutputProperty. getRunId(TrafficAssignment trafficAssignment)Returns the current run idstatic Optional<String>TimePeriodExternalIdOutputProperty. getTimePeriodExternalId(TimePeriod timePeriod)Returns the current time period external Idstatic Optional<Long>TimePeriodIdOutputProperty. getTimePeriodId(TimePeriod timePeriod)Returns the current time period Idstatic Optional<String>TimePeriodXmlIdOutputProperty. getTimePeriodXmlId(TimePeriod timePeriod)Returns the current time period xml Idstatic OutputPropertyOutputProperty. of(String propertyClassName)Generate the appropriate BaseOutputProperty object from a specified class namestatic OutputPropertyOutputProperty. of(OutputPropertyType outputProperty)Generate the appropriate BaseOutputProperty object from a specified enumeration value -
Uses of PlanItException in org.goplanit.path.choice
Methods in org.goplanit.path.choice that throw PlanItException Modifier and Type Method Description TPathChoiceBuilder. build()Build the path choiceprotected abstract voidPathChoiceBuilder. buildSubComponents(T pathChoiceInstance)call to build and configure all sub components of this builderprotected voidStochasticPathChoiceBuilder. buildSubComponents(StochasticPathChoice pathChoiceInstance)call to build and configure all sub components of this buildervoidPathChoiceConfigurator. configure(PathChoice pathChoice)Needed to avoid issues with generics, although it should be obvious that T extends SmoothingLogitChoiceModelConfigurator<? extends LogitChoiceModel>StochasticPathChoiceConfigurator. createAndRegisterLogitModel(String logitChoiceModelType)create and register the logit model of choicestatic PathChoiceBuilder<? extends PathChoice>PathChoiceBuilderFactory. createBuilder(String pathChoiceType, IdGroupingToken projectToken, InputBuilderListener inputBuilder)Create a builder for given path choice typestatic PathChoiceConfigurator<? extends PathChoice>PathChoiceConfiguratorFactory. createConfigurator(String pathChoiceType)Create a configurator for given path choicetypeprotected Configurator<StochasticPathChoice>StochasticPathChoiceBuilder. createConfigurator()Allow derived classes to provide their own configurator for this builder, by default we create a base class configuratorprotected LogitChoiceModelStochasticPathChoiceBuilder. createLogitChoiceModelInstance(StochasticPathChoiceConfigurator configurator)create a logit model instance based on passed in configuratorprotected TPathChoiceBuilder. createPathChoiceInstance()Factory method to create the instance of the desired typeConstructors in org.goplanit.path.choice that throw PlanItException Constructor Description PathChoiceBuilder(Class<T> pathChoiceClass, IdGroupingToken projectToken, InputBuilderListener inputBuilderListener)ConstructorStochasticPathChoiceBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilderListener)Constructor -
Uses of PlanItException in org.goplanit.path.choice.logit
Methods in org.goplanit.path.choice.logit that throw PlanItException Modifier and Type Method Description voidLogitChoiceModelConfigurator. configure(LogitChoiceModel logitChoiceModel)Needed to avoid issues with generics, although it should be obvious that T extends logit choice modelstatic LogitChoiceModelConfigurator<? extends LogitChoiceModel>LogitChoiceModelConfiguratorFactory. createConfigurator(String logitChoiceModelType)Create a configurator for given logit choice model type -
Uses of PlanItException in org.goplanit.project
Methods in org.goplanit.project that throw PlanItException Modifier and Type Method Description DemandsCustomPlanItProject. createAndRegisterDemands(Zoning zoning, TransportLayerNetwork<?,?> network)Create and register demands to the projectDemandsPlanItProjectInput. createAndRegisterDemands(Zoning zoning, TransportLayerNetwork<?,?> network)Create and register demands to the project inputsTransportLayerNetwork<?,?>CustomPlanItProject. createAndRegisterInfrastructureNetwork(String infrastructureNetworkType)Create and register an infrastructure based network on the projectTransportLayerNetwork<?,?>PlanItProjectInput. createAndRegisterInfrastructureNetwork(String infrastructureNetworkType)Create and register an infrastructure based network on the project inputInitialLinkSegmentCostCustomPlanItProject. createAndRegisterInitialLinkSegmentCost(TransportLayerNetwork<?,?> network, String fileName)Create and register initial link segment costs from a (single) file which we assume are available in the native xml/csv output format as provided in this projectInitialLinkSegmentCostCustomPlanItProject. createAndRegisterInitialLinkSegmentCost(TransportLayerNetwork<?,?> network, String fileName, TimePeriod timePeriod)Create and register initial link segment costs from a (single) file and register it to the provided time periodInitialLinkSegmentCostPlanItProjectInput. createAndRegisterInitialLinkSegmentCost(TransportLayerNetwork<?,?> network, String fileName)Create and register initial link segment costs from a (single) file which we assume are available in the native XML/CSV output format as provided in this project.protected InitialLinkSegmentCostPlanItProjectInput. createAndRegisterInitialLinkSegmentCost(TransportLayerNetwork<?,?> network, String fileName, TimePeriod timePeriod)Create and register initial link segment costs from a (single) file for all time periods (which are assumed are sorted by start time)OdPathSetsCustomPlanItProject. createAndRegisterOdPathSets(TransportLayer networkLayer, Zoning zoning, String odPathSetInputPath)Create and register the OD path sets as populated by the input builder through the path sourceOdPathSetsPlanItProjectInput. createAndRegisterOdPathSets(TransportLayer networkLayer, Zoning zoning, String odPathSetInputPath)Create and register the OD path sets on the project inputOutputFormatterCustomPlanItProject. createAndRegisterOutputFormatter(String outputFormatterType)Create and register an output formatter instance of a given typeRoutedServicesCustomPlanItProject. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)Create and register routed services to the projectRoutedServicesPlanItProjectInput. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)Create and register routed services to the project inputsServiceNetworkCustomPlanItProject. createAndRegisterServiceNetwork(MacroscopicNetwork network)Create and register service networks to the projectServiceNetworkPlanItProjectInput. createAndRegisterServiceNetwork(MacroscopicNetwork network)Create and register service networks to the project inputsTrafficAssignmentConfigurator<? extends TrafficAssignment>CustomPlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, TransportLayerNetwork<?,?> theNetwork)Create and register a traffic assignment instance of a given typeZoningCustomPlanItProject. createAndRegisterZoning(TransportLayerNetwork<?,?> network)Create and register the zoning system on the networkZoningPlanItProjectInput. createAndRegisterZoning(TransportLayerNetwork<?,?> infrastructureNetwork)Create and register the zoning system on the network and project inputvoidCustomPlanItProject. executeAllTrafficAssignments()Execute all registered traffic assignments Top-level error recording is done in this class.voidCustomPlanItProject. registerEligibleTrafficComponentClass(Class<? extends PlanitComponent<?>> theClazz)Register a class that we allow to be instantiated as a concrete implementation of a traffic assignment component that can be used in PLANit -
Uses of PlanItException in org.goplanit.sdinteraction.smoothing
Methods in org.goplanit.sdinteraction.smoothing that throw PlanItException Modifier and Type Method Description voidSmoothingConfigurator. configure(Smoothing smoothing)Needed to avoid issues with generics, although it should be obvious that T extends Smoothingstatic SmoothingConfigurator<? extends Smoothing>SmoothingConfiguratorFactory. createConfigurator(String smoothingType)Create a configurator for given smoothing type -
Uses of PlanItException in org.goplanit.supply.fundamentaldiagram
Methods in org.goplanit.supply.fundamentaldiagram that throw PlanItException Modifier and Type Method Description voidFundamentalDiagramConfigurator. configure(FundamentalDiagramComponent fundamentalDiagram)Needed to avoid issues with generics, although it should be obvious that T extends FundamentalDiagramstatic FundamentalDiagramConfigurator<? extends FundamentalDiagramComponent>FundamentalDiagramConfiguratorFactory. createConfigurator(String fundamentalDiagramType)Create a configurator for given fundamental diagram typevoidFundamentalDiagramComponent. onPlanitComponentEvent(PlanitComponentEvent event)Registered for PopulateFundamentalDiagramEvent which allows the component to initialise all the default available Fds based on the network layer it is registered for. -
Uses of PlanItException in org.goplanit.supply.network.nodemodel
Methods in org.goplanit.supply.network.nodemodel that throw PlanItException Modifier and Type Method Description voidNodeModelConfigurator. configure(NodeModelComponent nodeModel)Needed to avoid issues with generics, although it should be obvious that T extends NodeModelstatic NodeModelConfigurator<? extends NodeModelComponent>NodeModelConfiguratorFactory. createConfigurator(String nodeModelType)Create a configurator for given node model type -
Uses of PlanItException in org.goplanit.time
Constructors in org.goplanit.time that throw PlanItException Constructor Description TimePeriodImpl(IdGroupingToken groupId, long startTimeSeconds, long durationSeconds)ConstructorTimePeriodImpl(IdGroupingToken groupId, String description, long startTimeSeconds, long durationSeconds)Constructor -
Uses of PlanItException in org.goplanit.tntp
Methods in org.goplanit.tntp that throw PlanItException Modifier and Type Method Description voidTntpMain. execute(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, String linkOutputFilename, String odOutputFilename, String odPathOutputFilename, boolean persistZeroFlow, int maxIterations, double epsilon, Unit outputCostTimeUnit, double defaultMaximumSpeed)Top-level method which runs PLANit for TNTP format input -
Uses of PlanItException in org.goplanit.tntp.converter.demands
Methods in org.goplanit.tntp.converter.demands that throw PlanItException Modifier and Type Method Description DemandsTntpDemandsReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkConstructors in org.goplanit.tntp.converter.demands that throw PlanItException Constructor Description TntpDemandsReader(String demandFileLocation)Constructor -
Uses of PlanItException in org.goplanit.tntp.converter.network
Methods in org.goplanit.tntp.converter.network that throw PlanItException Modifier and Type Method Description TransportLayerNetwork<?,?>TntpNetworkReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkConstructors in org.goplanit.tntp.converter.network that throw PlanItException Constructor Description TntpNetworkReader(String networkFileLocation, String nodeCoordinateFileLocation)ConstructorTntpNetworkReader(String networkFileLocation, String nodeCoordinateFileLocation, TntpNetworkReaderSettings networkSettings)Constructor -
Uses of PlanItException in org.goplanit.tntp.converter.zoning
Methods in org.goplanit.tntp.converter.zoning that throw PlanItException Modifier and Type Method Description ZoningTntpZoningReader. read()parse the network based on the configuration of the implementing class to yield a PLANit networkConstructors in org.goplanit.tntp.converter.zoning that throw PlanItException Constructor Description TntpZoningReader(String networkFileLocation)Constructor -
Uses of PlanItException in org.goplanit.tntp.input
Methods in org.goplanit.tntp.input that throw PlanItException Modifier and Type Method Description voidTntpInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)Whenever a project component is created this method will be invokedprotected voidTntpInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)Populates the Demands object from the input fileprotected voidTntpInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork macroscopicNetwork)Creates the physical network object from the data in the input fileprotected voidTntpInputBuilder. populatePhysicalCost(AbstractPhysicalCost costComponent, MacroscopicNetwork parentNetwork)Populate the BPR parametersprotected voidTntpInputBuilder. populateZoning(Zoning zoning, Object parameter1)Creates the Zoning object and connectoids from the data in the network file In TNTP this method does not need to read a TAZ file.Constructors in org.goplanit.tntp.input that throw PlanItException Constructor Description TntpInputBuilder(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, String standardResultsFileLocation, Map<NetworkFileColumnType,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, double defaultMaximumSpeed)ConstructorTntpInputBuilder(String networkFileLocation, String demandsFileLocation, String nodeCoordinateFileLocation, Map<NetworkFileColumnType,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)ConstructorTntpInputBuilder(String networkFileLocation, String demandFileLocation, Map<NetworkFileColumnType,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, double defaultMaximumSpeed)ConstructorTntpInputBuilder(String networkFileLocation, String demandFileLocation, Map<NetworkFileColumnType,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)Constructor -
Uses of PlanItException in org.goplanit.tntp.output.formatter
Methods in org.goplanit.tntp.output.formatter that throw PlanItException Modifier and Type Method Description voidCSVOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Close output CSV file for a specified output type configurationvoidCSVOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Open output CSV file for specified output type configuration.protected voidCSVOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected voidCSVOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to the CSV fileprotected voidCSVOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the CSV fileprotected voidCSVOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Path results for the time period to the CSV fileprotected voidCSVOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV fileConstructors in org.goplanit.tntp.output.formatter that throw PlanItException Constructor Description CSVOutputFormatter(IdGroupingToken groupId)Base constructor -
Uses of PlanItException in org.goplanit.tntp.project
Constructors in org.goplanit.tntp.project that throw PlanItException Constructor Description TntpProject(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, Map<NetworkFileColumnType,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)ConstructorTntpProject(String networkFileLocation, String demandFileLocation, Map<NetworkFileColumnType,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)Constructor -
Uses of PlanItException in org.goplanit.utils.args
Methods in org.goplanit.utils.args that throw PlanItException Modifier and Type Method Description static Map<String,String>ArgumentParser. convertArgsToMap(String[] args)Convert program arguments into a Map, with signature:<key>=/-/:<value>, e.g.static Map<String,String>ArgumentParser. convertArgsToMap(String[] args, ArgumentStyle style)Convert program arguments into a Map, based on given styleprotected static Map<String,String>ArgumentParser. convertArgsToMapDefaultStyle(String[] args)Convert program arguments into a Map, with signature:<key>=/-/:<value>, e.g.protected static Map<String,String>ArgumentParser. convertArgsToMapDoubleHyphenStyle(String[] args)Convert program arguments into a Map, with signature:--<key> <value>, e.g. -
Uses of PlanItException in org.goplanit.utils.builder
Methods in org.goplanit.utils.builder that throw PlanItException Modifier and Type Method Description abstract TBuilder. build()Build an instance of class Tprotected voidConfigurator. callVoidMethod(T instance, String methodName, Object... parameters)Call a void method on the toConfigure class instanceprotected Class<?>[]Configurator. collectParameterTypes(Object... parameters)collect the parameter types of the passed in object in their original ordervoidConfigurator. configure(T toConfigureInstance)Configure the passed in instance with the registered method callsprotected abstract Configurator<T>Builder. createConfigurator()Allow derived classes to provide their own configurator for this builder, by default we create a base class configurator -
Uses of PlanItException in org.goplanit.utils.cumulatives
Methods in org.goplanit.utils.cumulatives that throw PlanItException Modifier and Type Method Description voidPiecewiseLinearCumulativeCurve. add(CumulativePoint cumulativePoint, double timeInSecondsEpsilon)append a new cumulative point to the curve which must be later or equal than the current latest point given the passed in timeInSecondsEpsilon -
Uses of PlanItException in org.goplanit.utils.exceptions
Methods in org.goplanit.utils.exceptions that throw PlanItException Modifier and Type Method Description static voidPlanItException. throwIf(boolean condition, String message, Object... objectArgs)Throw a planitException if condition is metstatic voidPlanItException. throwIfNull(Object object, String message)Throw a planitException if object is nullstatic voidPlanItException. throwIfNull(Object object, String message, Object... objectArgs)Throw a planitException if object is null -
Uses of PlanItException in org.goplanit.utils.function
Methods in org.goplanit.utils.function that throw PlanItException Modifier and Type Method Description voidPlanitExceptionConsumer. accept(T t)RPlanitExceptionFunction. apply(T t) -
Uses of PlanItException in org.goplanit.utils.functionalinterface
Methods in org.goplanit.utils.functionalinterface that throw PlanItException Modifier and Type Method Description voidQuadConsumer. accept(T t, U u, V v, W w)Performs this operation on the given arguments -
Uses of PlanItException in org.goplanit.utils.geo
Methods in org.goplanit.utils.geo that throw PlanItException Modifier and Type Method Description static org.locationtech.jts.geom.LineStringPlanitJtsUtils. convertToJtsLineString(org.opengis.geometry.coordinate.LineString openGisLineString)Convert an open gis line string object to a JTS Gis LineString instance by copying the internal coordinatesstatic org.locationtech.jts.geom.LineStringPlanitJtsUtils. convertToLineString(org.locationtech.jts.geom.MultiLineString jtsMultiLineString)Cast a JTS MultiLineString with a single entry into a JTS LineString instance if validstatic org.locationtech.jts.geom.Coordinate[]PlanitJtsUtils. copyCoordinatesFrom(int offset, org.locationtech.jts.geom.LineString geometry)copy the coordinates in the line string starting at the given offset (included)static org.locationtech.jts.geom.Coordinate[]PlanitJtsUtils. copyCoordinatesFromUpToNotIncluding(int offset, int untilPoint, org.locationtech.jts.geom.LineString geometry)copy the coordinates in the line string from-to the given locations, the locations are includedstatic org.locationtech.jts.geom.Coordinate[]PlanitJtsUtils. copyCoordinatesUpToNotIncluding(int untilPoint, org.locationtech.jts.geom.LineString geometry)copy the coordinates in the line string until the given location, the location is includedstatic org.locationtech.jts.geom.LineStringPlanitJtsUtils. createCopyWithoutCoordinatesAfter(int endIndex, org.locationtech.jts.geom.LineString geometry)Remove all coordinates in the line string after but not including the passed in index.static org.locationtech.jts.geom.LineStringPlanitJtsUtils. createCopyWithoutCoordinatesAfter(org.locationtech.jts.geom.Point position, org.locationtech.jts.geom.LineString geometry)Remove all coordinates in the line string after but not including the passed in position.static org.locationtech.jts.geom.LineStringPlanitJtsUtils. createCopyWithoutCoordinatesBefore(int startIndex, org.locationtech.jts.geom.LineString geometry)Remove all coordinates in the line string up to but not including the passed in index.static org.locationtech.jts.geom.LineStringPlanitJtsUtils. createCopyWithoutCoordinatesBefore(org.locationtech.jts.geom.Point position, org.locationtech.jts.geom.LineString geometry)Remove all coordinates in the line string up to but not including the first occurrence of the passed in position.org.locationtech.jts.geom.LineSegmentPlanitJtsCrsUtils. createExtendedLineSegment(org.locationtech.jts.geom.LineSegment source, double extensionInMeters, boolean extendStart, boolean extendEnd)extend the given line segment in one or two directions with a given distance in meters.static org.locationtech.jts.geom.LineStringPlanitJtsUtils. createLineString(String value, char ts, char cs)Based on the csv string construct a JTS line stringstatic org.locationtech.jts.geom.LineStringPlanitJtsUtils. createLineString(List<Double> coordinateList)Create a JTS line string from the doubles passed in (list of doubles containing x1,y1,x2,y2,etc.static org.locationtech.jts.geom.LineStringPlanitJtsUtils. createLineString(org.locationtech.jts.geom.Coordinate... coordinates)Create a line string from the passed in coordinatesstatic org.locationtech.jts.geom.LineStringPlanitJtsUtils. createLineStringFromCsvString(String value, String ts, String cs)Based on the csv string construct a line stringstatic org.locationtech.jts.geom.PointPlanitJtsUtils. createPoint(Number xCoordinate, Number yCoordinate)Create JTS point object from X- and Y-coordinatesstatic org.locationtech.jts.geom.Coordinate[]PlanitJtsUtils. directPositionsToCoordinates(List<org.opengis.geometry.DirectPosition> positions)Convert OpenGIS directPosition to JTS coordinatesstatic <T extends EdgeSegment>
org.locationtech.jts.geom.LineSegmentPlanitGraphGeoUtils. extractClosestLineSegmentTo(org.locationtech.jts.geom.Geometry referenceGeometry, T edgeSegment, PlanitJtsCrsUtils geoUtils)Extract the JTS line segment from the edge segment that is closest to the reference geometry in its intended direction.static EdgePlanitGraphGeoUtils. findEdgeClosest(org.locationtech.jts.geom.Geometry geometry, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)Find the edge closest to the passed in geometry using a projection from any existing coordinate on the geometry to the geometry of the link.static EdgePlanitGraphGeoUtils. findEdgeClosestToLineString(org.locationtech.jts.geom.LineString lineString, Collection<? extends Edge> edges, 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 EdgePlanitGraphGeoUtils. findEdgeClosestToPoint(org.locationtech.jts.geom.Point point, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)Find the edge closest to the passed in point using a projection from any existing coordinate on the geometry to the geometry of the link.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.static org.opengis.referencing.operation.MathTransformPlanitJtsUtils. findMathTransform(org.opengis.referencing.crs.CoordinateReferenceSystem sourceCRS, org.opengis.referencing.crs.CoordinateReferenceSystem destinationCRS)Convenience method that wraps the CRS.findMathTransform by catching exceptions and producing a planit excepion only as well as allowing for lenient transformerprotected static <T> Map<T,Double>PlanitGraphGeoUtils. findPlanitEntitiesDistance(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, PlanitJtsCrsUtils geoUtils)Find the distances to the line string and the geometry for all given PLANit entities with a supported geometry from the provided collection.protected static <T> Map<T,Double>PlanitGraphGeoUtils. findPlanitEntitiesDistance(org.locationtech.jts.geom.Point referencePoint, Collection<? extends T> planitEntities, PlanitJtsCrsUtils geoUtils)Find the distances to the reference point and the geometry for all given PLANit entities with a supported geometry from the provided collection.protected static <T> Set<? extends T>PlanitGraphGeoUtils. findPlanitEntitiesWithinDistance(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, Double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)Find all PLANit entities within striking distance of the line string from the available entities based on the max distance provided.protected static <T> Set<? extends T>PlanitGraphGeoUtils. findPlanitEntitiesWithinDistance(org.locationtech.jts.geom.Point referencePoint, Collection<? extends T> planitEntities, Double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)Find all PLANit entities within striking distance of the line string from the available entities based on the max distance provided.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.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.protected static <T> DoublePlanitGraphGeoUtils. findPlanitEntityDistance(org.locationtech.jts.geom.Point referencePoint, T planitEntity, 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.doublePlanitJtsCrsUtils. getClosestDistanceInMeters(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.Geometry geometry)find the closest distance in meters from the point to the geometry.doublePlanitJtsCrsUtils. getClosestDistanceInMetersMultiLineString(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.MultiLineString geometry)find the closest distance in meters from the point to the geometry.Here we project onto the geometry, so we find the actual closest distance instead of merely finding the closest modelled coordinated within the geometry.doublePlanitJtsCrsUtils. getClosestDistanceInMetersToPolygon(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.Polygon geometry)find the closest distance in meters from the point to the geometry.Here we project onto the geometry, so we find the actual closest distance instead of merely finding the closest modelled coordinated within the geometry.doublePlanitJtsCrsUtils. getClosestExistingCoordinateDistanceInMeters(org.locationtech.jts.geom.Point point, org.locationtech.jts.geom.Geometry geometry)find the distance between the closest coordinate on the geometry's coordinates.org.locationtech.jts.geom.CoordinatePlanitJtsCrsUtils. getClosestExistingCoordinateToPoint(org.locationtech.jts.geom.Point point, org.locationtech.jts.geom.Geometry geometry)find the coordinate on the geometry with the closest distance to the reference point.<T extends org.locationtech.jts.geom.LineString>
org.locationtech.jts.geom.CoordinatePlanitJtsCrsUtils. getClosestExistingLineStringCoordinateToGeometry(org.locationtech.jts.geom.Geometry referenceGeometry, T lineString)Find the coordinate on the line string with the closest distance to the reference referenceGeometry.org.locationtech.jts.linearref.LinearLocationPlanitJtsCrsUtils. getClosestGeometryExistingCoordinateToProjectedLinearLocationOnLineString(org.locationtech.jts.geom.Geometry referenceGeometry, org.locationtech.jts.geom.LineString linearGeometry)find the closest location from any existing coordinate of the reference geometry to the line string geometry as a linear location.org.locationtech.jts.geom.CoordinatePlanitJtsCrsUtils. getClosestPojectedCoordinateOnPolygon(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.Polygon polygon)find the closest location from the reference coordinate to the polygon expressed as a linear location.org.locationtech.jts.geom.CoordinatePlanitJtsCrsUtils. getClosestProjectedCoordinateOnGeometry(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.Geometry geometry)find the closest projected coordinate from the reference point to the geometry.org.locationtech.jts.geom.CoordinatePlanitJtsCrsUtils. getClosestProjectedCoordinateOnLineString(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.LineString lineString)find the closest projected coordinate from the reference point to the line string.doublePlanitJtsCrsUtils. getClosestProjectedDistanceInMetersToLineString(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.LineString geometry)find the closest distance in meters from the point to the geometry.Here we project onto the geometry, so we find the actual closest distance instead of merely finding the closest modelled coordinated within the geometry.org.locationtech.jts.linearref.LinearLocationPlanitJtsCrsUtils. getClosestProjectedLinearLocationOnGeometry(org.locationtech.jts.geom.Point referencePoint, org.locationtech.jts.geom.Geometry geometry)find the closest location from the reference point to the geometry expressed as a linear location.org.locationtech.jts.linearref.LinearLocationPlanitJtsCrsUtils. getClosestProjectedLinearLocationOnLineString(org.locationtech.jts.geom.Coordinate referenceCoordinate, org.locationtech.jts.geom.LineString lineString)Find the closest location from the reference coordinate to the line string expressed as a linear location.org.locationtech.jts.linearref.LinearLocationPlanitJtsCrsUtils. getClosestProjectedLinearLocationOnPolygon(org.locationtech.jts.geom.Coordinate referenceCoordinate, org.locationtech.jts.geom.Polygon polygon)Find the closest location from the reference coordinate to the polygon expressed as a linear location.static intPlanitJtsUtils. getCoordinateIndexOf(org.locationtech.jts.geom.Coordinate coordinate, org.locationtech.jts.geom.Coordinate[] coordinates)collect the index of the given coordinate from the arraydoublePlanitJtsCrsUtils. getDistanceInKilometres(Vertex vertex1, Vertex vertex2)Compute the distance in kilometres between two vertices assuming the positions are set and based on the same crs as registered on this class instancedoublePlanitJtsCrsUtils. getDistanceInKilometres(org.locationtech.jts.geom.LineString geometry)Compute the length of the line string by traversing all nodes and computing the segment by segment distances TODO: find out if a faster way is possibledoublePlanitJtsCrsUtils. getDistanceInKilometres(org.locationtech.jts.geom.Point startPosition, org.locationtech.jts.geom.Point endPosition)Compute the distance in kilometres between two positions assuming the positions are provided in the same crs as registered on this class instancedoublePlanitJtsCrsUtils. getDistanceInMetres(org.locationtech.jts.geom.Coordinate startCoordinate, org.locationtech.jts.geom.Coordinate endCoordinate)Compute the distance in metres between two (JTS) coordinates assuming the positions are provided in the same crs as registered on this class instancedoublePlanitJtsCrsUtils. getDistanceInMetres(org.locationtech.jts.geom.Point startPosition, org.locationtech.jts.geom.Point endPosition)Compute the distance in metres between two (JTS) points assuming the positions are provided in the same crs as registered on this class instancebooleanPlanitJtsCrsUtils. isGeometryLeftOf(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Coordinate coordA, org.locationtech.jts.geom.Coordinate coordB)Verify if the provided geometry resides left of the line defined from coordA to coordB.booleanPlanitJtsCrsUtils. isGeometryNearBoundingBox(org.locationtech.jts.geom.Geometry geometry, org.locationtech.jts.geom.Envelope boundingBox, double maxDistanceMeters)Verify if any existing coordinate on the passed in geometry is within the maximum provided distance of the also provided bounding boxstatic booleanPlanitGraphGeoUtils. isVertexNearBoundingBox(Vertex node, org.locationtech.jts.geom.Envelope boundingBox, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)Verify if node is within maximum distance of provided bounding boxstatic org.locationtech.jts.geom.Coordinate[]PlanitJtsUtils. makeClosed2D(org.locationtech.jts.geom.Coordinate[] coordArray)create a copy of the passed in coord array and close it by adding a new coordinate at the end that matches the first. -
Uses of PlanItException in org.goplanit.utils.graph
Methods in org.goplanit.utils.graph that throw PlanItException Modifier and Type Method Description default EdgeEdgeFactory. registerNew(Vertex vertexA, Vertex vertexB)Create new edge to graph identified via its id, (not registered on vertices)EdgeEdgeFactory. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated)booleanEdge. replace(Vertex vertextoReplace, Vertex vertexToReplaceWith)Replace one of the vertices of the link -
Uses of PlanItException in org.goplanit.utils.graph.directed
Methods in org.goplanit.utils.graph.directed that throw PlanItException Modifier and Type Method Description voidEdgeSegments. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)Register a edge segment (not registered on nodes and edge)default DirectedEdgeDirectedEdgeFactory. registerNew(DirectedVertex vertexA, DirectedVertex vertexB)Create and register new directed edge to graph identified via its id, (not registered on vertices)DirectedEdgeDirectedEdgeFactory. registerNew(DirectedVertex vertexA, DirectedVertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.utils.graph.modifier
Methods in org.goplanit.utils.graph.modifier that throw PlanItException Modifier and Type Method Description <Ex extends E>
ExGraphModifier. breakEdgeAt(V vertexToBreakAt, Ex edgeToBreak, PlanitJtsCrsUtils geoUtils)Break the passed in edge by inserting the passed in vertex in between.default <Ex extends E>
Map<Long,Set<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,Set<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.default voidGraphModifier. removeDanglingSubGraphs()remove any dangling sub graphs from the graph if they exist and reorder the ids if neededvoidGraphModifier. removeDanglingSubGraphs(Integer belowSize, Integer aboveSize, boolean alwaysKeepLargest)remove any dangling subgraphs below a given size from the graph if they exist and subsequently reorder the internal ids if neededvoidGraphModifier. removeSubGraphOf(V referenceVertex)remove the (sub)graph in which the passed in vertex resides. -
Uses of PlanItException in org.goplanit.utils.misc
Methods in org.goplanit.utils.misc that throw PlanItException Modifier and Type Method Description static File[]FileUtils. getFilesWithExtensionFromDir(String pathToDir, String fileExtension)Collect all files from a directory with the given extension -
Uses of PlanItException in org.goplanit.utils.mode
Methods in org.goplanit.utils.mode that throw PlanItException Modifier and Type Method Description PredefinedModeModeFactory. createPredefinedMode(IdGroupingToken groupId, PredefinedModeType modeType)create a predefined mode instance without registering it on the container.PredefinedModeModeFactory. registerNew(PredefinedModeType modeType)Create and register a new predefined mode. -
Uses of PlanItException in org.goplanit.utils.network.layer
Methods in org.goplanit.utils.network.layer that throw PlanItException Modifier and Type Method Description voidTopologicalLayer. transform(org.opengis.referencing.crs.CoordinateReferenceSystem fromCoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem toCoordinateReferenceSystem)transform all underlying geometries in the layer from the given crs to the new crs -
Uses of PlanItException in org.goplanit.utils.network.layer.macroscopic
Methods in org.goplanit.utils.network.layer.macroscopic that throw PlanItException Modifier and Type Method Description MacroscopicLinkSegmentMacroscopicLinkSegmentFactory. create(Link parentLink, boolean directionAB)Create macroscopic link segment, do not register nor register on nodes and linkMacroscopicLinkSegmentMacroscopicLinkSegmentFactory. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)Create a macroscopic link segment and register itMacroscopicLinkSegmentMacroscopicLinkSegmentFactory. registerNew(Link parentLink, MacroscopicLinkSegmentType type, boolean directionAb, boolean registerOnNodeAndLink)Create a macroscopic link segment and register it -
Uses of PlanItException in org.goplanit.utils.network.layer.modifier
Methods in org.goplanit.utils.network.layer.modifier that throw PlanItException Modifier and Type Method Description default Map<Long,Set<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,Set<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.default Map<Long,Set<E>>UntypedDirectedGraphLayerModifier. breakLinksAt(List<E> linksToBreak, V nodeToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)Break the passed in links by inserting the passed in node in between.default voidTopologicalLayerModifier. removeDanglingSubnetworks()remove any dangling subnetworks from the layer if they exist and subsequently reorder the internal ids if neededvoidTopologicalLayerModifier. removeDanglingSubnetworks(Integer belowSize, Integer aboveSize, boolean alwaysKeepLargest)remove any dangling subnetworks below a given size from the network if they exist and subsequently reorder the internal ids if needed -
Uses of PlanItException in org.goplanit.utils.network.layer.physical
Methods in org.goplanit.utils.network.layer.physical that throw PlanItException Modifier and Type Method Description LinkSegmentLinkSegmentFactory. create(Link parentLink, boolean directionAB)Create link segmentLinkSegmentLinkSegmentFactory. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)Create link segment and register it -
Uses of PlanItException in org.goplanit.utils.network.virtual
Methods in org.goplanit.utils.network.virtual that throw PlanItException Modifier and Type Method Description ConnectoidSegmentConnectoidEdge. registerConnectoidSegment(ConnectoidSegment connectoidSegment, boolean directionAB)Register connectoidSegment.Collection<ConnectoidEdge>ConnectoidEdgeFactory. registerNew(Connectoid connectoid)Create new connectoid edges from a specified connectoid to all centroids of the zones this connectoid has registered as access zone.ConnectoidSegmentConnectoidSegmentFactory. registerNew(ConnectoidEdge parent, boolean directionAB)Create and register connectoid segment in AB direction on container -
Uses of PlanItException in org.goplanit.utils.reflection
Methods in org.goplanit.utils.reflection that throw PlanItException Modifier and Type Method Description static ObjectReflectionUtils. createInstance(String className, Object... constructorParameters)Create an instance of given class name and provided constructor parametersstatic <T> TReflectionUtils. createTypedInstance(String className, Object... constructorParameters)delegates toReflectionUtils.createInstance(String, Object...)only casts result to type provided -
Uses of PlanItException in org.goplanit.utils.time
Methods in org.goplanit.utils.time that throw PlanItException Modifier and Type Method Description static longTimePeriodUtils. convertHoursToSeconds(String fourDigitHour)Convert duration to seconds given start time using the 24-hour clock -
Uses of PlanItException in org.goplanit.utils.unit
Methods in org.goplanit.utils.unit that throw PlanItException Modifier and Type Method Description static doubleTimeUnit. convertHourTo(UnitType to, double value)convert hour to...static doubleDistanceUnit. convertKmTo(UnitType to, double value)convert km to...static doubleDistanceUnit. convertMeterTo(UnitType to, double value)convert meter to...static doubleTimeUnit. convertMinuteTo(UnitType to, double value)convert minute to...static doubleVehiclesUnit. convertPcuTo(UnitType unitType, double value)Convert pcu to...static doubleTimeUnit. convertSecondTo(UnitType to, double value)convert second to...doubleDistanceUnit. convertTo(Unit to, double value)Convert one unit to the other for a given valuedoubleGroupUnit. convertTo(Unit to, double value)Convert one unit to the other for a given valuedoubleNoneUnit. convertTo(Unit to, double value)Convert one unit to the other for a given valuedoubleSrsUnit. convertTo(Unit to, double value)Convert one unit to the other for a given valuedoubleTimeUnit. convertTo(Unit to, double value)Convert one unit to the other for a given valuedoubleUnit. convertTo(Unit to, double value)Convert one unit to the other for a given valuedoubleVehiclesUnit. convertTo(Unit to, double value)Convert one unit to the other for a given valuestatic doubleVehiclesUnit. convertVehiclesTo(UnitType unitType, double value)Convert vehicles to... -
Uses of PlanItException in org.goplanit.utils.xml
Methods in org.goplanit.utils.xml that throw PlanItException Modifier and Type Method Description static Pair<XMLStreamWriter,Writer>PlanitXmlWriterUtils. createXMLWriter(Path xmlFilePath)create an xml stream writer for the given path -
Uses of PlanItException in org.goplanit.utils.zoning
Methods in org.goplanit.utils.zoning that throw PlanItException Modifier and Type Method Description Optional<Double>Connectoid. getLengthKm(Zone accessZone)length can be used to virtually assign a length to the connectoid/zone combinationbooleanConnectoid. isModeAllowed(Zone accessZone, Mode mode)Verify if a mode is allowed access to the zone via this connectoidDirectedConnectoidDirectedConnectoidFactory. registerNew(LinkSegment accessLinkSegment)Create a new directed connectoid with default length 0 and no parent zone (yet)DirectedConnectoidDirectedConnectoidFactory. registerNew(LinkSegment accessLinkSegment, Zone parentZone)Create a new directed connectoid, with default length 0DirectedConnectoidDirectedConnectoidFactory. registerNew(LinkSegment accessLinkSegment, Zone parentZone, double length)Create a new directed connectoidUndirectedConnectoidUndirectedConnectoidFactory. registerNew(Node accessNode)factory method for undirected connectoid, with default length of 0 to use between (yet unknown parent) zone and access nodeUndirectedConnectoidUndirectedConnectoidFactory. registerNew(Node accessNode, Zone parentZone)factory method for undirected connectoid, with default length of 0 to use between zone and access nodeUndirectedConnectoidUndirectedConnectoidFactory. registerNew(Node accessNode, Zone parentZone, double length)factory method for undirected connectoid -
Uses of PlanItException in org.goplanit.zoning
Methods in org.goplanit.zoning that throw PlanItException Modifier and Type Method Description booleanConnectoidImpl. isModeAllowed(Zone accessZone, Mode mode)Verify if a mode is allowed access to the zone via this connectoidDirectedConnectoidDirectedConnectoidFactoryImpl. registerNew(LinkSegment accessLinkSegment)Create a new directed connectoid with default length 0 and no parent zone (yet)DirectedConnectoidDirectedConnectoidFactoryImpl. registerNew(LinkSegment accessLinkSegment, Zone parentZone)Create a new directed connectoid, with default length 0DirectedConnectoidDirectedConnectoidFactoryImpl. registerNew(LinkSegment accessLinkSegment, Zone parentZone, double length)Create a new directed connectoidUndirectedConnectoidUndirectedConnectoidFactoryImpl. registerNew(Node accessNode)factory method for undirected connectoid, with default length of 0 to use between (yet unknown parent) zone and access nodeUndirectedConnectoidUndirectedConnectoidFactoryImpl. registerNew(Node accessNode, Zone parentZone)factory method for undirected connectoid, with default length of 0 to use between zone and access nodeUndirectedConnectoidUndirectedConnectoidFactoryImpl. registerNew(Node accessNode, Zone parentZone, double length)factory method for undirected connectoid
-