Uses of Class
org.planit.utils.exceptions.PlanItException
-
Packages that use PlanItException Package Description org.planit.algorithms.nodemodel Node model algorithms for PlanItorg.planit.algorithms.shortestpath Shortest Path algorithms for PlanItorg.planit.assignment Traffic assignment classesorg.planit.assignment.algorithmb org.planit.assignment.eltm org.planit.assignment.traditionalstatic org.planit.cost Contains the definitions of cost classesorg.planit.cost.physical Contains the definition of physical cost classesorg.planit.cost.virtual Contains the definitions of virtual cost classesorg.planit.data Data used for calculation during iterations of the traffic assignmentorg.planit.demands Classes which manage traveler demandsorg.planit.gap Gap functions and criteria used to test for convergence of the assignment algorithmsorg.planit.geo Common classes to perform actions on OpenGIS spatial dataorg.planit.graph Network component object classesorg.planit.io.demands Classes used to process the Java classes generated from XSD filesorg.planit.io.input Classes to read files in PlanIt's XML formatorg.planit.io.intermodal org.planit.io.network.converter org.planit.io.output.formatter PLANit IO output formatter packageorg.planit.io.project Simple implementations of CustomPlanItProjectorg.planit.io.xml.converter PLANit IO XML conversion helper classesorg.planit.io.xml.network PLANit IO XML parsing for networkorg.planit.io.xml.util Utility methods to help process XML dataorg.planit.io.zoning org.planit.mode org.planit.network org.planit.network.converter org.planit.network.macroscopic.physical Macroscopic physical network component object classesorg.planit.network.physical Physical network component object classesorg.planit.network.transport Integrated network component object classesorg.planit.network.virtual Virtual network component object classesorg.planit.output output writer related classesorg.planit.output.adapter Output Adapter and Output Type Adapter classes and interfacesorg.planit.output.configuration output configuration related classesorg.planit.output.formatter output formatter related classesorg.planit.output.property Output property objects which represent quantities which can be reported in the outputorg.planit.path.choice PLANit path choice classesorg.planit.path.choice.logit PLANit logit based path choice classesorg.planit.project PLANit project classesorg.planit.sdinteraction.smoothing Classes which perform the smoothing used in the algorithm convergenceorg.planit.supply.fundamentaldiagram Fundamental diagram classesorg.planit.supply.network.nodemodel Node model classesorg.planit.time Contains the definition of the TimePeriod objectorg.planit.tntp Top level package for reading input files which are in the TNTP Formatorg.planit.tntp.input Scanner reader for reading input files which are in the TNTP Formatorg.planit.tntp.output.formatter CSV output formatter used for TNTP results outputorg.planit.tntp.project TNTP implementation of CustomPlanItProjectorg.planit.utils.args Utils classes for parsing application argumentsorg.planit.utils.builder Contains the definitions of the configurator classesorg.planit.utils.cumulatives Classes for cumulatives (in a traffic context)org.planit.utils.exceptions General wrappers for exceptions thrown during program executionorg.planit.utils.functionalinterface Utilities for functional interfacesorg.planit.utils.graph Utilities for setting up graphsorg.planit.utils.misc Miscellaneous utility classesorg.planit.utils.mode org.planit.utils.network.physical.macroscopic Macroscopic physical network oriented utility classesorg.planit.utils.network.virtual Virtual physical network oriented utility classesorg.planit.utils.reflection Reflection oriented utility classesorg.planit.utils.unit org.planit.utils.zoning zoning oriented utility classesorg.planit.zoning -
-
Uses of PlanItException in org.planit.algorithms.nodemodel
Methods in org.planit.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.planit.algorithms.nodemodel that throw PlanItException Constructor Description TampereNodeModel(TampereNodeModelInput tampereNodeModelInput)
ConstructorTampereNodeModelFixedInput(org.ojalgo.array.Array1D<Double> incomingLinkSegmentCapacities)
Constructor.TampereNodeModelFixedInput(org.ojalgo.array.Array1D<Double> incomingLinkSegmentCapacities, org.ojalgo.array.Array1D<Double> outgoingLinkSegmentReceivingFlows)
Constructor.TampereNodeModelFixedInput(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.planit.algorithms.shortestpath
Methods in org.planit.algorithms.shortestpath that throw PlanItException Modifier and Type Method Description 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.planit.assignment
Methods in org.planit.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
DynamicTrafficAssignmentBuilder. buildSubComponents(T trafficAssignmentInstance)
In addition to the super class sub components, we also construct the subcomponents specific to dynamic 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 exceptionT
TrafficAssignmentComponentFactory. create(String trafficAssignmentComponentClassName, Object[] constructorParameters)
Create traffic assignment componentT
TrafficAssignmentComponentFactory. create(String trafficAssignmentComponentClassName, Object[] constructorParameters, Object... eventParameters)
Create traffic assignment componentFundamentalDiagramConfigurator<? extends FundamentalDiagram>
CapacityConstrainedTrafficAssignmentConfigurator. createAndRegisterFundamentalDiagram(String fundamentalDiagramType)
choose a particular fundamental diagram implementationNodeModelConfigurator<? extends NodeModel>
CapacityConstrainedTrafficAssignmentConfigurator. createAndRegisterNodeModel(String nodeModelType)
choose a particular node model implementationPathChoiceConfigurator<? extends PathChoice>
DynamicAssignmentConfigurator. createAndRegisterPathChoice(String pathChoiceType)
choose a particular path choice implementationPhysicalCostConfigurator<? 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, InfrastructureNetwork theNetwork)
Create a builder for given assignment typeprotected void
TrafficAssignmentBuilder. createGapFunction()
Currently, there exists only a single gap function (link based relative duality gap) that is created via this factory method.protected GapFunction
TrafficAssignmentBuilder. createGapFunctionInstance(TrafficAssignmentConfigurator<?> configurator, StopCriterion stopCriterion)
create a gap function instance based on configurationprotected PathChoice
DynamicTrafficAssignmentBuilder. createPathChoiceInstance(DynamicAssignmentConfigurator<? extends DynamicTrafficAssignment> configurator)
create a path choice instance based on configurationprotected AbstractPhysicalCost
TrafficAssignmentBuilder. createPhysicalCostInstance(TrafficAssignmentConfigurator<?> configurator)
create a physical cost instance based on configurationprotected Smoothing
TrafficAssignmentBuilder. createSmoothingInstance(TrafficAssignmentConfigurator<?> configurator)
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(TrafficAssignmentConfigurator<?> configurator)
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 modesabstract 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(InitialLinkSegmentCostPeriod initialLinkSegmentCost)
Register the initial link segment cost for the time period embedded in itvoid
TrafficAssignmentConfigurator. registerInitialLinkSegmentCost(TimePeriod timePeriod, InitialLinkSegmentCost initialLinkSegmentCost)
Register the initial link segment cost for a specified time periodvoid
TrafficAssignmentConfigurator. registerOutputFormatter(OutputFormatter outputFormatter)
Register an output formatterstatic void
TrafficAssignmentComponentFactory. registerTrafficAssignmentComponentType(Class<? extends TrafficAssignmentComponent<?>> trafficAssignmentComponent)
Register a component type that one can choose for the given traffic componentvoid
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 void
TrafficAssignment. verifyComponentCompatibility()
Verify if the traffic assignment components are compatible and nonnullConstructors in org.planit.assignment that throw PlanItException Constructor Description CapacityConstrainedTrafficAssignmentBuilder(Class<T> capacityconstrainedAssignmentClass, IdGroupingToken tokenId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, InfrastructureNetwork network)
ConstructorCapacityConstrainedTrafficAssignmentConfigurator(Class<T> instanceType)
ConstructorDynamicAssignmentConfigurator(Class<T> instanceType)
ConstructorDynamicTrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, InfrastructureNetwork network)
ConstructorTrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken projectToken, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, InfrastructureNetwork network)
Constructor -
Uses of PlanItException in org.planit.assignment.algorithmb
Methods in org.planit.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 AlgorithmB -
Uses of PlanItException in org.planit.assignment.eltm
Methods in org.planit.assignment.eltm that throw PlanItException Modifier and Type Method Description protected Configurator<ELTM>
ELTMTrafficAssignmentBuilder. createConfigurator()
create the configurator for ELTMvoid
ELTM. executeEquilibration()
Constructors in org.planit.assignment.eltm that throw PlanItException Constructor Description ELTMConfigurator()
ConstructorELTMTrafficAssignmentBuilder(IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, InfrastructureNetwork network)
Constructor -
Uses of PlanItException in org.planit.assignment.traditionalstatic
Methods in org.planit.assignment.traditionalstatic that throw PlanItException Modifier and Type Method Description protected Configurator<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 the network contains a single compatible infrastructure layer as traditional static assignment does not support intermodal network layersConstructors in org.planit.assignment.traditionalstatic that throw PlanItException Constructor Description TraditionalStaticAssignmentBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilder, Demands demands, Zoning zoning, InfrastructureNetwork network)
ConstructorTraditionalStaticAssignmentConfigurator(Class<TraditionalStaticAssignment> instanceType)
ConstructorTraditionalStaticAssignmentSimulationData(IdGroupingToken groupId)
Constructor -
Uses of PlanItException in org.planit.cost
Methods in org.planit.cost that throw PlanItException Modifier and Type Method Description double
Cost. getSegmentCost(Mode mode, T edgeSegment)
Returns the cost of travel along an edge segment for a specified mode -
Uses of PlanItException in org.planit.cost.physical
Methods in org.planit.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 typedouble
BPRLinkTravelTimeCost. getSegmentCost(Mode mode, MacroscopicLinkSegment linkSegment)
Return the travel time for the current link for a given mode If the input data are invalid, this method returns a negative value.abstract void
AbstractPhysicalCost. initialiseBeforeSimulation(InfrastructureNetwork network)
Initialize the cost parameter values in the networkvoid
BPRLinkTravelTimeCost. initialiseBeforeSimulation(InfrastructureNetwork network)
Register the BPR cost parameter values on the PhysicalNetwork Call this method after all the calls to set the cost parameters have been madeabstract void
AbstractPhysicalCost. populateWithCost(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(Mode mode, double[] costToFill)
populate the cost array with the BPR link travel times for all link segments for the specified mode -
Uses of PlanItException in org.planit.cost.virtual
Methods in org.planit.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(Mode mode, double[] costToFill)
void
SpeedConnectoidTravelTimeCost. populateWithCost(Mode mode, double[] costToFill)
void
VirtualCost. populateWithCost(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.planit.data
Methods in org.planit.data that throw PlanItException Modifier and Type Method Description int
MultiKeyPlanItData. getPositionOfOutputKeyProperty(OutputProperty outputKeyProperty)
Get the position of a property type in the output keys property arrayint
MultiKeyPlanItData. getPositionOfOutputValueProperty(OutputProperty outputValueProperty)
Get the position of a property type in the output values property arrayObject
MultiKeyPlanItData. getRowValue(OutputProperty 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(OutputProperty outputProperty, Object value, Object... keyValues)
Set the data value for an individual cellConstructors in org.planit.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.planit.demands
Methods in org.planit.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.planit.gap
Methods in org.planit.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.planit.geo
Methods in org.planit.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 directPositionsstatic 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 validorg.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 instancestatic 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.opengis.geometry.DirectPosition
PlanitOpenGisUtils. createDirectPosition(double xCoordinate, double yCoordinate)
Create DirectPosition object from X- and Y-coordinatesstatic 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.org.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.static org.locationtech.jts.geom.LineString
PlanitJtsUtils. createLineStringFromCoordinates(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 stringorg.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 positionsstatic org.locationtech.jts.geom.Point
PlanitJtsUtils. createPoint(double xCoordinate, double 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 org.opengis.referencing.operation.MathTransform
PlanitOpenGisUtils. 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 transformerorg.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
PlanitJtsUtils. 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
PlanitJtsUtils. 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
PlanitJtsUtils. 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
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. 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
PlanitJtsUtils. 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
PlanitJtsUtils. 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 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.planit.graph
Methods in org.planit.graph that throw PlanItException Modifier and Type Method Description Map<Long,Set<E>>
DirectedGraphImpl. breakEdgesAt(List<? extends E> edgesToBreak, V vertexToBreakAt)
Identical to theGraphImpl
implementation except that we now also account for the edge segments present on the edge.Map<Long,Set<E>>
GraphImpl. breakEdgesAt(List<? extends E> edgesToBreak, V vertexToBreakAt)
Break the passed in edges by inserting the passed in vertex in between.Map<Long,Set<E>>
GraphModifier. breakEdgesAt(List<? extends E> edgesToBreak, V vertexToBreakAt)
Break the passed in edges by inserting the passed in vertex in between.ES
EdgeSegmentsImpl. create(DirectedEdge parentEdge, boolean directionAB)
Create edge segmentDirectedEdge
DirectedGraphBuilderImpl. createEdge(Vertex vertexA, Vertex vertexB, double lengthKm)
Create a new link instanceE
GraphBuilder. createEdge(Vertex vertexA, Vertex vertexB, double length)
Create a new link instanceEdge
GraphBuilderImpl. createEdge(Vertex vertexA, Vertex vertexB, double length)
Create a new link instanceES
DirectedGraphBuilder. createEdgeSegment(DirectedEdge parentEdge, boolean directionAB)
Create a new physical link segment instanceEdgeSegment
DirectedGraphBuilderImpl. createEdgeSegment(DirectedEdge parentEdge, boolean directionAB)
Create a new physical link segment instanceprotected Set<V>
GraphImpl. processSubNetworkVertex(V referenceVertex)
helper function for subnetwork identification (deliberately NOT recursive to avoid stack overflow on large networks)void
EdgeSegmentsImpl. register(DirectedEdge parentEdge, ES edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)EdgeSegment
DirectedEdgeImpl. registerEdgeSegment(EdgeSegment edgeSegment, boolean directionAB)
Register EdgeSegment.ES
EdgeSegmentsImpl. registerNew(DirectedEdge parentEdge, boolean directionAb, boolean registerOnNodeAndLink)
Create directional edge segment and register itE
EdgesImpl. registerNew(Vertex vertexA, Vertex vertexB, double length, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated)void
GraphImpl. 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 neededdefault 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
GraphImpl. removeSubGraphOf(V referenceVertex, boolean recreateIds)
remove the (sub)graph in which the passed in vertex resides.void
GraphModifier. removeSubGraphOf(V referenceVertex, boolean recreateIds)
remove the (sub)graph in which the passed in vertex resides.boolean
EdgeImpl. replace(Vertex vertexToReplace, Vertex vertexToReplaceWith)
Replace one of the vertices of the linkConstructors in org.planit.graph that throw PlanItException Constructor Description DirectedEdgeImpl(IdGroupingToken groupId, DirectedVertex vertexA, DirectedVertex vertexB, double lengthKm)
Constructor which injects link lengths directlyEdgeImpl(IdGroupingToken groupId, Vertex vertexA, Vertex vertexB, double lengthKm)
Constructor which injects link lengths directlyEdgeSegmentImpl(IdGroupingToken groupId, DirectedEdge parentEdge, boolean directionAB)
Constructor -
Uses of PlanItException in org.planit.io.demands
Methods in org.planit.io.demands that throw PlanItException Modifier and Type Method Description protected void
PlanitDemandsReader. populateDemandConfiguration(MacroscopicNetwork network, Map<String,Mode> sourceIdModeMap)
Sets up all the configuration data from the XML demands fileprotected void
PlanitDemandsReader. populateDemandContents(Zoning zoning, Map<String,Zone> xmlIdZoneMap)
parses the demand contents of the Xmlvoid
PlanitDemandsReader. read(MacroscopicNetwork network, Zoning zoning, Map<String,Mode> xmlIdModeMap, Map<String,Zone> xmlIdZoneMap)
parse the Xml and populate the demands memory modelConstructors in org.planit.io.demands that throw PlanItException Constructor Description PlanitDemandsReader(String pathDirectory, String xmlFileExtension, Demands demands)
constructorPlanitDemandsReader(org.planit.xml.generated.XMLElementMacroscopicDemand xmlMacroscopicDemands, Demands demands)
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.planit.io.input
Methods in org.planit.io.input that throw PlanItException Modifier and Type Method Description protected void
PlanItInputBuilder. populateDemands(Demands demands, Object parameter1, Object parameter2)
Populates the Demands object from the input fileprotected void
PlanItInputBuilder. populateInitialLinkSegmentCost(InitialLinkSegmentCost initialLinkSegmentCost, Object parameter1, Object parameter2)
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. populateZoning(Zoning zoning, MacroscopicNetwork network)
Creates the Zoning object and connectoids from the data in the input fileConstructors in org.planit.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.planit.io.intermodal
Methods in org.planit.io.intermodal that throw PlanItException Modifier and Type Method Description Zoning
PlanitInterModalReader. read(InfrastructureNetwork network, Map<String,Node> nodesByXmlIds)
read the zoning from diskConstructors in org.planit.io.intermodal that throw PlanItException Constructor Description PlanitInterModalReader(String pathDirectory, String xmlFileExtension, Zoning zoning)
constructorPlanitInterModalReader(org.planit.xml.generated.XMLElementMacroscopicIntermodal xmlElementMacroscopicIntermodal, 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.planit.io.network.converter
Methods in org.planit.io.network.converter that throw PlanItException Modifier and Type Method Description protected void
PlanitNetworkWriter. initialiseIdMappingFunctions()
depending on the chosen id mapping, create the mapping functions for all id carrying entities that are persistedprotected void
PlanitNetworkWriter. persist()
persist the populated XML memory model to disk using JAXbprotected void
PlanitNetworkWriter. prepareCoordinateReferenceSystem(MacroscopicNetwork network)
prepare the Crs transformer (if any) based on the user configuration settingsInfrastructureNetwork
PlanitNetworkReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit networkprotected void
PlanitNetworkReader. setNetwork(InfrastructureNetwork network)
place network to populatevoid
PlanitNetworkWriter. write(InfrastructureNetwork network)
write a network to the writer's output format.Constructors in org.planit.io.network.converter that throw PlanItException Constructor Description PlanitNetworkReader(String networkPathDirectory, String xmlFileExtension, InfrastructureNetwork network)
constructorPlanitNetworkReader(org.planit.xml.generated.XMLElementMacroscopicNetwork externalXmlRawNetwork, InfrastructureNetwork 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.planit.io.output.formatter
Methods in org.planit.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.planit.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.planit.io.project
Methods in org.planit.io.project that throw PlanItException Modifier and Type Method Description TrafficAssignmentConfigurator<? extends TrafficAssignment>
PlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, InfrastructureNetwork theNetwork)
Create and register a deterministic 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, InfrastructureNetwork 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.planit.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.planit.io.xml.converter
Methods in org.planit.io.xml.converter that throw PlanItException Modifier and Type Method Description static org.planit.xml.generated.Typevalues
EnumConverter. convertFromPlanItToXmlGeneratedType(Type type)
Convert values from Type enumeration in PLANit project to generated Typevalues enumerationstatic org.planit.xml.generated.Unitsvalues
EnumConverter. convertFromPlanItToXmlGeneratedUnits(Units units)
Convert values from Units enumeration in PLANit project to generated Unitsvalues enumeration -
Uses of PlanItException in org.planit.io.xml.network
Methods in org.planit.io.xml.network that throw PlanItException Modifier and Type Method Description protected static double
XmlMacroscopicNetworkLayerHelper. parseLength(org.planit.xml.generated.XMLElementLinks.Link xmlLink, PlanitJtsUtils jtsUtils)
parse the length of an xmlLink based on geometry or length attributeprotected static Double
XmlMacroscopicNetworkLayerHelper. parseLengthFromLineString(org.planit.xml.generated.XMLElementLinks.Link generatedLink, PlanitJtsUtils jtsUtils)
Get the link length from the gml:LineString element in the XML file, if this has been setstatic void
XmlMacroscopicNetworkLayerHelper. parseLinkAndLinkSegments(org.planit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicPhysicalNetwork networkLayer, PlanitNetworkReaderSettings settings, Map<String,Node> nodesByXmlId, Map<String,MacroscopicLinkSegmentType> linkSegmentTypesByXmlId, PlanitJtsUtils jtsUtils)
parse link and link segmentsprotected static org.locationtech.jts.geom.LineString
XmlMacroscopicNetworkLayerHelper. parseLinkGeometry(org.planit.xml.generated.XMLElementLinks.Link generatedLink)
parse the geometry from the xml linkprotected static void
XmlMacroscopicNetworkLayerHelper. parseLinkSegmentTypeModeProperties(org.planit.xml.generated.Accessmode xmlMode, MacroscopicLinkSegmentType linkSegmentType, Map<String,Mode> modesByXmlId)
parse the mode properties for given link segment type and populate the helper with themstatic Map<String,MacroscopicLinkSegmentType>
XmlMacroscopicNetworkLayerHelper. parseLinkSegmentTypes(org.planit.xml.generated.XMLElementLayerConfiguration xmlLayerconfiguration, MacroscopicPhysicalNetwork networkLayer, PlanitNetworkReaderSettings settings, Map<String,Mode> modesByXmlId)
parse the link segment typesstatic Map<String,Node>
XmlMacroscopicNetworkLayerHelper. parseNodes(org.planit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicPhysicalNetwork networkLayer, PlanitNetworkReaderSettings settings)
Create and register nodes on the network return nodesByExternalIdToPopulate map for reference -
Uses of PlanItException in org.planit.io.xml.util
Methods in org.planit.io.xml.util that throw PlanItException Modifier and Type Method Description protected T
PlanitXmlReader. initialiseAndParseXmlRootElement()
parse the raw XML root (and rest) from file if not already set via constructorstatic org.planit.xml.generated.MotorisationType
EnumConversionUtil. planitToXml(MotorisationModeType planitMotorisationType)
convert motorisation type from PLANit to XMLstatic org.planit.xml.generated.TrackType
EnumConversionUtil. planitToXml(TrackModeType xmlTrackType)
convert track type from PLANit to XMLstatic org.planit.xml.generated.UsedToType
EnumConversionUtil. planitToXml(UseOfModeType useOfType)
convert used-to type from PLANit to XMLstatic org.planit.xml.generated.VehicularType
EnumConversionUtil. planitToXml(VehicularModeType planitVehicularType)
convert motorisation type from PLANit to XMLstatic MotorisationModeType
EnumConversionUtil. xmlToPlanit(org.planit.xml.generated.MotorisationType xmlMotorisationType)
convert motorisation type from xml to PLANitstatic TrackModeType
EnumConversionUtil. xmlToPlanit(org.planit.xml.generated.TrackType xmlTrackType)
convert track type from xml to PLANitstatic UseOfModeType
EnumConversionUtil. xmlToPlanit(org.planit.xml.generated.UsedToType xmlUseOfType)
convert used-to type from xml to PLANitstatic VehicularModeType
EnumConversionUtil. xmlToPlanit(org.planit.xml.generated.VehicularType xmlVehicularType)
convert vehicle type from xml to PLANit -
Uses of PlanItException in org.planit.io.zoning
Methods in org.planit.io.zoning that throw PlanItException Modifier and Type Method Description protected void
PlanitZoningReader. populateIntermodal(Modes modes, Map<String,MacroscopicLinkSegment> linkSegmentsByXmlId)
parse the intermodal zones, i.e., platforms, stops, stations, etc.protected void
PlanitZoningReader. populateODZones(Map<String,Node> nodesByXmlIds)
parse the OD zones from Xml element into Planit memoryZoning
PlanitZoningReader. read(InfrastructureNetwork network, Map<String,Node> nodesByXmlId, Map<String,MacroscopicLinkSegment> linkSegmentsByXmlId)
read the zoning from diskConstructors in org.planit.io.zoning that throw PlanItException Constructor Description PlanitZoningReader(String pathDirectory, String xmlFileExtension, Zoning zoning)
constructorPlanitZoningReader(org.planit.xml.generated.XMLElementMacroscopicZoning xmlMacroscopicZoning, 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.planit.mode
Methods in org.planit.mode that throw PlanItException Modifier and Type Method Description static PredefinedMode
ModeFactory. createPredefinedMode(IdGroupingToken groupId, PredefinedModeType modeType)
create a predefined mode instancePredefinedMode
ModesImpl. registerNew(PredefinedModeType modeType)
Create and register a new predefined mode. -
Uses of PlanItException in org.planit.network
Methods in org.planit.network that throw PlanItException Modifier and Type Method Description default void
InfrastructureLayer. removeDanglingSubnetworks()
remove any dangling subnetworks from the layer if they exist and subsequently reorder the internal ids if neededvoid
InfrastructureLayer. 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 neededvoid
InfrastructureNetwork. removeDanglingSubnetworks()
remove any dangling subnetworks from the network's layers if they exist and subsequently reorder the internal ids if neededvoid
InfrastructureNetwork. 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
InfrastructureLayersConfigurator. removeLayer(String layerXmlId)
remove a proposed layer, this means that all modes mapped to this layer are no longer mapped at allvoid
InfrastructureLayer. 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 crsvoid
InfrastructureNetwork. 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.planit.network.converter
Methods in org.planit.network.converter that throw PlanItException Modifier and Type Method Description void
NetworkConverter. convert()
Convert the network parsed by the reader by passing it on to the writer.protected 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<Node,String>
IdMapperFunctionFactory. createNodeIdMappingFunction(IdMapperType idMapper)
create a function that takes a node and generates the appropriate id based on the user configurationprotected org.opengis.referencing.crs.CoordinateReferenceSystem
NetworkWriterImpl. identifyDestinationCoordinateReferenceSystem(org.opengis.referencing.crs.CoordinateReferenceSystem overwriteCrs, String countryName, org.opengis.referencing.crs.CoordinateReferenceSystem fallBackCrs)
identify what the destination Crs is supposed to be.InfrastructureNetwork
NetworkReader. read()
parse the network based on the configuration of the implementing class to yield a PLANit networkvoid
NetworkWriter. write(InfrastructureNetwork network)
write a network to the writer's output format. -
Uses of PlanItException in org.planit.network.macroscopic.physical
Methods in org.planit.network.macroscopic.physical that throw PlanItException Modifier and Type Method Description MacroscopicLinkSegmentType
MacroscopicLinkSegmentTypesImpl. createAndRegisterNew(String name, double capacityPcuPerHour, double maximumDensityPcuPerKm)
Create and register new macroscopic link segment type on network.MacroscopicLinkSegmentType
MacroscopicLinkSegmentTypesImpl. createAndRegisterNew(String name, double capacityPcuPerHour, double maximumDensityPcuPerKm, Map<Mode,MacroscopicModeProperties> modeProperties)
Create and register new macroscopic link segment type on network.Link
MacroscopicPhysicalNetworkBuilderImpl. createEdge(Vertex nodeA, Vertex nodeB, double length)
Create a new link instanceMacroscopicLinkSegment
MacroscopicPhysicalNetworkBuilderImpl. createEdgeSegment(DirectedEdge parentLink, boolean directionAB)
Create a new physical link segment instanceConstructors in org.planit.network.macroscopic.physical that throw PlanItException Constructor Description MacroscopicLinkSegmentImpl(IdGroupingToken groupId, Link parentLink, boolean directionAB)
Constructor -
Uses of PlanItException in org.planit.network.physical
Methods in org.planit.network.physical that throw PlanItException Modifier and Type Method Description Map<Long,Set<L>>
PhysicalNetwork. breakLinkAt(L linkToBreak, N nodeToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in link by inserting the passed in node in between.Map<Long,Set<L>>
PhysicalNetwork. breakLinksAt(List<? extends L> linksToBreak, N nodeToBreakAt, org.opengis.referencing.crs.CoordinateReferenceSystem crs)
Break the passed in links by inserting the passed in node in between.LS
LinkSegmentsImpl. create(DirectedEdge parent, boolean directionAB)
Create edge segmentLink
PhysicalNetworkBuilderImpl. createEdge(Vertex nodeA, Vertex nodeB, double length)
Create a new link instanceLinkSegment
PhysicalNetworkBuilderImpl. createEdgeSegment(DirectedEdge parentLink, boolean directionAB)
Create a new physical link segment instancevoid
LinkSegmentsImpl. register(DirectedEdge parentEdge, LS edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)LS
LinkSegmentsImpl. registerNew(DirectedEdge parentEdge, boolean directionAb, boolean registerOnNodeAndLink)
Create directional edge segment and register itL
LinksImpl. registerNew(Vertex vertexA, Vertex vertexB, double length, boolean registerOnNodes)
Create new link to network identified via its id, injecting link length directlyvoid
PhysicalNetwork. removeDanglingSubnetworks()
remove any dangling subnetworks from the network if they exist and subsequently reorder the internal ids if neededvoid
PhysicalNetwork. 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 neededvoid
PhysicalNetwork. 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 crsConstructors in org.planit.network.physical that throw PlanItException Constructor Description LinkImpl(IdGroupingToken groupId, Node nodeA, Node nodeB, double length)
Constructor which injects link length directlyLinkSegmentImpl(IdGroupingToken groupId, Link parentLink, boolean directionAB)
Constructor -
Uses of PlanItException in org.planit.network.transport
Methods in org.planit.network.transport that throw PlanItException Modifier and Type Method Description protected void
TransportNetwork. connectVerticesToEdge(Edge edge)
Add Edge to both verticesprotected void
TransportNetwork. connectVerticesToEdgeSegment(EdgeSegment edgeSegment)
Add edge segment to the incoming or outgoing set of edge segments for the related verticesprotected void
TransportNetwork. disconnectVerticesFromEdge(Edge edge)
Remove Edge from both verticesprotected void
TransportNetwork. disconnectVerticesFromEdgeSegment(EdgeSegment edgeSegment)
Remove edge segment from the incoming or outgoing set of edge segments for the related verticesvoid
TransportNetwork. integrateConnectoidsAndLinks()
Integrate physical and virtual linksvoid
TransportNetwork. removeVirtualNetworkFromPhysicalNetwork()
Remove the edges and edge segments on the vertices of both virtual and physical networks -
Uses of PlanItException in org.planit.network.virtual
Methods in org.planit.network.virtual that throw PlanItException Modifier and Type Method Description ConnectoidSegment
VirtualNetwork.ConnectoidSegments. createAndRegisterConnectoidSegment(ConnectoidEdge parent, boolean directionAB)
Create and register connectoid segment in AB direction on virtual networkConnectoidSegment
ConnectoidEdgeImpl. registerConnectoidSegment(ConnectoidSegment connectoidSegment, boolean directionAB)
Register connectoidSegment.Collection<ConnectoidEdge>
VirtualNetwork.ConnectoidEdges. registerNew(Connectoid connectoid)
Create new connectoid edge to from a specified centroid to a specified nodeConstructors in org.planit.network.virtual that throw PlanItException Constructor Description ConnectoidEdgeImpl(IdGroupingToken groupId, Centroid centroidA, Node nodeB, double length)
ConstructorConnectoidSegmentImpl(IdGroupingToken groupId, ConnectoidEdge parentEdge, boolean directionAb)
Constructor -
Uses of PlanItException in org.planit.output
Methods in org.planit.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.planit.output.adapter
Methods in org.planit.output.adapter that throw PlanItException Modifier and Type Method Description protected double
LinkOutputTypeAdapterImpl. getCapacityPerLane(LinkSegment linkSegment)
Returns the value of the capacity per laneprotected String
ODOutputTypeAdapterImpl. getDestinationZoneExternalId(ODMatrixIterator odMatrixIterator)
Returns the external Id of the destination zone for the current cell in the OD skim matrixprotected String
PathOutputTypeAdapterImpl. getDestinationZoneExternalId(ODPathIterator odPathIterator)
Returns the external Id of the destination zone for the current cell in the OD path matrixprotected long
ODOutputTypeAdapterImpl. getDestinationZoneId(ODMatrixIterator odMatrixIterator)
Returns the Id of the destination zone for the current cell in the OD skim matrixprotected long
PathOutputTypeAdapterImpl. getDestinationZoneId(ODPathIterator odPathIterator)
Returns the Id of the destination zone for the current cell in the OD path matrixprotected String
ODOutputTypeAdapterImpl. getDestinationZoneXmlId(ODMatrixIterator odMatrixIterator)
Returns the Xml Id of the destination zone for the current cell in the OD skim matrixprotected String
PathOutputTypeAdapterImpl. getDestinationZoneXmlId(ODPathIterator odPathIterator)
Returns the Xml Id of the destination zone for the current cell in the OD path matrixprotected String
LinkOutputTypeAdapterImpl. getDownstreamNodeExternalId(LinkSegment linkSegment)
Returns the external Id of the downstream nodeprotected long
LinkOutputTypeAdapterImpl. getDownstreamNodeId(LinkSegment linkSegment)
Returns the Id of the downstream nodeprotected Object
LinkOutputTypeAdapterImpl. getDownstreamNodeLocation(LinkSegment linkSegment)
Returns the location of the downstream nodeprotected String
LinkOutputTypeAdapterImpl. getDownstreamNodeXmlId(LinkSegment linkSegment)
Returns the xml Id of the downstream nodeint
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.int
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.int
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 overriddenprotected double
LinkOutputTypeAdapterImpl. getLength(LinkSegment linkSegment)
Returns the length of the current link segmentprotected String
LinkOutputTypeAdapterImpl. getLinkSegmentExternalId(LinkSegment linkSegment)
Returns the external Id of the current link segmentprotected long
LinkOutputTypeAdapterImpl. getLinkSegmentId(LinkSegment linkSegment)
Returns the Id of the current link segmentprotected String
LinkOutputTypeAdapterImpl. getLinkSegmentXmlId(LinkSegment linkSegment)
Returns the Xml Id of the current link segmentprotected String
LinkOutputTypeAdapterImpl. getLinkType(LinkSegment linkSegment)
Return the link segment type of the current link segmentprotected double
LinkOutputTypeAdapterImpl. getMaximumDensity(LinkSegment linkSegment)
Returns the flow density of the current linkprotected double
LinkOutputTypeAdapterImpl. getMaximumSpeed(LinkSegment linkSegment, Mode mode)
Returns the maximum speed through the current link segmentprotected int
LinkOutputTypeAdapterImpl. getNumberOfLanes(LinkSegment linkSegment)
Returns the number of lanes of the current linkprotected double
ODOutputTypeAdapterImpl. getODCost(ODMatrixIterator odMatrixIterator, double timeUnitMultiplier)
Returns the OD travel cost for the current cell in the OD skim matrixprotected String
ODOutputTypeAdapterImpl. getOriginZoneExternalId(ODMatrixIterator odMatrixIterator)
Returns the origin zone external Id for the current cell in the OD skim matrixprotected Object
PathOutputTypeAdapterImpl. getOriginZoneExternalId(ODPathIterator odPathIterator)
Returns the origin zone external Id for the current cell in the OD path matrixprotected long
ODOutputTypeAdapterImpl. getOriginZoneId(ODMatrixIterator odMatrixIterator)
Returns the origin zone Id for the current cell in the OD skim matrixprotected long
PathOutputTypeAdapterImpl. getOriginZoneId(ODPathIterator odPathIterator)
Returns the origin zone Id for the current cell in the OD path matrixprotected String
ODOutputTypeAdapterImpl. getOriginZoneXmlId(ODMatrixIterator odMatrixIterator)
Returns the origin zone Xml Id for the current cell in the OD skim matrixprotected String
PathOutputTypeAdapterImpl. getOriginZoneXmlId(ODPathIterator odPathIterator)
Returns the Xml Id of the origin zone for the current cell in the OD path matrixprotected String
LinkOutputTypeAdapterImpl. getUpstreamNodeExternalId(LinkSegment linkSegment)
Returns the external Id of the upstream nodeprotected long
LinkOutputTypeAdapterImpl. getUpstreamNodeId(LinkSegment linkSegment)
Returns the Id of the upstream nodeprotected Object
LinkOutputTypeAdapterImpl. getUpstreamNodeLocation(LinkSegment linkSegment)
Returns the location of the upstream nodeprotected String
LinkOutputTypeAdapterImpl. getUpstreamNodeXmlId(LinkSegment linkSegment)
Returns the Xml Id of the upstream node -
Uses of PlanItException in org.planit.output.configuration
Methods in org.planit.output.configuration that throw PlanItException Modifier and Type Method Description void
OutputTypeConfiguration. addProperty(OutputProperty 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(OutputProperty 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.planit.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.planit.output.formatter
Methods in org.planit.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.planit.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, OutputProperty outputProperty, Object[] keyValues)
Get a specified data valueint
MemoryOutputFormatter. getPositionOfOutputKeyProperty(OutputType outputType, OutputProperty outputKeyProperty)
Returns the position of a property type in the output key property arrayint
MemoryOutputFormatter. getPositionOfOutputValueProperty(OutputType outputType, OutputProperty 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.planit.output.property
Methods in org.planit.output.property that throw PlanItException Modifier and Type Method Description static BaseOutputProperty
BaseOutputProperty. convertToBaseOutputProperty(String propertyClassName)
Generate the appropriate BaseOutputProperty object from a specified class namestatic BaseOutputProperty
BaseOutputProperty. convertToBaseOutputProperty(OutputProperty outputProperty)
Generate the appropriate BaseOutputProperty object from a specified enumeration valuestatic OutputProperty
OutputProperty. fromHeaderName(String name)
Returns the enumeration value associated with a specified header name (the header name in input and output files)static int
IterationIndexOutputProperty. getIterationIndex(TrafficAssignment trafficAssignment)
Returns the current iteration indexstatic long
ModeIdOutputProperty. getModeId(Mode mode)
Returns the Id of the current modestatic long
RunIdOutputProperty. getRunId(TrafficAssignment trafficAssignment)
Returns the current run idstatic Object
TimePeriodExternalIdOutputProperty. getTimePeriodExternalId(TimePeriod timePeriod)
Returns the current time period external Idstatic long
TimePeriodIdOutputProperty. getTimePeriodId(TimePeriod timePeriod)
Returns the current time period Idstatic Object
TimePeriodXmlIdOutputProperty. getTimePeriodXmlId(TimePeriod timePeriod)
Returns the current time period xml Id -
Uses of PlanItException in org.planit.path.choice
Methods in org.planit.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()
create the configurator that goes with this builderprotected 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.planit.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.planit.path.choice.logit
Methods in org.planit.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.planit.project
Methods in org.planit.project that throw PlanItException Modifier and Type Method Description Demands
CustomPlanItProject. createAndRegisterDemands(Zoning zoning, InfrastructureNetwork network)
Create and register demands to the projectDemands
PlanItProjectInput. createAndRegisterDemands(Zoning zoning, InfrastructureNetwork network)
Create and register demands to the project inputsInfrastructureNetwork
CustomPlanItProject. createAndRegisterInfrastructureNetwork(String infrastructureNetworkType)
Create and register an infrastructure based network on the projectInfrastructureNetwork
PlanItProjectInput. createAndRegisterInfrastructureNetwork(String infrastructureNetworkType)
Create and register an infrastructure based network on the project inputInitialLinkSegmentCost
CustomPlanItProject. createAndRegisterInitialLinkSegmentCost(InfrastructureNetwork 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 projectList<InitialLinkSegmentCostPeriod>
CustomPlanItProject. createAndRegisterInitialLinkSegmentCost(InfrastructureNetwork network, String fileName, Demands demands)
Create and register initial link segment costs from a (single) file for all time periods in Demands objectInitialLinkSegmentCostPeriod
CustomPlanItProject. createAndRegisterInitialLinkSegmentCost(InfrastructureNetwork 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(InfrastructureNetwork 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 projectList<InitialLinkSegmentCostPeriod>
PlanItProjectInput. createAndRegisterInitialLinkSegmentCost(InfrastructureNetwork network, String fileName, Demands demands)
Create and register initial link segment costs from a (single) file for all time periods in Demands objectInitialLinkSegmentCostPeriod
PlanItProjectInput. createAndRegisterInitialLinkSegmentCost(InfrastructureNetwork network, String fileName, TimePeriod timePeriod)
Create and register initial link segment costs from a (single) file for each time periodODPathSets
CustomPlanItProject. createAndRegisterOdPathSets(InfrastructureLayer networkLayer, Zoning zoning, String odPathSetInputPath)
Create and register the OD path sets as populated by the input builder through the path sourceODPathSets
PlanItProjectInput. createAndRegisterOdPathSets(InfrastructureLayer 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 typeTrafficAssignmentConfigurator<? extends TrafficAssignment>
CustomPlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, InfrastructureNetwork theNetwork)
Create and register a deterministic traffic assignment instance of a given typeZoning
CustomPlanItProject. createAndRegisterZoning(InfrastructureNetwork network)
Create and register the zoning system on the networkZoning
PlanItProjectInput. createAndRegisterZoning(InfrastructureNetwork 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 TrafficAssignmentComponent<?>> 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.planit.sdinteraction.smoothing
Methods in org.planit.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.planit.supply.fundamentaldiagram
Methods in org.planit.supply.fundamentaldiagram that throw PlanItException Modifier and Type Method Description void
FundamentalDiagramConfigurator. configure(FundamentalDiagram fundamentalDiagram)
Needed to avoid issues with generics, although it should be obvious that T extends FundamentalDiagramstatic FundamentalDiagramConfigurator<? extends FundamentalDiagram>
FundamentalDiagramConfiguratorFactory. createConfigurator(String fundamentalDiagramType)
Create a configurator for given fundamental diagram type -
Uses of PlanItException in org.planit.supply.network.nodemodel
Methods in org.planit.supply.network.nodemodel that throw PlanItException Modifier and Type Method Description void
NodeModelConfigurator. configure(NodeModel nodeModel)
Needed to avoid issues with generics, although it should be obvious that T extends NodeModelstatic NodeModelConfigurator<? extends NodeModel>
NodeModelConfiguratorFactory. createConfigurator(String nodeModelType)
Create a configurator for given node model type -
Uses of PlanItException in org.planit.time
Methods in org.planit.time that throw PlanItException Modifier and Type Method Description static long
TimePeriod. convertHoursToSeconds(String fourDigitHour)
Convert duration to seconds given start time using the 24-hour clockConstructors in org.planit.time that throw PlanItException Constructor Description TimePeriod(IdGroupingToken groupId, long startTimeSeconds, long durationSeconds)
ConstructorTimePeriod(IdGroupingToken groupId, String description, long startTimeSeconds, long durationSeconds)
Constructor -
Uses of PlanItException in org.planit.tntp
Methods in org.planit.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, OutputTimeUnit outputTimeUnit, double defaultMaximumSpeed)
Top-level method which runs PLANit for TNTP format input -
Uses of PlanItException in org.planit.tntp.input
Methods in org.planit.tntp.input that throw PlanItException Modifier and Type Method Description protected void
TntpInputBuilder. populateDemands(Demands demands, Object parameter1)
Populates the Demands object from the input fileprotected void
TntpInputBuilder. populateInfrastructureNetwork(InfrastructureNetwork network)
Creates the physical network object from the data in the input fileprotected void
TntpInputBuilder. populatePhysicalCost(AbstractPhysicalCost costComponent)
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.planit.tntp.input that throw PlanItException Constructor Description TntpInputBuilder(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, String standardResultsFileLocation, Map<NetworkFileColumns,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, double defaultMaximumSpeed)
ConstructorTntpInputBuilder(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, Map<NetworkFileColumns,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)
ConstructorTntpInputBuilder(String networkFileLocation, String demandFileLocation, Map<NetworkFileColumns,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, double defaultMaximumSpeed)
ConstructorTntpInputBuilder(String networkFileLocation, String demandFileLocation, Map<NetworkFileColumns,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)
Constructor -
Uses of PlanItException in org.planit.tntp.output.formatter
Methods in org.planit.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.planit.tntp.output.formatter that throw PlanItException Constructor Description CSVOutputFormatter(IdGroupingToken groupId)
Base constructor -
Uses of PlanItException in org.planit.tntp.project
Constructors in org.planit.tntp.project that throw PlanItException Constructor Description TntpProject(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, Map<NetworkFileColumns,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)
ConstructorTntpProject(String networkFileLocation, String demandFileLocation, Map<NetworkFileColumns,Integer> networkFileColumns, SpeedUnits speedUnits, LengthUnits lengthUnits, CapacityPeriod capacityPeriod, double defaultMaximumSpeed)
Constructor -
Uses of PlanItException in org.planit.utils.args
Methods in org.planit.utils.args that throw PlanItException Modifier and Type Method Description static Map<String,String>
ArgumentParser. convertArgsToMap(String[] args)
Convert MetroScan program arguments into a Map of file locations , with file type as key and file location as values -
Uses of PlanItException in org.planit.utils.builder
Methods in org.planit.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.planit.utils.cumulatives
Methods in org.planit.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.planit.utils.exceptions
Methods in org.planit.utils.exceptions that throw PlanItException Modifier and Type Method Description static void
PlanItException. throwIf(boolean condition, String message)
Throw a planitException if condition is metstatic void
PlanItException. throwIfNull(Object object, String message)
Throw a planitException if object is null -
Uses of PlanItException in org.planit.utils.functionalinterface
Methods in org.planit.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 argumentsvoid
TriConsumer. accept(T t, U u, V v)
Performs this operation on the given arguments -
Uses of PlanItException in org.planit.utils.graph
Methods in org.planit.utils.graph that throw PlanItException Modifier and Type Method Description ES
EdgeSegments. create(DirectedEdge parentEdge, boolean directionAB)
Create edge segmentvoid
EdgeSegments. register(DirectedEdge parentEdge, ES edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)EdgeSegment
DirectedEdge. registerEdgeSegment(EdgeSegment edgeSegment, boolean directionAB)
Register EdgeSegment.default E
Edges. registerNew(Vertex vertexA, Vertex vertexB, double length)
Create new edge to graph identified via its id, (not registered on vertices)E
Edges. registerNew(Vertex vertexA, Vertex vertexB, double length, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated)ES
EdgeSegments. registerNew(DirectedEdge parentEdge, boolean directionAb, boolean registerOnVertexAndEdge)
Create directional edge segment and register itboolean
Edge. replace(Vertex vertextoReplace, Vertex vertexToReplaceWith)
Replace one of the vertices of the link -
Uses of PlanItException in org.planit.utils.misc
Methods in org.planit.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.planit.utils.mode
Methods in org.planit.utils.mode that throw PlanItException Modifier and Type Method Description PredefinedMode
Modes. registerNew(PredefinedModeType modeType)
Create and register a new predefined mode. -
Uses of PlanItException in org.planit.utils.network.physical.macroscopic
Methods in org.planit.utils.network.physical.macroscopic that throw PlanItException Modifier and Type Method Description MacroscopicLinkSegmentType
MacroscopicLinkSegmentTypes. createAndRegisterNew(String name, double capacityPcuPerHour, double maximumDensityPcuPerKm)
Create and register new macroscopic link segment type on network.MacroscopicLinkSegmentType
MacroscopicLinkSegmentTypes. createAndRegisterNew(String name, double capacityPcuPerHour, double maximumDensityPcuPerKm, Map<Mode,MacroscopicModeProperties> modeProperties)
Create and register new macroscopic link segment type on network. -
Uses of PlanItException in org.planit.utils.network.virtual
Methods in org.planit.utils.network.virtual that throw PlanItException Modifier and Type Method Description ConnectoidSegment
ConnectoidEdge. registerConnectoidSegment(ConnectoidSegment connectoidSegment, boolean directionAB)
Register connectoidSegment. -
Uses of PlanItException in org.planit.utils.reflection
Methods in org.planit.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 parameters -
Uses of PlanItException in org.planit.utils.unit
Methods in org.planit.utils.unit that throw PlanItException Modifier and Type Method Description static double
UnitUtils. convert(Units from, Units to, double value)
convert between indicated units -
Uses of PlanItException in org.planit.utils.zoning
Methods in org.planit.utils.zoning that throw PlanItException Modifier and Type Method Description Double
Connectoid. getLength(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
Connectoids. registerNew(LinkSegment accessLinkSegment)
Create new connectoid for a physical access node and leave the connections for access zones for laterDirectedConnectoid
Connectoids. registerNew(LinkSegment accessLinkSegment, Zone parentZone)
Create new connectoid for a zone and physical access edge segmentDirectedConnectoid
Connectoids. registerNew(LinkSegment accessLinkSegment, Zone accessZone, double length)
Create new connectoid for a zone and physical access nodeUndirectedConnectoid
Connectoids. registerNew(Node accessNode)
Create new connectoid for a physical access node and leave the connections for access zones for laterUndirectedConnectoid
Connectoids. registerNew(Node accessNode, Zone parentZone)
Create new connectoid for a zone and physical access nodeUndirectedConnectoid
Connectoids. registerNew(Node accessNode, Zone accessZone, double length)
Create new connectoid for a zone and physical access node -
Uses of PlanItException in org.planit.zoning
Methods in org.planit.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
ConnectoidsImpl. registerNew(LinkSegment accessLinkSegment)
Create new connectoid for a physical access node and leave the connections for access zones for laterDirectedConnectoid
ConnectoidsImpl. registerNew(LinkSegment accessLinkSegment, Zone parentZone)
Create new connectoid for a zone and physical access edge segmentDirectedConnectoid
ConnectoidsImpl. registerNew(LinkSegment accessLinkSegment, Zone parentZone, double length)
Create new connectoid for a zone and physical access nodeUndirectedConnectoid
ConnectoidsImpl. registerNew(Node accessNode)
Create new connectoid for a physical access node and leave the connections for access zones for laterUndirectedConnectoid
ConnectoidsImpl. registerNew(Node accessNode, Zone parentZone)
Create new connectoid for a zone and physical access nodeUndirectedConnectoid
ConnectoidsImpl. registerNew(Node accessNode, Zone parentZone, double length)
Create new connectoid for a zone and physical access node
-