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 void
TampereNodeModel. 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 MinMaxPathResult
AcyclicMinMaxShortestPathAlgorithm. 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.ShortestPathResult
DijkstraShortestPathAlgorithm. executeOneToAll(DirectedVertex currentOrigin)
Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edgesShortestPathResult
OneToAllShortestPathAlgorithm. executeOneToAll(DirectedVertex currentOrigin)
Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edgesShortestPathResult
AStarShortestPathAlgorithm. executeOneToOne(DirectedVertex origin, DirectedVertex destination)
Construct shortest paths from source node to all other nodes in the network based on directed LinkSegment edgesShortestPathResult
OneToOneShortestPathAlgorithm. 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 OutputTypeConfiguration
TrafficAssignmentConfigurator. activateOutput(OutputType outputType)
Method that allows one to activate specific output types for persistence on the traffic assignment instanceT
TrafficAssignmentBuilder. build()
Build the traffic assignmentprotected void
TrafficAssignmentBuilder. buildSubComponents(T trafficAssignmentInstance)
call to build and configure all sub components of this builderprotected void
TrafficAssignment. 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 GapFunction
TrafficAssignmentBuilder. createGapFunctionInstance(StopCriterion stopCriterion)
create a gap function instance based on configurationprotected AbstractPhysicalCost
TrafficAssignmentBuilder. createPhysicalCostInstance()
create a physical cost instance based on configurationprotected Smoothing
TrafficAssignmentBuilder. createSmoothingInstance()
create a smoothing instance based on configurationprotected T
TrafficAssignmentBuilder. createTrafficAssignmentInstance()
Factory method to create the instance of the desired typeprotected void
TrafficAssignment. createTransportNetwork()
Initialize the transport network by combining the physical and virtual componentsprotected AbstractVirtualCost
TrafficAssignmentBuilder. createVirtualCostInstance()
create a virtual cost instance based on configurationprotected void
TrafficAssignment. disbandTransportNetwork()
detach the virtual and physical transport network againvoid
TrafficAssignment. execute()
Execute assignment, including initializing resources, running equilibration and then closing resourcesvoid
StaticTrafficAssignment. executeEquilibration()
Execute equilibration over all time periods and modesprotected abstract void
TrafficAssignment. executeEquilibration()
Run equilibration after resources initialized, including saving resultsprotected void
StaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod)
Perform assignment for a given time periodprotected abstract void
StaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modesprotected void
TrafficAssignment. finalizeAfterExecution()
Finalize all relevant traffic assignment components after execution of the assignment has endedprotected void
TrafficAssignment. initialiseBeforeExecution()
Initialize all relevant traffic assignment components before execution of the assignment commencesvoid
TrafficAssignmentConfigurator. registerInitialLinkSegmentCost(TimePeriod timePeriod, InitialModesLinkSegmentCost initialLinkSegmentCost)
Register the initial link segment cost for a specified time periodvoid
TrafficAssignmentConfigurator. registerOutputFormatter(OutputFormatter outputFormatter)
Register an output formattervoid
TrafficAssignment. 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 InteractorAccesseevoid
TrafficAssignment. 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 InteractorAccesseevoid
TrafficAssignmentConfigurator. 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 void
TrafficAssignment. verifyComponentCompatibility()
Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected abstract void
TrafficAssignment. 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 void
AlgorithmB. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modesvoid
AlgorithmBEquilibration. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
The method that performs the equilibration for a given time period using AlgorithmBprotected void
AlgorithmB. 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 void
LtmTrafficAssignmentBuilder. 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 FundamentalDiagramComponent
LtmTrafficAssignmentBuilder. createFundamentalDiagramComponentInstance(MacroscopicNetworkLayer macroscopicNetworkLayer)
create a fundamental diagram component instance based on configurationprotected PathChoice
LtmTrafficAssignmentBuilder. createPathChoiceInstance(LtmConfigurator<? extends LtmAssignment> configurator)
create a path choice instance based on configurationprotected void
LtmAssignment. verifyComponentCompatibility()
Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected void
LtmAssignment. 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 EventBasedLtmConfigurator
EventBasedLtmTrafficAssignmentBuilder. createConfigurator()
create the configurator for ELTMvoid
EventBasedLtm. 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 StaticLtmConfigurator
StaticLtmTrafficAssignmentBuilder. createConfigurator()
create the configurator for sLTMprotected void
StaticLtm. executeEquilibration()
Run equilibration after resources initialized, including saving resultsvoid
StaticLtmAssignmentStrategy. 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 void
StaticLtm. initialiseBeforeExecution()
Initialise the components before we start any assignment + create the assignment strategy (bush or path based)protected void
StaticLtm. 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 void
TraditionalStaticAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Perform assignment for a given time period using Dijkstra's algorithmprotected void
TraditionalStaticAssignment. verifyComponentCompatibility()
Verify if a supported gap function is usedprotected void
TraditionalStaticAssignment. 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 T
PlanitComponentFactory. create(String planitComponentClassName, Object[] constructorParameters)
Create PLANit componentT
PlanitComponentFactory. create(String planitComponentClassName, Object[] constructorParameters, Object... eventParameters)
Create PLANit componentvoid
PlanitComponent. 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 void
PlanitComponentListener. 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 void
Converter. convert()
Convert the reader's parsed content by passing it on to the writer.abstract void
ConverterBase. convert()
Convert the reader's content and pass it on to the writer to convert it.void
MultiConverter. 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 extendsExternalIdAble
and 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.CoordinateReferenceSystem
BaseWriterImpl. identifyDestinationCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem overwriteCrs, String countryName, org.opengis.referencing.crs.CoordinateReferenceSystem fallBackCrs)
identify what the destination Crs is supposed to be.T
ConverterReader. 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> void
BaseReaderImpl. registerBySourceId(V obj)
Stores an object by its source Id, after checking whether the external Id is a duplicatevoid
ConverterWriter. write(T entity)
write a network to the writer's output format.void
MultiConverterWriter. 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 void
PhysicalCostConfigurator. 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 void
AbstractPhysicalCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)
Initialize the cost parameter values in the networkvoid
BPRLinkTravelTimeCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)
Register the BPR cost parameter values on the PhysicalNetworkvoid
FreeFlowLinkTravelTimeCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)
Initialize the cost parameter values in the networkvoid
SteadyStateTravelTimeCost. initialiseBeforeSimulation(TransportLayerNetwork<?,?> network)
Initialize the cost parameter values in the networkvoid
AbstractPhysicalCost. 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.void
BPRLinkTravelTimeCost. populateWithCost(UntypedPhysicalLayer<?,?,?> physicalLayer, Mode mode, double[] costToFill)
populate the cost array with the BPR link travel times for all link segments for the specified modevoid
SteadyStateTravelTimeCost. 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 void
VirtualCostConfigurator. 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 void
AbstractVirtualCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)
Initialize the virtual cost componentvoid
FixedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)
Initialize the virtual cost componentvoid
SpeedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)
Initialize the virtual cost componentvoid
FixedConnectoidTravelTimeCost. 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 idvoid
SpeedConnectoidTravelTimeCost. 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 idvoid
VirtualCost. 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 int
MultiKeyPlanItData. getPositionOfOutputKeyProperty(OutputPropertyType outputKeyProperty)
Get the position of a property type in the output keys property arrayint
MultiKeyPlanItData. getPositionOfOutputValueProperty(OutputPropertyType outputValueProperty)
Get the position of a property type in the output values property arrayObject
MultiKeyPlanItData. 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 valuesvoid
MultiKeyPlanItData. putRow(Object[] outputValues, Object... keyValues)
Puts the data values into a specified rowvoid
MultiKeyPlanItData. 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 TimePeriod
Demands.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 void
GapFunctionConfigurator. configure(GapFunction gapFunction)
Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionvoid
StopCriterionConfigurator. 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 Edge
EdgeFactoryImpl. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated)boolean
EdgeImpl. 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 void
EdgeSegmentsImpl. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)DirectedEdge
DirectedEdgeFactoryImpl. 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 theGraphImpl
implementation 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)void
DirectedGraphModifierImpl. 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 neededvoid
GraphModifierImpl. 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 neededvoid
DirectedGraphModifierImpl. removeSubGraphOf(DirectedVertex referenceVertex)
remove the (sub)graph in which the passed in vertex resides.void
GraphModifierImpl. removeSubGraphOf(Vertex referenceVertex)
remove the (sub)graph in which the passed in vertex resides.protected static void
GraphModifierImpl. 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 String
PlanitWriterImpl. extractSrsName(PlanitXmlWriterSettings xmlSettings)
Extract the src name to use based on the available crs information on network and settingsprotected void
PlanitWriterImpl. initialiseIdMappingFunctions()
depending on the chosen id mapping, create the mapping functions for all id carrying entities that are persistedprotected void
PlanitWriterImpl. persist(Object xmlRootElement, Class<?> rootElementClazz, String planitSchemaName)
Persist the populated XML memory model to disk using JAXbprotected void
PlanitWriterImpl. 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 void
PlanitDemandsReader. populateDemandConfiguration()
Sets up all the configuration data from the XML demands fileprotected void
PlanitDemandsReader. populateDemandContents()
Parses the demand contents of the XMLDemands
PlanitDemandsReader. 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 PlanitIntermodalReader
PlanitIntermodalReaderFactory. create()
Factory method based on all defaults.static PlanitIntermodalReader
PlanitIntermodalReaderFactory. create(String pathDirectory, String xmlFileExtension, MacroscopicNetwork network, Zoning zoning)
Factory methodstatic PlanitIntermodalReader
PlanitIntermodalReaderFactory. create(PlanitIntermodalReaderSettings intermodalSettings)
Factory method absed on passed in network and zoning reader settingsstatic PlanitIntermodalReader
PlanitIntermodalReaderFactory. 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 networkvoid
PlanitIntermodalWriter. 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 void
PlanitNetworkReader. parseLinkAndLinkSegments(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils jtsUtils)
parse link and link segmentsvoid
PlanitNetworkReader. 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 themvoid
PlanitNetworkReader. parseLinkSegmentTypes(org.goplanit.xml.generated.XMLElementLayerConfiguration xmlLayerconfiguration, MacroscopicNetworkLayer networkLayer)
Parse the link segment typesvoid
PlanitNetworkReader. parseNodes(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer)
Create and register nodes on the networkprotected void
PlanitNetworkWriter. populateXmlNetworkLayer(org.goplanit.xml.generated.XMLElementInfrastructureLayers xmlInfrastructureLayers, MacroscopicNetworkLayerImpl physicalNetworkLayer)
Populate the network layerprotected void
PlanitNetworkWriter. populateXmlNetworkLayers(MacroscopicNetwork network)
Populate the available network layersMacroscopicNetwork
PlanitNetworkReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit networkprotected void
PlanitNetworkReader. setNetwork(TransportLayerNetwork<?,?> network)
Place network to populatevoid
PlanitNetworkWriter. 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 RoutedServices
PlanitRoutedServicesReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit networkServiceNetwork
PlanitServiceNetworkReader. 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 PlanitZoningReader
PlanitZoningReaderFactory. create()
Factory method wit all default, expected that user configures the settings afterwards to reach minimum requirements for successful parsing (input dir especially)static PlanitZoningReader
PlanitZoningReaderFactory. create(String pathDirectory, String xmlFileExtension, TransportLayerNetwork<?,?> network, Zoning zoning)
Factory methodstatic PlanitZoningReader
PlanitZoningReaderFactory. 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 void
PlanitZoningReader. populateIntermodal(Modes modes)
Parse the intermodal zones, i.e., platforms, stops, stations, etc.protected void
PlanitZoningReader. populateODZones()
Parse the OD zones from Xml element into Planit memoryZoning
PlanitZoningReader. read()
Read the zoning from diskvoid
PlanitZoningWriter. 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.LineString
PlanitOpenGisUtils. 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.LineString
PlanitOpenGisUtils. convertToOpenGisLineString(org.locationtech.jts.geom.MultiLineString jtsMultiLineString)
Converts a JTS MultiLineString with a single entry into an OpenGIS LineString instanceorg.opengis.geometry.DirectPosition
PlanitOpenGisUtils. createDirectPosition(double xCoordinate, double yCoordinate)
Create DirectPosition object from X- and Y-coordinatesorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. createLineString(String value, char ts, char cs)
Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. 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.LineString
PlanitOpenGisUtils. createLineStringFromCsvString(String value, String ts, String cs)
Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. createLineStringFromPositions(List<org.opengis.geometry.coordinate.Position> positionList)
Create a line string from the passed in positionsorg.opengis.geometry.coordinate.Position
PlanitOpenGisUtils. 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 positiondouble
PlanitOpenGisUtils. 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 instancedouble
PlanitOpenGisUtils. 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 possibledouble
PlanitOpenGisUtils. 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 instancedouble
PlanitOpenGisUtils. 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 void
PlanItInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)
Whenever a project component is created this method will be invokedprotected void
PlanItInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)
Populates the Demands object from the input fileprotected void
PlanItInputBuilder. populateInitialLinkSegmentCost(PopulateInitialLinkSegmentCostEvent initialCostEvent)
Populate the initial link segment cost from a CSV fileprotected void
PlanItInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork network)
Creates the macroscopic network object from the data in the input fileprotected void
PlanItInputBuilder. populateRoutedServices(RoutedServices routedServicesToPopulate)
Populate the routed services based on the local XML file if it can be found.protected void
PlanItInputBuilder. populateServiceNetwork(ServiceNetwork serviceNetworkToPopulate)
Populate the service network based on the local XML file if it can be found.protected void
PlanItInputBuilder. 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 void
PlanItOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Finalize the persistence after the simulation.void
PlanItOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Create the output directories and open the CSV writersvoid
PlanItOutputFormatter. resetCsvDirectory()
Call this method to delete all existing files in the CSV output directoryvoid
PlanItOutputFormatter. resetXmlDirectory()
Call this method to delete all existing files in the XML output directoryprotected void
PlanItOutputFormatter. 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 void
PlanItOutputFormatter. 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 void
PlanItOutputFormatter. 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 void
PlanItOutputFormatter. 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 void
PlanItOutputFormatter. 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 networkvoid
PlanItSimpleProject. 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.Typevalues
EnumConverter. convertFromPlanItToXmlGeneratedType(DataType type)
Convert values from Type enumeration in PLANit project to generated Typevalues enumerationstatic org.goplanit.xml.generated.Unitsvalues
EnumConverter. 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 double
XmlMacroscopicNetworkLayerHelper. 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 Double
XmlMacroscopicNetworkLayerHelper. 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.LineString
XmlMacroscopicNetworkLayerHelper. 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.CoordinateReferenceSystem
PlanitXmlJaxbParser. createPlanitCrs(String srsName)
Create a crs based on passed in srs name.boolean
PlanitXmlJaxbParser. initialiseAndParseXmlRootElement(String inputPathDirectory, String xmlFileExtension)
Parse the raw XML root (and rest) from file if not already set via constructorstatic org.goplanit.xml.generated.MotorisationType
EnumConversionUtil. planitToXml(MotorisationModeType planitMotorisationType)
convert motorisation type from PLANit to XMLstatic org.goplanit.xml.generated.TrackType
EnumConversionUtil. planitToXml(TrackModeType xmlTrackType)
convert track type from PLANit to XMLstatic org.goplanit.xml.generated.UsedToType
EnumConversionUtil. planitToXml(UseOfModeType useOfType)
convert used-to type from PLANit to XMLstatic org.goplanit.xml.generated.VehicularType
EnumConversionUtil. planitToXml(VehicularModeType planitVehicularType)
convert motorisation type from PLANit to XMLstatic org.goplanit.xml.generated.TimeUnit
EnumConversionUtil. planitToXml(Unit planitTimeUnit)
Convert time unit from PLANit to XML TimeUnitstatic MotorisationModeType
EnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.MotorisationType xmlMotorisationType)
convert motorisation type from xml to PLANitstatic TimeUnit
EnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.TimeUnit xmlTimeUnitType)
Convert TimeUnit type from XML to PLANit Unitstatic TrackModeType
EnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.TrackType xmlTrackType)
convert track type from xml to PLANitstatic UseOfModeType
EnumConversionUtil. xmlToPlanit(org.goplanit.xml.generated.UsedToType xmlUseOfType)
convert used-to type from xml to PLANitstatic VehicularModeType
EnumConversionUtil. 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.CoordinateReferenceSystem
MatsimWriter. prepareCoordinateReferenceSystem(MacroscopicNetwork network, String destinationCountry, org.opengis.referencing.crs.CoordinateReferenceSystem destinationCrs)
Prepare the Crs transformer (if any) based on the user configuration settings.protected boolean
MatsimWriter. validateNetwork(TransportLayerNetwork<?,?> referenceNetwork)
Validate the network instance available, throw or log when issues are foundvoid
MatsimIntermodalWriter. write(MacroscopicNetwork infrastructureNetwork, Zoning zoning)
Persist the PLANit network and zoning and a MATSIM compatible network to diskvoid
MatsimNetworkWriter. write(TransportLayerNetwork<?,?> network)
write a network to the writer's output format.void
MatsimZoningWriter. 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 void
MatsimNetworkWriter. writeDetailedGeometryFile(MacroscopicNetworkLayerImpl networkLayer)
Create detailed geometry file compatible with VIA viewerprotected void
MatsimZoningWriter. writeTransitScheduleXML(XMLStreamWriter xmlWriter, Zoning zoning, MacroscopicNetworkLayer networkLayer)
convert the planit public transport infrastructure to matsim transit schedule xmlprotected void
MatsimNetworkWriter. writeXmlNetworkFile(MacroscopicNetworkLayerImpl networkLayer)
write the xml MATSIM networkprotected void
MatsimZoningWriter. 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 PredefinedMode
ModeFactoryImpl. createPredefinedMode(IdGroupingToken groupId, PredefinedModeType modeType)
create a predefined mode instance without registering it on the container.PredefinedMode
ModeFactoryImpl. 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 void
UntypedPhysicalNetwork. removeDanglingSubnetworks()
remove any dangling subnetworks from the network's layers if they exist and subsequently reorder the internal ids if neededvoid
UntypedPhysicalNetwork. 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 neededboolean
MacroscopicNetworkLayerConfigurator. removeLayer(String layerXmlId)
remove a proposed layer, this means that all modes mapped to this layer are no longer mapped at allvoid
TopologicalLayerNetwork. 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 void
UntypedNetworkLayerImpl. 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 MacroscopicLinkSegment
MacroscopicLinkSegmentFactoryImpl. create(Link parentLink, boolean directionAB)
Create macroscopic link segment, do not register nor register on nodes and linkMacroscopicLinkSegment
MacroscopicLinkSegmentFactoryImpl. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)
Create a macroscopic link segment and register itMacroscopicLinkSegment
MacroscopicLinkSegmentFactoryImpl. 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.void
UntypedNetworkLayerModifierImpl. 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 LinkSegment
LinkSegmentFactoryImpl. create(Link parentLink, boolean directionAB)
Create link segmentLinkSegment
LinkSegmentFactoryImpl. 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 void
TransportModelNetwork. connectVerticesToEdge(Edge edge)
Add Edge to both verticesprotected void
TransportModelNetwork. connectVerticesToEdgeSegment(EdgeSegment edgeSegment)
Add edge segment to the incoming or outgoing set of edge segments for the related verticesprotected void
TransportModelNetwork. createAndRegisterConectoidEdgeSegments(VirtualNetwork virtualNetwork, Collection<ConnectoidEdge> connectoidEdges)
create and register the edge segments for the passed in connectoid edgesprotected void
TransportModelNetwork. disconnectVerticesFromEdge(Edge edge)
Remove Edge from both verticesprotected void
TransportModelNetwork. disconnectVerticesFromEdgeSegment(EdgeSegment edgeSegment)
Remove edge segment from the incoming or outgoing set of edge segments for the related verticesvoid
TransportModelNetwork. integrateTransportNetworkViaConnectoids()
Integrate physical and virtual links within od zones (undirected connectoid access node and centroid)void
TransportModelNetwork. 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 ConnectoidSegment
ConnectoidEdgeImpl. 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.ConnectoidSegment
ConnectoidSegmentFactoryImpl. 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 void
OsmReaderSettings. setBoundingBox(Number x1, Number x2, Number y1, Number y2)
Set an additional (more restricting) square bounding box based on provided envelopevoid
OsmReaderSettings. setInputFile(String inputFile)
Set the input file to use, which is internally converted into a URLvoid
OsmReaderSettings. 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 OsmIntermodalReader
OsmIntermodalReaderFactory. create(String inputFile, String countryName)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReader
OsmIntermodalReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)
Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populatestatic OsmIntermodalReader
OsmIntermodalReaderFactory. create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings)
Create a PLANitOsmIntermodalReader which requires the user to set the remaining required settings on the provided settings instancesstatic OsmIntermodalReader
OsmIntermodalReaderFactory. create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, PlanitOsmNetwork osmNetworkToPopulate)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReader
OsmIntermodalReaderFactory. create(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)
Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populatestatic OsmIntermodalReader
OsmIntermodalReaderFactory. 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 setvoid
OsmIntermodalReaderSettings. setBoundingBox(Number x1, Number x2, Number y1, Number y2)
Set a square bounding box based on provided envelopevoid
OsmIntermodalReaderSettings. 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 boolean
OsmNetworkLayerParser. 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 OsmNetworkReader
OsmNetworkReaderFactory. create()
Create a PLANitOSMReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving countrystatic OsmNetworkReader
OsmNetworkReaderFactory. create(String countryName)
Create a PLANitOSMReader which will create its own macroscopic network and non-locale specific defaults for any right hand driving countrystatic OsmNetworkReader
OsmNetworkReaderFactory. create(String inputFile, String countryName)
Create a PLANitOSMReader which will create its own macroscopic networkstatic OsmNetworkReader
OsmNetworkReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmNetworkReader
OsmNetworkReaderFactory. create(URL inputQuery, String countryName)
Create a PLANitOSMReader which will create its own macroscopic network by drawing from a cloud based map sourcestatic OsmNetworkReader
OsmNetworkReaderFactory. create(URL inputQuery, String countryName, PlanitOsmNetwork osmNetworkToPopulate)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmNetworkReader
OsmNetworkReaderFactory. create(OsmNetworkReaderSettings settings)
Create a PLANitOSMReader while providing an OSM network to populatestatic Node
OsmNetworkHandlerHelper. 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 Node
OsmNetworkHandlerHelper. 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 void
OsmNetworkHandler. 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.Link
OsmNetworkLayerParser. extractPartialOsmWay(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<String,String> tags, int startNodeIndex, int endNodeIndex, boolean isPartOfCircularWay, Pair<MacroscopicLinkSegmentType,MacroscopicLinkSegmentType> linkSegmentTypes)
extract OSM way's PLANit infrastructure for the part of the way that is indicated.double
OsmHighwaySettings. getDefaultSpeedLimitByOsmHighwayType(String osmWayValue)
Collect the speed limit for a given highway tag value, e.g.Double
OsmHighwaySettings. 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 availabledouble
OsmRailwaySettings. getDefaultSpeedLimitByOsmRailwayType(String osmWayValue)
Collect the speed limit for a given railway tag value, e.g.Double
OsmRailwaySettings. 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 availableDouble
OsmNetworkReaderSettings. 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 double
OsmWaySettings. getDefaultSpeedLimitByOsmWayType(String osmWayValue)
Collect the speed limit for a given railway tag value, e.g.protected Double
OsmWaySettings. 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 availableNode
OsmNetworkReaderLayerData. getPlanitNodeByLocation(org.locationtech.jts.geom.Point location)
Collect the PLANit node available for the given locationNode
OsmNetworkReaderLayerData. getPlanitNodeByOsmNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode)
Collect the planit node available for this osm node (if any)void
OsmNetworkReader. initialiseBeforeParsing()
Call this BEFORE we parse the OSM network to initialise the handler(s) properlyprotected void
OsmNetworkReaderSettings. initialiseDefaultMappingFromOsmModes2PlanitModes(Modes planitModes)
Map both road and rail modes from OSM modes to PLANit modesprotected void
OsmRailwaySettings. 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 void
OsmHighwaySettings. 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.boolean
OsmNetworkReaderLayerData. 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 linkMacroscopicNetwork
OsmNetworkReader. read()
Parse a local *.osm or *.osm.pbf file and convert it into a Macroscopic network given the configuration options that have been setvoid
OsmNetworkReaderLayerData. 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 tovoid
OsmNetworkReaderLayerData. registerPlanitNodeByLocation(org.locationtech.jts.geom.Point location, Node planitNode)
register a PLANit node based on a location only, instead of based on an osm nodevoid
OsmNetworkReaderLayerData. registerPlanitNodeByOsmNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Node planitNode)
Register a PLANit node based on an OSM node for this layerprotected void
OsmNetworkReader. removeDanglingSubNetworks()
Remove dangling subnetworks when settings dictate itvoid
OsmNetworkReader. 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 OsmZoningReader
OsmZoningReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork referenceNetwork)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. create(String inputFile, String countryName, Zoning zoningToPopulate, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. create(URL inputSource, String countryName, PlanitOsmNetwork referenceNetwork)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. create(URL inputSource, String countryName, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. create(URL inputSource, String countryName, Zoning zoningToPopulate, PlanitOsmNetwork referenceNetwork, OsmNetworkToZoningReaderData network2ZoningData)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. create(OsmPublicTransportReaderSettings settings)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. create(OsmPublicTransportReaderSettings settings, Zoning zoningToPopulate)
Create a PLANitOSMReader while providing an OSM network to populatestatic OsmZoningReader
OsmZoningReaderFactory. 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, unmodifiableZoning
OsmZoningReader. 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 void
OsmZoningReader. 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 void
OsmZoningProcessingHandler. 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 void
OsmZoningProcessingHandler. 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 boolean
OsmZoningHandlerBase. 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 void
OsmZoningHandlerBase. initialiseBeforeParsing()
Call this BEFORE we parse the OSM network to initialise the handler properlyvoid
OsmZoningPostProcessingHandler. initialiseBeforeParsing()
Call this BEFORE we parse the OSM network to initialise the handler properlyvoid
OsmZoningPreProcessingHandler. initialiseBeforeParsing()
Call this BEFORE we apply the handlervoid
OsmZoningProcessingHandler. initialiseBeforeParsing()
Call this before we parse the OSM network to initialise the handler properlyprotected void
OsmZoningHandlerBase. 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.TransferZone
TransferZoneHelper. 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.TransferZone
TransferZoneHelper. 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.TransferZone
TransferZoneHelper. 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.boolean
ConnectoidHelper. 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 fromboolean
ConnectoidHelper. 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.boolean
ConnectoidHelper. 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.void
ConnectoidHelper. 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.Point
ConnectoidHelper. 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 String
CountrySpecificDefaultUtils. extractCountryNameFromFile(Path filePath)
Validate if file is a valid resource file and its name is constructed based on a country code.protected static double
OsmSpeedLimitDefaultsByCountry. getSpeedLimitByHighwayType(OsmSpeedLimitDefaults countryDefaults, boolean outside, String type)
Collect the speed limit based on the highway type, e.g.protected static void
OsmHighwayTypeConfiguration. 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 void
OsmRailwayTypeConfiguration. 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 void
OsmHighwayTypeConfiguration. 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 void
OsmRailwayTypeConfiguration. 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 void
OsmSpeedLimitDefaultsByCountry. populateAustralianSpeedLimits()
Populate the defaults for Australiaprotected static void
OsmSpeedLimitDefaultsByCountry. populateCountrySpecificSpeedLimits()
Populate the country specific defaults for highway/railway types for supported countriesprotected static void
OsmSpeedLimitDefaultsByCountry. 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 void
OsmSpeedLimitDefaultsByCountry. 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 void
OsmSpeedLimitDefaultsByCountry. populateGlobalSpeedLimits()
populate the global defaults for highway/railway typesprotected static void
OsmSpeedLimitDefaultsByCountry. 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 defaultsvoid
PlanitOsmNetwork. 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.Point
OsmNodeUtils. 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.LineSegment
PlanitLinkSegmentUtils. 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.LinearLocation
PlanitTransferZoneUtils. 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.Geometry
OsmWayUtils. 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.Geometry
OsmWayUtils. 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.Geometry
PlanitOsmUtils. 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.Geometry
PlanitOsmUtils. 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.LineString
OsmWayUtils. 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.LineString
OsmWayUtils. 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.LineString
OsmWayUtils. 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.EntityType
PlanitTransferZoneUtils. extractOsmEntityType(TransferZone transferZone)
Extract the OSM entity type from a PLANit Transfer zonestatic org.locationtech.jts.geom.Point
OsmWayUtils. 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.Polygon
OsmWayUtils. 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.Coordinate
OsmNodeUtils. 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 Edge
OsmNodeUtils. 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 Edge
OsmNodeUtils. findEdgeClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)
Find the closest link to the node location.static Edge
OsmWayUtils. 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 Edge
OsmWayUtils. 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 Edge
PlanitOsmUtils. 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 Integer
OsmWayUtils. 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.LineSegment
OsmWayUtils. 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> T
OsmWayUtils. 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 TransferZone
PlanitTransferZoneUtils. 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 Zone
OsmNodeUtils. 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 Zone
OsmNodeUtils. findZoneClosest(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, PlanitJtsCrsUtils geoUtils)
find the closest zone to the node location.static Zone
OsmWayUtils. 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 Zone
OsmWayUtils. 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 Zone
OsmNodeUtils. 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 Zone
OsmNodeUtils. 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 Link
PlanitLinkUtils. 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 double
OsmNodeUtils. getDistanceToZone(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Zone zone, PlanitJtsCrsUtils geoUtils)
find the distance from the zone to the node.static boolean
PlanitNetworkLayerUtils. 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 boolean
PlanitNetworkLayerUtils. 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 boolean
OsmBoundingAreaUtils. 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 boolean
PlanitTransferZoneUtils. isTransferZoneAtLocation(TransferZone transferZone, org.locationtech.jts.geom.Point location)
Verify if the geometry of the transfer zone equates to the provided locationstatic boolean
PlanitTransferZoneUtils. 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 void
OsmBoundingAreaUtils. 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 double
PlanitOsmUtils. 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 OutputTypeConfiguration
OutputManager. createAndRegisterOutputTypeConfiguration(OutputType outputType)
Factory method to create an output configuration for a given typevoid
OutputManager. finaliseAfterSimulation()
Allows the output manager to finalise itself and any of its registered output formatters to after the simulation endedvoid
OutputManager. initialiseBeforeSimulation(long runId)
Allows the output manager to initialize itself and any of its registered output formatters to prepare before the simulation startsvoid
OutputManager. 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 void
OutputTypeConfiguration. addProperty(OutputPropertyType outputProperty)
Add an output property to be included in the output filesOutputTypeConfiguration
OutputConfiguration. createAndRegisterOutputTypeConfiguration(OutputType outputType)
Factory method to create an output configuration for a given typeboolean
OutputTypeConfiguration. removeProperty(String propertyClassName)
Remove an output property from the list of properties to be included in the output fileboolean
OutputTypeConfiguration. removeProperty(OutputPropertyType outputProperty)
Remove an output property from the list of properties to be included in the output filevoid
PathOutputTypeConfiguration. 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 PlanItException
CsvFileOutputFormatter. 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 PlanItException
CsvFileOutputFormatter. 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 PlanItException
CsvFileOutputFormatter. 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 OutputFormatter
OutputFormatterFactory. createOutputFormatter(String OutputFormatterCanonicalClassName)
Create an output formatter based on the passed in class namevoid
MemoryOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Close all resources used in this formattervoid
OutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Close resources to store resultsprotected String
FileOutputFormatter. generateOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId)
Generates the name of an output file.protected String
FileOutputFormatter. generateOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId, int iteration)
Generates the name of an output file.Object
MemoryOutputFormatter. getOutputDataValue(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType, OutputPropertyType outputProperty, Object[] keyValues)
Get a specified data valueint
MemoryOutputFormatter. getPositionOfOutputKeyProperty(OutputType outputType, OutputPropertyType outputKeyProperty)
Returns the position of a property type in the output key property arrayint
MemoryOutputFormatter. getPositionOfOutputValueProperty(OutputType outputType, OutputPropertyType outputValueProperty)
Returns the position of a property type in the output values property arrayvoid
MemoryOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Opens all resources used in the formattervoid
OutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Open resources to store resultsvoid
BaseOutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)
Write data to output filevoid
OutputFormatter. 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 void
BaseOutputFormatter. 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 void
MemoryOutputFormatter. 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 void
BaseOutputFormatter. 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 void
MemoryOutputFormatter. 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 void
BaseOutputFormatter. 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 void
MemoryOutputFormatter. 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 void
BaseOutputFormatter. 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 void
MemoryOutputFormatter. 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 void
BaseOutputFormatter. 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 void
MemoryOutputFormatter. 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 OutputPropertyType
OutputPropertyType. 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 OutputProperty
OutputProperty. of(String propertyClassName)
Generate the appropriate BaseOutputProperty object from a specified class namestatic OutputProperty
OutputProperty. 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 T
PathChoiceBuilder. build()
Build the path choiceprotected abstract void
PathChoiceBuilder. buildSubComponents(T pathChoiceInstance)
call to build and configure all sub components of this builderprotected void
StochasticPathChoiceBuilder. buildSubComponents(StochasticPathChoice pathChoiceInstance)
call to build and configure all sub components of this buildervoid
PathChoiceConfigurator. 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 LogitChoiceModel
StochasticPathChoiceBuilder. createLogitChoiceModelInstance(StochasticPathChoiceConfigurator configurator)
create a logit model instance based on passed in configuratorprotected T
PathChoiceBuilder. 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 void
LogitChoiceModelConfigurator. 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 Demands
CustomPlanItProject. createAndRegisterDemands(Zoning zoning, TransportLayerNetwork<?,?> network)
Create and register demands to the projectDemands
PlanItProjectInput. 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 inputInitialLinkSegmentCost
CustomPlanItProject. 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 projectInitialLinkSegmentCost
CustomPlanItProject. 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 periodInitialLinkSegmentCost
PlanItProjectInput. 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 InitialLinkSegmentCost
PlanItProjectInput. 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)OdPathSets
CustomPlanItProject. createAndRegisterOdPathSets(TransportLayer networkLayer, Zoning zoning, String odPathSetInputPath)
Create and register the OD path sets as populated by the input builder through the path sourceOdPathSets
PlanItProjectInput. createAndRegisterOdPathSets(TransportLayer networkLayer, Zoning zoning, String odPathSetInputPath)
Create and register the OD path sets on the project inputOutputFormatter
CustomPlanItProject. createAndRegisterOutputFormatter(String outputFormatterType)
Create and register an output formatter instance of a given typeRoutedServices
CustomPlanItProject. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)
Create and register routed services to the projectRoutedServices
PlanItProjectInput. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)
Create and register routed services to the project inputsServiceNetwork
CustomPlanItProject. createAndRegisterServiceNetwork(MacroscopicNetwork network)
Create and register service networks to the projectServiceNetwork
PlanItProjectInput. 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 typeZoning
CustomPlanItProject. createAndRegisterZoning(TransportLayerNetwork<?,?> network)
Create and register the zoning system on the networkZoning
PlanItProjectInput. createAndRegisterZoning(TransportLayerNetwork<?,?> infrastructureNetwork)
Create and register the zoning system on the network and project inputvoid
CustomPlanItProject. executeAllTrafficAssignments()
Execute all registered traffic assignments Top-level error recording is done in this class.void
CustomPlanItProject. 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 void
SmoothingConfigurator. 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 void
FundamentalDiagramConfigurator. 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 typevoid
FundamentalDiagramComponent. 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 void
NodeModelConfigurator. 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 void
TntpMain. 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 Demands
TntpDemandsReader. 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 Zoning
TntpZoningReader. 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 void
TntpInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)
Whenever a project component is created this method will be invokedprotected void
TntpInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)
Populates the Demands object from the input fileprotected void
TntpInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork macroscopicNetwork)
Creates the physical network object from the data in the input fileprotected void
TntpInputBuilder. populatePhysicalCost(AbstractPhysicalCost costComponent, MacroscopicNetwork parentNetwork)
Populate the BPR parametersprotected void
TntpInputBuilder. 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 void
CSVOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Close output CSV file for a specified output type configurationvoid
CSVOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Open output CSV file for specified output type configuration.protected void
CSVOutputFormatter. 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 void
CSVOutputFormatter. 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 void
CSVOutputFormatter. 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 void
CSVOutputFormatter. 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 void
CSVOutputFormatter. 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 T
Builder. build()
Build an instance of class Tprotected void
Configurator. 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 ordervoid
Configurator. 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 void
PiecewiseLinearCumulativeCurve. 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 void
PlanItException. throwIf(boolean condition, String message, Object... objectArgs)
Throw a planitException if condition is metstatic void
PlanItException. throwIfNull(Object object, String message)
Throw a planitException if object is nullstatic void
PlanItException. 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 void
PlanitExceptionConsumer. accept(T t)
R
PlanitExceptionFunction. 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 void
QuadConsumer. 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.LineString
PlanitJtsUtils. 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.LineString
PlanitJtsUtils. 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.LineString
PlanitJtsUtils. 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.LineString
PlanitJtsUtils. 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.LineString
PlanitJtsUtils. 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.LineString
PlanitJtsUtils. 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.LineSegment
PlanitJtsCrsUtils. 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.LineString
PlanitJtsUtils. createLineString(String value, char ts, char cs)
Based on the csv string construct a JTS line stringstatic org.locationtech.jts.geom.LineString
PlanitJtsUtils. 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.LineString
PlanitJtsUtils. createLineString(org.locationtech.jts.geom.Coordinate... coordinates)
Create a line string from the passed in coordinatesstatic org.locationtech.jts.geom.LineString
PlanitJtsUtils. createLineStringFromCsvString(String value, String ts, String cs)
Based on the csv string construct a line stringstatic org.locationtech.jts.geom.Point
PlanitJtsUtils. 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 Edge
PlanitGraphGeoUtils. 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 Edge
PlanitGraphGeoUtils. 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 Edge
PlanitGraphGeoUtils. 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.MathTransform
PlanitJtsUtils. 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> Double
PlanitGraphGeoUtils. 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.double
PlanitJtsCrsUtils. 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.double
PlanitJtsCrsUtils. 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.double
PlanitJtsCrsUtils. 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.double
PlanitJtsCrsUtils. 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.Coordinate
PlanitJtsCrsUtils. 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.LinearLocation
PlanitJtsCrsUtils. 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.Coordinate
PlanitJtsCrsUtils. 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.Coordinate
PlanitJtsCrsUtils. 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.Coordinate
PlanitJtsCrsUtils. 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.double
PlanitJtsCrsUtils. 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.LinearLocation
PlanitJtsCrsUtils. 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.LinearLocation
PlanitJtsCrsUtils. 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.LinearLocation
PlanitJtsCrsUtils. 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 int
PlanitJtsUtils. getCoordinateIndexOf(org.locationtech.jts.geom.Coordinate coordinate, org.locationtech.jts.geom.Coordinate[] coordinates)
collect the index of the given coordinate from the arraydouble
PlanitJtsCrsUtils. 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 instancedouble
PlanitJtsCrsUtils. 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 possibledouble
PlanitJtsCrsUtils. 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 instancedouble
PlanitJtsCrsUtils. 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 instancedouble
PlanitJtsCrsUtils. 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 instanceboolean
PlanitJtsCrsUtils. 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.boolean
PlanitJtsCrsUtils. 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 boolean
PlanitGraphGeoUtils. 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 Edge
EdgeFactory. registerNew(Vertex vertexA, Vertex vertexB)
Create new edge to graph identified via its id, (not registered on vertices)Edge
EdgeFactory. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated)boolean
Edge. 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 void
EdgeSegments. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)default DirectedEdge
DirectedEdgeFactory. registerNew(DirectedVertex vertexA, DirectedVertex vertexB)
Create and register new directed edge to graph identified via its id, (not registered on vertices)DirectedEdge
DirectedEdgeFactory. 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 void
GraphModifier. removeDanglingSubGraphs()
remove any dangling sub graphs from the graph if they exist and reorder the ids if neededvoid
GraphModifier. 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 neededvoid
GraphModifier. 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 PredefinedMode
ModeFactory. createPredefinedMode(IdGroupingToken groupId, PredefinedModeType modeType)
create a predefined mode instance without registering it on the container.PredefinedMode
ModeFactory. 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 void
TopologicalLayer. 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 MacroscopicLinkSegment
MacroscopicLinkSegmentFactory. create(Link parentLink, boolean directionAB)
Create macroscopic link segment, do not register nor register on nodes and linkMacroscopicLinkSegment
MacroscopicLinkSegmentFactory. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)
Create a macroscopic link segment and register itMacroscopicLinkSegment
MacroscopicLinkSegmentFactory. 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 void
TopologicalLayerModifier. removeDanglingSubnetworks()
remove any dangling subnetworks from the layer if they exist and subsequently reorder the internal ids if neededvoid
TopologicalLayerModifier. 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 LinkSegment
LinkSegmentFactory. create(Link parentLink, boolean directionAB)
Create link segmentLinkSegment
LinkSegmentFactory. 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 ConnectoidSegment
ConnectoidEdge. 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.ConnectoidSegment
ConnectoidSegmentFactory. 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 Object
ReflectionUtils. createInstance(String className, Object... constructorParameters)
Create an instance of given class name and provided constructor parametersstatic <T> T
ReflectionUtils. 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 long
TimePeriodUtils. 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 double
TimeUnit. convertHourTo(UnitType to, double value)
convert hour to...static double
DistanceUnit. convertKmTo(UnitType to, double value)
convert km to...static double
DistanceUnit. convertMeterTo(UnitType to, double value)
convert meter to...static double
TimeUnit. convertMinuteTo(UnitType to, double value)
convert minute to...static double
VehiclesUnit. convertPcuTo(UnitType unitType, double value)
Convert pcu to...static double
TimeUnit. convertSecondTo(UnitType to, double value)
convert second to...double
DistanceUnit. convertTo(Unit to, double value)
Convert one unit to the other for a given valuedouble
GroupUnit. convertTo(Unit to, double value)
Convert one unit to the other for a given valuedouble
NoneUnit. convertTo(Unit to, double value)
Convert one unit to the other for a given valuedouble
SrsUnit. convertTo(Unit to, double value)
Convert one unit to the other for a given valuedouble
TimeUnit. convertTo(Unit to, double value)
Convert one unit to the other for a given valuedouble
Unit. convertTo(Unit to, double value)
Convert one unit to the other for a given valuedouble
VehiclesUnit. convertTo(Unit to, double value)
Convert one unit to the other for a given valuestatic double
VehiclesUnit. 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 combinationboolean
Connectoid. isModeAllowed(Zone accessZone, Mode mode)
Verify if a mode is allowed access to the zone via this connectoidDirectedConnectoid
DirectedConnectoidFactory. registerNew(LinkSegment accessLinkSegment)
Create a new directed connectoid with default length 0 and no parent zone (yet)DirectedConnectoid
DirectedConnectoidFactory. registerNew(LinkSegment accessLinkSegment, Zone parentZone)
Create a new directed connectoid, with default length 0DirectedConnectoid
DirectedConnectoidFactory. registerNew(LinkSegment accessLinkSegment, Zone parentZone, double length)
Create a new directed connectoidUndirectedConnectoid
UndirectedConnectoidFactory. registerNew(Node accessNode)
factory method for undirected connectoid, with default length of 0 to use between (yet unknown parent) zone and access nodeUndirectedConnectoid
UndirectedConnectoidFactory. registerNew(Node accessNode, Zone parentZone)
factory method for undirected connectoid, with default length of 0 to use between zone and access nodeUndirectedConnectoid
UndirectedConnectoidFactory. 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 boolean
ConnectoidImpl. isModeAllowed(Zone accessZone, Mode mode)
Verify if a mode is allowed access to the zone via this connectoidDirectedConnectoid
DirectedConnectoidFactoryImpl. registerNew(LinkSegment accessLinkSegment)
Create a new directed connectoid with default length 0 and no parent zone (yet)DirectedConnectoid
DirectedConnectoidFactoryImpl. registerNew(LinkSegment accessLinkSegment, Zone parentZone)
Create a new directed connectoid, with default length 0DirectedConnectoid
DirectedConnectoidFactoryImpl. registerNew(LinkSegment accessLinkSegment, Zone parentZone, double length)
Create a new directed connectoidUndirectedConnectoid
UndirectedConnectoidFactoryImpl. registerNew(Node accessNode)
factory method for undirected connectoid, with default length of 0 to use between (yet unknown parent) zone and access nodeUndirectedConnectoid
UndirectedConnectoidFactoryImpl. registerNew(Node accessNode, Zone parentZone)
factory method for undirected connectoid, with default length of 0 to use between zone and access nodeUndirectedConnectoid
UndirectedConnectoidFactoryImpl. registerNew(Node accessNode, Zone parentZone, double length)
factory method for undirected connectoid
-