Uses of Class
org.goplanit.utils.exceptions.PlanItException
-
-
Uses of PlanItException in org.goplanit.algorithms.nodemodel
Methods in org.goplanit.algorithms.nodemodel that throw PlanItException Modifier and Type Method Description protected void
TampereNodeModel. initialiseRun()
Initialise the run conforming to Step 1 in Appendix A of Bliemer et al.org.ojalgo.array.Array1D<Double>
TampereNodeModel. run()
Run the Tampere node modelConstructors in org.goplanit.algorithms.nodemodel that throw PlanItException Constructor Description TampereNodeModel(TampereNodeModelInput tampereNodeModelInput)
ConstructorTampereNodeModelFixedInput(Node node, boolean initialiseReceivingFlowsAtCapacity)
Constructor.TampereNodeModelInput(TampereNodeModelFixedInput fixedInput, org.ojalgo.array.Array2D<Double> turnSendingFlows)
Constructor for a particular node model runTampereNodeModelInput(TampereNodeModelFixedInput fixedInput, org.ojalgo.array.Array2D<Double> turnSendingFlows, org.ojalgo.array.Array1D<Double> outgoingLinkSegmentReceivingFlows)
Constructor for a particular node model run. -
Uses of PlanItException in org.goplanit.assignment
Methods in org.goplanit.assignment that throw PlanItException Modifier and Type Method Description OutputTypeConfiguration
TrafficAssignmentConfigurator. activateOutput(OutputType outputType)
Method that allows one to activate specific output types for persistence on the traffic assignment instanceT
TrafficAssignmentBuilder. build()
Build the traffic assignmentprotected void
TrafficAssignmentBuilder. buildSubComponents(T trafficAssignmentInstance)
call to build and configure all sub components of this builderprotected void
TrafficAssignment. checkForEmptyComponents()
Check if any components are undefined, if so throw exceptionGapFunctionConfigurator<? extends GapFunction>
TrafficAssignmentConfigurator. createAndRegisterGapFunction(String gapFunctionType)
Create and Register gapFunction componentPhysicalCostConfigurator<? extends AbstractPhysicalCost>
TrafficAssignmentConfigurator. createAndRegisterPhysicalCost(String physicalTravelTimeCostFunctionType)
Create and register physical link cost function to determine travel timeSmoothingConfigurator<? extends Smoothing>
TrafficAssignmentConfigurator. createAndRegisterSmoothing(String smoothingType)
Create and Register smoothing componentVirtualCostConfigurator<? extends AbstractVirtualCost>
TrafficAssignmentConfigurator. createAndRegisterVirtualCost(String virtualTraveltimeCostFunctionType)
Create and Register virtual link cost function to determine travel timestatic TrafficAssignmentBuilder<?>
TrafficAssignmentBuilderFactory. createBuilder(String trafficAssignmentType, IdGroupingToken projectToken, InputBuilderListener inputBuilder, Demands theDemands, Zoning theZoning, LayeredNetwork<?,?> theNetwork)
Create a builder for given assignment typeprotected abstract TrafficAssignmentConfigurator<T>
TrafficAssignmentBuilder. createConfigurator()
Allow derived classes to provide their own configurator for this builder, by default we create a base class configuratorprotected GapFunction
TrafficAssignmentBuilder. createGapFunctionInstance(StopCriterion stopCriterion)
create a gap function instance based on configurationprotected AbstractPhysicalCost
TrafficAssignmentBuilder. createPhysicalCostInstance()
create a physical cost instance based on configurationprotected Smoothing
TrafficAssignmentBuilder. createSmoothingInstance()
create a smoothing instance based on configurationprotected T
TrafficAssignmentBuilder. createTrafficAssignmentInstance()
Factory method to create the instance of the desired typeprotected void
TrafficAssignment. createTransportNetwork()
Initialize the transport network by combining the physical and virtual componentsprotected AbstractVirtualCost
TrafficAssignmentBuilder. createVirtualCostInstance()
create a virtual cost instance based on configurationprotected void
TrafficAssignment. disbandTransportNetwork()
detach the virtual and physical transport network againvoid
TrafficAssignment. execute()
Execute assignment, including initializing resources, running equilibration and then closing resourcesvoid
StaticTrafficAssignment. executeEquilibration()
Execute equilibration over all time periods and modesprotected abstract void
TrafficAssignment. executeEquilibration()
Run equilibration after resources initialized, including saving resultsprotected void
StaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod)
Perform assignment for a given time periodprotected abstract void
StaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modesprotected void
TrafficAssignment. finalizeAfterExecution()
Finalize all relevant traffic assignment components after execution of the assignment has endedprotected void
TrafficAssignment. initialiseBeforeExecution()
Initialize all relevant traffic assignment components before execution of the assignment commencesvoid
TrafficAssignmentConfigurator. registerInitialLinkSegmentCost(TimePeriod timePeriod, InitialModesLinkSegmentCost initialLinkSegmentCost)
Register the initial link segment cost for a specified time periodvoid
TrafficAssignmentConfigurator. registerOutputFormatter(OutputFormatter outputFormatter)
Register an output formattervoid
TrafficAssignment. setVirtualCost(AbstractVirtualCost virtualCost)
Set the virtual cost where in case the cost is an InteractorAccessor will trigger an event to get access to the required data via requesting an InteractorAccesseevoid
TrafficAssignmentConfigurator. unregisterOutputFormatter(OutputFormatter outputFormatter)
Remove an output formatter which has already been registered This is used by the Python interface, which registers the PlanItIO formatter by defaultprotected abstract void
TrafficAssignment. verifyComponentCompatibility()
Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected abstract void
TrafficAssignment. verifyNetworkDemandZoningCompatibility()
Verify if the traffic assignment inputs (components which are provided upon creation and not subcomponents that are created as part of the build process of the assignment are compatible).Constructors in org.goplanit.assignment that throw PlanItException Constructor Description TrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken projectToken, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, LayeredNetwork<?,?> network)
Constructor -
Uses of PlanItException in org.goplanit.assignment.algorithmb
Methods in org.goplanit.assignment.algorithmb that throw PlanItException Modifier and Type Method Description protected void
AlgorithmB. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modesvoid
AlgorithmBEquilibration. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
The method that performs the equilibration for a given time period using AlgorithmBprotected void
AlgorithmB. verifyComponentCompatibility()
Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network. -
Uses of PlanItException in org.goplanit.assignment.ltm
Methods in org.goplanit.assignment.ltm that throw PlanItException Modifier and Type Method Description protected void
LtmTrafficAssignmentBuilder. buildSubComponents(T ltmAssignmentInstance)
In addition to the super class sub components, we also construct the subcomponents specific to dynamic traffic assignmentFundamentalDiagramConfigurator<? extends FundamentalDiagramComponent>
LtmConfigurator. createAndRegisterFundamentalDiagram(String fundamentalDiagramType)
choose a particular fundamental diagram implementationNodeModelConfigurator<? extends NodeModelComponent>
LtmConfigurator. createAndRegisterNodeModel(String nodeModelType)
choose a particular node model implementationPathChoiceConfigurator<? extends PathChoice>
LtmConfigurator. createAndRegisterPathChoice(String pathChoiceType)
choose a particular path choice implementationprotected FundamentalDiagramComponent
LtmTrafficAssignmentBuilder. createFundamentalDiagramComponentInstance(MacroscopicNetworkLayer macroscopicNetworkLayer)
create a fundamental diagram component instance based on configurationprotected PathChoice
LtmTrafficAssignmentBuilder. createPathChoiceInstance(LtmConfigurator<? extends LtmAssignment> configurator)
create a path choice instance based on configurationprotected void
LtmAssignment. verifyComponentCompatibility()
Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected void
LtmAssignment. verifyNetworkDemandZoningCompatibility()
Verify if the network contains a single compatible infrastructure layer because sLTM does not (yet) support multiple (or intermodal) network layersConstructors in org.goplanit.assignment.ltm that throw PlanItException Constructor Description LtmConfigurator(Class<T> ltmClass)
ConstructorLtmTrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, LayeredNetwork<?,?> network)
Constructor -
Uses of PlanItException in org.goplanit.assignment.ltm.eltm
Methods in org.goplanit.assignment.ltm.eltm that throw PlanItException Modifier and Type Method Description protected EventBasedLtmConfigurator
EventBasedLtmTrafficAssignmentBuilder. createConfigurator()
create the configurator for ELTMvoid
EventBasedLtm. executeEquilibration()
Constructors in org.goplanit.assignment.ltm.eltm that throw PlanItException Constructor Description EventBasedLtmConfigurator()
ConstructorEventBasedLtmTrafficAssignmentBuilder(IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, LayeredNetwork<?,?> network)
Constructor -
Uses of PlanItException in org.goplanit.assignment.ltm.sltm
Methods in org.goplanit.assignment.ltm.sltm that throw PlanItException Modifier and Type Method Description protected StaticLtmConfigurator
StaticLtmTrafficAssignmentBuilder. createConfigurator()
create the configurator for sLTMprotected void
StaticLtm. executeEquilibration()
Run equilibration after resources initialized, including saving resultsprotected void
StaticLtmAssignmentStrategy. executeNetworkCostsUpdate(Mode theMode, boolean updateOnlyPotentiallyBlockingNodeCosts, double[] costsToUpdate)
Perform an update of the network wide costs where a partial update is applied in case only potentially blocking nodes are updated during the loadingprotected void
StaticLtm. initialiseBeforeExecution()
Initialise the components before we start any assignment + create the assignment strategy (bush or path based)protected void
StaticLtmBushStrategyBase. initialiseBushes(double[] linkSegmentCosts)
Initialise bushes.protected abstract Collection<Pas>
StaticLtmBushStrategyBase. updateBushPass(double[] linkSegmentCosts)
Update the PASs for bushes given the network costs and current bushes DAGsprotected Collection<Pas>
StaticLtmBushStrategyRootLabelled. updateBushPass(double[] linkSegmentCosts)
Match (new) PASs to improve existing bushes (origin) at hand.protected void
StaticLtm. verifyComponentCompatibility()
Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.Constructors in org.goplanit.assignment.ltm.sltm that throw PlanItException Constructor Description StaticLtmConfigurator()
ConstructorStaticLtmTrafficAssignmentBuilder(IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, LayeredNetwork<?,?> network)
Constructor -
Uses of PlanItException in org.goplanit.assignment.ltm.sltm.conjugate
Methods in org.goplanit.assignment.ltm.sltm.conjugate that throw PlanItException Modifier and Type Method Description protected Collection<Pas>
StaticLtmStrategyConjugateBush. updateBushPass(double[] linkSegmentCosts)
Based on provided original network link segment costs see if we can update the existing collection of PASs -
Uses of PlanItException in org.goplanit.assignment.traditionalstatic
Methods in org.goplanit.assignment.traditionalstatic that throw PlanItException Modifier and Type Method Description protected TrafficAssignmentConfigurator<TraditionalStaticAssignment>
TraditionalStaticAssignmentBuilder. createConfigurator()
the user will configure this builder via this configuratorprotected void
TraditionalStaticAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Perform assignment for a given time period using Dijkstra's algorithmprotected void
TraditionalStaticAssignment. verifyComponentCompatibility()
Verify if a supported gap function is usedprotected void
TraditionalStaticAssignment. verifyNetworkDemandZoningCompatibility()
Verify if the network contains a single compatible infrastructure layer as traditional static assignment does not support intermodal network layersConstructors in org.goplanit.assignment.traditionalstatic that throw PlanItException Constructor Description TraditionalStaticAssignmentBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilder, Demands demands, Zoning zoning, LayeredNetwork<?,?> network)
ConstructorTraditionalStaticAssignmentConfigurator(Class<TraditionalStaticAssignment> instanceType)
Constructor -
Uses of PlanItException in org.goplanit.component
Methods in org.goplanit.component that throw PlanItException Modifier and Type Method Description void
PlanitComponent. onPlanitComponentEvent(PlanitComponentEvent event)
Act upon the provided event. -
Uses of PlanItException in org.goplanit.component.event
Methods in org.goplanit.component.event that throw PlanItException Modifier and Type Method Description void
PlanitComponentListener. onPlanitComponentEvent(PlanitComponentEvent event)
Notify method for PLANit component events. -
Uses of PlanItException in org.goplanit.converter
Methods in org.goplanit.converter that throw PlanItException Modifier and Type Method Description void
Converter. convert()
Convert the reader's parsed content by passing it on to the writer.abstract void
ConverterBase. convert()
Convert the reader's content and pass it on to the writer to convert it.void
PairConverter. convert()
Convert the reader's parsed content by passing it on to the writer.protected void
Converter. write(T readEntity)
void
ConverterWriter. write(T entity)
write a network to the writer's output format.void
PairConverterWriter. write(T entity1, U entity2)
Write a network to the writer's output format. -
Uses of PlanItException in org.goplanit.converter.demands
Methods in org.goplanit.converter.demands that throw PlanItException Modifier and Type Method Description protected void
DemandsConverter. write(Demands demands)
make sure the demands have access to the reference zoning by taking it from the reader and placing it on the writer (if not already available) -
Uses of PlanItException in org.goplanit.converter.intermodal
Methods in org.goplanit.converter.intermodal that throw PlanItException Modifier and Type Method Description void
IntermodalConverter. convert()
Support conversion fo PLANit network and zoning without servicesvoid
IntermodalConverter. convertWithServices()
Support conversion fo PLANit network and zoning with servicesQuadruple<MacroscopicNetwork,Zoning,T,U>
IntermodalReader. readWithServices()
void
IntermodalWriter. writeWithServices(MacroscopicNetwork physicalNetwork, Zoning zoning, T serviceNetwork, U routedServices)
Write a network to the writer's output format. -
Uses of PlanItException in org.goplanit.cost.physical
Methods in org.goplanit.cost.physical that throw PlanItException Modifier and Type Method Description void
PhysicalCostConfigurator. configure(AbstractPhysicalCost physicalCost)
Needed to avoid issues with generics, although it should be obvious that T extends PhysicalCoststatic PhysicalCostConfigurator<? extends AbstractPhysicalCost>
PhysicalCostConfiguratorFactory. createConfigurator(String physicalCostType)
Create a configurator for given physical cost typeabstract void
AbstractPhysicalCost. initialiseBeforeSimulation(LayeredNetwork<?,?> network)
Initialize the cost parameter values in the networkvoid
BprLinkTravelTimeCost. initialiseBeforeSimulation(LayeredNetwork<?,?> network)
Register the BPR cost parameter values on the PhysicalNetworkvoid
FreeFlowLinkTravelTimeCost. initialiseBeforeSimulation(LayeredNetwork<?,?> network)
Initialize the cost parameter values in the networkvoid
SteadyStateTravelTimeCost. initialiseBeforeSimulation(LayeredNetwork<?,?> network)
Initialize the cost parameter values in the network -
Uses of PlanItException in org.goplanit.cost.virtual
Methods in org.goplanit.cost.virtual that throw PlanItException Modifier and Type Method Description void
VirtualCostConfigurator. configure(AbstractVirtualCost virtualCost)
Needed to avoid issues with generics, although it should be obvious that T extends VirtualCoststatic VirtualCostConfigurator<? extends AbstractVirtualCost>
VirtualCostConfiguratorFactory. createConfigurator(String virtualCostType)
Create a configurator for given virtual cost typeabstract void
AbstractVirtualCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)
Initialize the virtual cost componentvoid
FixedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)
Initialize the virtual cost componentvoid
SpeedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)
Initialize the virtual cost componentvoid
SpeedConnectoidTravelTimeCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)
Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its idvoid
VirtualCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)
Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its id -
Uses of PlanItException in org.goplanit.data
Methods in org.goplanit.data that throw PlanItException Modifier and Type Method Description int
MultiKeyPlanItData. getPositionOfOutputKeyProperty(OutputPropertyType outputKeyProperty)
Get the position of a property type in the output keys property arrayint
MultiKeyPlanItData. getPositionOfOutputValueProperty(OutputPropertyType outputValueProperty)
Get the position of a property type in the output values property arrayObject
MultiKeyPlanItData. getRowValue(OutputPropertyType outputProperty, Object... keyValues)
Get data value for a specified row and columnObject[]
MultiKeyPlanItData. getRowValues(Object... keyValues)
Returns an array representing the row of data values defined by the specified array of key valuesvoid
MultiKeyPlanItData. putRow(Object[] outputValues, Object... keyValues)
Puts the data values into a specified rowvoid
MultiKeyPlanItData. putRowValue(OutputPropertyType outputProperty, Object value, Object... keyValues)
Set the data value for an individual cellConstructors in org.goplanit.data that throw PlanItException Constructor Description MultiKeyPlanItData(OutputProperty[] outputKeyProperties, OutputProperty... outputValueProperties)
ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty... outputValueProperties)
ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty outputKeyProperty2, OutputProperty... outputValueProperties)
ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty outputKeyProperty2, OutputProperty outputKeyProperty3, OutputProperty... outputValueProperties)
Constructor -
Uses of PlanItException in org.goplanit.gap
Methods in org.goplanit.gap that throw PlanItException Modifier and Type Method Description void
GapFunctionConfigurator. configure(GapFunction gapFunction)
Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionvoid
StopCriterionConfigurator. configure(StopCriterion stopCriterion)
Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionstatic GapFunctionConfigurator<? extends GapFunction>
GapFunctionConfiguratorFactory. createConfigurator(String gapFunctionType)
Create a configurator for given gap function type -
Uses of PlanItException in org.goplanit.graph
Methods in org.goplanit.graph that throw PlanItException Modifier and Type Method Description Edge
EdgeFactoryImpl. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.graph.directed
Methods in org.goplanit.graph.directed that throw PlanItException Modifier and Type Method Description void
EdgeSegmentsImpl. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)ConjugateDirectedEdge
ConjugateDirectedEdgeFactoryImpl. registerNew(ConjugateDirectedVertex vertexA, ConjugateDirectedVertex vertexB, DirectedEdge originalEdge1, DirectedEdge originalEdge2, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated)DirectedEdge
DirectedEdgeFactoryImpl. registerNew(DirectedVertex vertexA, DirectedVertex vertexB, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.graph.directed.modifier
Methods in org.goplanit.graph.directed.modifier that throw PlanItException Modifier and Type Method Description void
DirectedGraphModifierImpl. removeSubGraphOf(DirectedVertex referenceVertex)
remove the (sub)graph in which the passed in vertex resides. -
Uses of PlanItException in org.goplanit.io.converter.demands
Methods in org.goplanit.io.converter.demands that throw PlanItException Modifier and Type Method Description protected void
PlanitDemandsReader. populateDemandConfiguration()
Sets up all the configuration data from the XML demands fileprotected void
PlanitDemandsReader. populateDemandContents()
Parses the demand contents of the XMLvoid
PlanitDemandsWriter. write(Demands demands)
write a network to the writer's output format. -
Uses of PlanItException in org.goplanit.io.converter.intermodal
Methods in org.goplanit.io.converter.intermodal that throw PlanItException Modifier and Type Method Description void
PlanitIntermodalWriter. write(MacroscopicNetwork macroscopicNetwork, Zoning zoning)
Write a network to the writer's output format.void
PlanitIntermodalWriter. writeWithServices(MacroscopicNetwork macroscopicNetwork, Zoning zoning, ServiceNetwork serviceNetwork, RoutedServices routedServices)
Write a network to the writer's output format. -
Uses of PlanItException in org.goplanit.io.converter.network
Methods in org.goplanit.io.converter.network that throw PlanItException Modifier and Type Method Description void
PlanitNetworkReader. parseLinkAndLinkSegments(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils jtsUtils)
parse link and link segmentsvoid
PlanitNetworkReader. parseLinkSegmentTypeAccessProperties(org.goplanit.xml.generated.XMLElementAccessGroup xmlAccessGroupProperties, MacroscopicLinkSegmentType linkSegmentType, Collection<Mode> defaultModes)
parse the mode properties for given link segment type and populate the helper with themvoid
PlanitNetworkReader. parseLinkSegmentTypes(org.goplanit.xml.generated.XMLElementLayerConfiguration xmlLayerconfiguration, MacroscopicNetworkLayer networkLayer)
Parse the link segment typesvoid
PlanitNetworkReader. parseNodes(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer)
Create and register nodes on the networkprotected void
PlanitNetworkReader. setNetwork(LayeredNetwork<?,?> network)
Place network to populateConstructors in org.goplanit.io.converter.network that throw PlanItException Constructor Description PlanitNetworkReader(String networkPathDirectory, String xmlFileExtension, LayeredNetwork<?,?> network)
ConstructorPlanitNetworkReader(PlanitNetworkReaderSettings settings, LayeredNetwork<?,?> network)
Constructor where settings are directly provided such that input information can be exracted from itPlanitNetworkReader(PlanitNetworkReaderSettings settings, IdGroupingToken idToken)
Constructor where settings are directly provided such that input information can be exracted from itPlanitNetworkReader(org.goplanit.xml.generated.XMLElementMacroscopicNetwork externalXmlRawNetwork, PlanitNetworkReaderSettings settings, LayeredNetwork<?,?> network)
Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory modelPlanitNetworkReader(org.goplanit.xml.generated.XMLElementMacroscopicNetwork externalXmlRawNetwork, LayeredNetwork<?,?> network)
Constructor where file has already been parsed and we only need to convert from raw XML objects to PLANit memory model -
Uses of PlanItException in org.goplanit.io.converter.service
Methods in org.goplanit.io.converter.service that throw PlanItException Modifier and Type Method Description void
PlanitRoutedServicesWriter. write(RoutedServices routedServices)
write a network to the writer's output format.void
PlanitServiceNetworkWriter. write(ServiceNetwork serviceNetwork)
write a network to the writer's output format.Constructors in org.goplanit.io.converter.service that throw PlanItException Constructor Description PlanitRoutedServicesReader(IdGroupingToken idToken, ServiceNetwork parentServiceNetwork, PlanitRoutedServicesReaderSettings settings)
Constructor where settings are directly provided such that input information can be extracted from itPlanitServiceNetworkReader(PlanitServiceNetworkReaderSettings settings, ServiceNetwork serviceNetwork)
Constructor where settings and service network are directly provided -
Uses of PlanItException in org.goplanit.io.converter.zoning
Methods in org.goplanit.io.converter.zoning that throw PlanItException Modifier and Type Method Description protected void
PlanitZoningReader. populateIntermodal(Modes modes)
Parse the intermodal zones, i.e., platforms, stops, stations, etc. -
Uses of PlanItException in org.goplanit.io.geo
Methods in org.goplanit.io.geo that throw PlanItException Modifier and Type Method Description List<org.opengis.geometry.DirectPosition>
PlanitOpenGisUtils. convertToDirectPositions(org.locationtech.jts.geom.Coordinate[] coordinates)
Convert JTS coordinates to OpenGIS directPositionsorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. convertToOpenGisLineString(org.locationtech.jts.geom.LineString jtsLineString)
Convert a JTS line string object to an OpenGis LineString instance by transferring the internal coordinatesorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. convertToOpenGisLineString(org.locationtech.jts.geom.MultiLineString jtsMultiLineString)
Converts a JTS MultiLineString with a single entry into an OpenGIS LineString instanceorg.opengis.geometry.DirectPosition
PlanitOpenGisUtils. createDirectPosition(double xCoordinate, double yCoordinate)
Create DirectPosition object from X- and Y-coordinatesorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. createLineString(String value, char ts, char cs)
Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. createLineString(List<Double> coordinateList)
Create a line string from the doubles passed in (list of doubles containing x1,y1,x2,y2,etc.org.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. createLineStringFromCsvString(String value, String ts, String cs)
Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineString
PlanitOpenGisUtils. createLineStringFromPositions(List<org.opengis.geometry.coordinate.Position> positionList)
Create a line string from the passed in positionsorg.opengis.geometry.coordinate.Position
PlanitOpenGisUtils. getClosestSamplePointOnLineString(org.opengis.geometry.coordinate.Position toMatch, org.opengis.geometry.coordinate.LineString lineString)
Find the closest explicit sample point registered on the line string compared to the passed in positiondouble
PlanitOpenGisUtils. getDistanceInKilometres(Vertex vertexA, Vertex vertexB)
Compute the distance in kilometres between two vertices assuming the positions are set and based on the same crs as registered on this class instancedouble
PlanitOpenGisUtils. getDistanceInKilometres(org.opengis.geometry.coordinate.LineString geometry)
Compute the length of the line string by traversing all nodes and computing the segment by segment distances TODO: find out if a faster way is possibledouble
PlanitOpenGisUtils. getDistanceInKilometres(org.opengis.geometry.coordinate.Position startPosition, org.opengis.geometry.coordinate.Position endPosition)
Compute the distance in kilometres between two positions assuming the positions are provided in the same crs as registered on this class instancedouble
PlanitOpenGisUtils. getDistanceInMetres(org.opengis.geometry.coordinate.Position startPosition, org.opengis.geometry.coordinate.Position endPosition)
Compute the distance in metres between two positions assuming the positions are provided in the same crs as registered on this class instance -
Uses of PlanItException in org.goplanit.io.input
Methods in org.goplanit.io.input that throw PlanItException Modifier and Type Method Description void
PlanItInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)
Whenever a project component is created this method will be invokedprotected void
PlanItInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)
Populates the Demands object from the input fileprotected void
PlanItInputBuilder. populateInitialLinkSegmentCost(PopulateInitialLinkSegmentCostEvent initialCostEvent)
Populate the initial link segment cost from a CSV fileprotected void
PlanItInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork network)
Creates the macroscopic network object from the data in the input fileprotected void
PlanItInputBuilder. populateRoutedServices(RoutedServices routedServicesToPopulate)
Populate the routed services based on the local XML file if it can be found.protected void
PlanItInputBuilder. populateServiceNetwork(ServiceNetwork serviceNetworkToPopulate)
Populate the service network based on the local XML file if it can be found.protected void
PlanItInputBuilder. populateZoning(Zoning zoning, MacroscopicNetwork network)
Creates the Zoning object and connectoids from the data in the input fileConstructors in org.goplanit.io.input that throw PlanItException Constructor Description PlanItInputBuilder(String projectPath)
Constructor which generates the input objects from files in a specified directory, using the default extension ".xml"PlanItInputBuilder(String projectPath, String xmlFileExtension)
Constructor which generates the input objects from files in a specified directory -
Uses of PlanItException in org.goplanit.io.output.formatter
Methods in org.goplanit.io.output.formatter that throw PlanItException Modifier and Type Method Description void
PlanItOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Finalize the persistence after the simulation.void
PlanItOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Create the output directories and open the CSV writersvoid
PlanItOutputFormatter. resetCsvDirectory()
Call this method to delete all existing files in the CSV output directoryvoid
PlanItOutputFormatter. resetXmlDirectory()
Call this method to delete all existing files in the XML output directoryprotected void
PlanItOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected void
PlanItOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to the CSV fileprotected void
PlanItOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the CSV fileprotected void
PlanItOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Path results for the time period to the CSV fileprotected void
PlanItOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV fileConstructors in org.goplanit.io.output.formatter that throw PlanItException Constructor Description PlanItOutputFormatter(IdGroupingToken groupId)
Constructor, takes values for properties file name, description and version property -
Uses of PlanItException in org.goplanit.io.project
Methods in org.goplanit.io.project that throw PlanItException Modifier and Type Method Description TrafficAssignmentConfigurator<? extends TrafficAssignment>
PlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, LayeredNetwork<?,?> theNetwork)
Create and register a traffic assignment instance of a given typeTrafficAssignmentConfigurator<? extends TrafficAssignment>
PlanItSimpleProject. createAndRegisterTrafficAssignment(String trafficAssignmentType)
On a simple project we only allow a single assignment to be registered.TrafficAssignmentConfigurator<? extends TrafficAssignment>
PlanItSimpleProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, LayeredNetwork<?,?> theNetwork)
Disallow the use of the generic create and register traffic assignment because a simple project automatically determines its demands, zoning, and networkvoid
PlanItSimpleProject. executeAllTrafficAssignments()
Execute all registered traffic assignments Top-level error recording is done in this class.Constructors in org.goplanit.io.project that throw PlanItException Constructor Description PlanItProject(String projectPath)
Constructor taking project path where to find all project input filesPlanItSimpleProject()
Base constructor for simple project which adopts the PlanItIO input/output format.PlanItSimpleProject(String projectPath)
Base constructor for simple project which adopts the PlanItIO input/output format -
Uses of PlanItException in org.goplanit.io.xml.converter
Methods in org.goplanit.io.xml.converter that throw PlanItException Modifier and Type Method Description static org.goplanit.xml.generated.Unitsvalues
XmlEnumConverter. convertFromPlanItToXmlGeneratedUnits(OutputProperty outputProperty)
Convert values from Units enumeration in PLANit project to generated Unitsvalues enumeration -
Uses of PlanItException in org.goplanit.io.xml.network.physical.macroscopic
Methods in org.goplanit.io.xml.network.physical.macroscopic that throw PlanItException Modifier and Type Method Description static Double
XmlMacroscopicNetworkLayerHelper. parseLengthFromLineString(org.goplanit.xml.generated.XMLElementLinks.Link generatedLink, PlanitJtsCrsUtils jtsUtils)
Get the link length from the gml:LineString element in the XML file, if this has been set -
Uses of PlanItException in org.goplanit.matsim.converter
Methods in org.goplanit.matsim.converter that throw PlanItException Modifier and Type Method Description protected boolean
MatsimWriter. validateNetwork(LayeredNetwork<?,?> referenceNetwork)
Validate the network instance available, throw or log when issues are foundvoid
MatsimIntermodalWriter. write(MacroscopicNetwork infrastructureNetwork, Zoning zoning)
Persist the PLANit network and zoning as a MATSim network to diskvoid
MatsimNetworkWriter. write(LayeredNetwork<?,?> network)
write a network to the writer's output format.void
MatsimRoutedServicesWriter. write(RoutedServices routedServices)
extract public transport information from PLANit zoning and use it to persist as much of the MATSim public transport XML as possibleprotected void
MatsimNetworkWriter. writeDetailedGeometryFile(MacroscopicNetworkLayerImpl networkLayer)
Create detailed geometry file compatible with VIA viewervoid
MatsimIntermodalWriter. writeWithServices(MacroscopicNetwork infrastructureNetwork, Zoning zoning, ServiceNetwork serviceNetwork, RoutedServices routedServices)
Persist the PLANit network and zoning as a MATSIM compatible network to diskprotected void
MatsimNetworkWriter. writeXmlNetworkFile(MacroscopicNetworkLayerImpl networkLayer)
write the xml MATSIM network -
Uses of PlanItException in org.goplanit.network
Methods in org.goplanit.network that throw PlanItException Modifier and Type Method Description void
UntypedPhysicalNetwork. removeDanglingSubnetworks()
remove any dangling subnetworks from the network's layers if they exist and subsequently reorder the internal ids if neededboolean
MacroscopicNetworkLayerConfigurator. removeLayer(String layerXmlId)
remove a proposed layer, this means that all modes mapped to this layer are no longer mapped at allvoid
TopologicalLayerNetwork. transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCoordinateReferenceSystem)
change the coordinate system, which will result in an update of all geometries in the network layers from the original CRS to the new CRS. -
Uses of PlanItException in org.goplanit.network.layer
Methods in org.goplanit.network.layer that throw PlanItException Modifier and Type Method Description void
UntypedNetworkLayerImpl. transform(org.opengis.referencing.crs.CoordinateReferenceSystem fromCoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem toCoordinateReferenceSystem)
transform all underlying geometries in the layer from the given crs to the new crs -
Uses of PlanItException in org.goplanit.osm.converter
Methods in org.goplanit.osm.converter that throw PlanItException Modifier and Type Method Description void
OsmReaderSettings. setBoundingBox(Number x1, Number x2, Number y1, Number y2)
Set an additional (more restricting) square bounding box based on provided envelopevoid
OsmReaderSettings. setInputFile(String inputFile)
Set the input file to use, which is internally converted into a URL -
Uses of PlanItException in org.goplanit.osm.converter.intermodal
Methods in org.goplanit.osm.converter.intermodal that throw PlanItException Modifier and Type Method Description static OsmIntermodalReader
OsmIntermodalReaderFactory. create(String inputFile, String countryName)
Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReader
OsmIntermodalReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)
Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to populate -
Uses of PlanItException in org.goplanit.osm.converter.network
Methods in org.goplanit.osm.converter.network that throw PlanItException Modifier and Type Method Description static OsmNetworkReader
OsmNetworkReaderFactory. create(String inputFile, String countryName)
Create a PLANitOSMReader which will create its own macroscopic networkstatic OsmNetworkReader
OsmNetworkReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate)
Create a PLANitOSMReader while providing an OSM network to populate -
Uses of PlanItException in org.goplanit.osm.defaults
Methods in org.goplanit.osm.defaults that throw PlanItException Modifier and Type Method Description static String
CountrySpecificDefaultUtils. extractCountryNameFromFile(Path filePath)
Validate if file is a valid resource file and its name is constructed based on a country code.protected static void
OsmRailwayTypeConfiguration. initialiseDefaultActivatedOsmRailwayTypes()
Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do include, i.e., support.protected static void
OsmRailwayTypeConfiguration. initialiseDefaultDeactivatedOsmRailwayTypes()
Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do not activate either because they are not used in general assignment (miniature) or because we cannot properly convert them (turn tables, razed), or because they do not represent a railway as such (platform as a way) FUNICULAR MONO_RAIL NARROW_GAUGE ABANDONED CONSTRUCTION DISUSED MINIATURE RAZED TURNTABLE PROPOSEDprotected static void
OsmSpeedLimitDefaultsByCountry. populateCountrySpecificSpeedLimits()
Populate the country specific defaults for highway/railway types for supported countriesprotected static void
OsmSpeedLimitDefaultsByCountry. populateGlobalSpeedLimits()
populate the global defaults for highway/railway types -
Uses of PlanItException in org.goplanit.osm.test
Methods in org.goplanit.osm.test that throw PlanItException Modifier and Type Method Description static void
Osm2PlanitConversionTemplates. osm2PlanitBasicIntermodalNoServices(String inputFile, String outputPath, String countryName)
Template for parsing intermodal road and rail infrastructure of OSM network to PLANit network for your typical assignment but without pedestrian or cyclist infrastructurestatic void
Osm2PlanitConversionTemplates. osm2PlanitCarSimple(String inputFile, String outputPath, String countryName, Long... excludedOsmWays)
Template for simple car centric conversion of OSM network to PLANit network, with only the main road types activestatic void
Osm2PlanitConversionTemplates. osm2PlanitIntermodalNoServices(OsmIntermodalReaderSettings settings, PlanitIntermodalWriterSettings writerSettings)
Template for parsing intermodal OSM network/infrastructure without any services based on provided settingsstatic void
Osm2PlanitConversionTemplates. osm2PlanitNetworkComprehensive(String inputFile, String outputPath, String countryName)
Template for parsing all road, pedestrian, bicycle, and rail infrastructure of OSM network to PLANit network -
Uses of PlanItException in org.goplanit.osm.util
Methods in org.goplanit.osm.util that throw PlanItException Modifier and Type Method Description static org.locationtech.jts.geom.Coordinate[]
OsmWayUtils. createCoordinateArray(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Based on the passed in osmWay collect the coordinates on that way as a coordinate array for the given range.static org.locationtech.jts.geom.Coordinate[]
OsmWayUtils. createCoordinateArray(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Based on the passed in osmWay collect the coordinates on that way as a coordinate array.static org.locationtech.jts.geom.Coordinate[]
OsmWayUtils. createCoordinateArray(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes, int startNodeIndex, int endNodeIndex, PlanitExceptionConsumer<Set<Long>> missingNodeConsumer)
Based on the passed in osmWay collect the coordinates on that way as a coordinate array.static org.locationtech.jts.geom.Coordinate[]
OsmWayUtils. createCoordinateArrayNoThrow(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Based on the passed in osmWay collect the coordinates on that way as a coordinate array for the given range.static org.locationtech.jts.geom.Point
OsmNodeUtils. createPoint(long osmNodeId, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Create a point based on the OSMnodestatic org.locationtech.jts.geom.Geometry
OsmWayUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
extract geometry from the osm way which can either be a line string or polygonstatic org.locationtech.jts.geom.Geometry
PlanitOsmUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
extract geometry from the osm entity, either a point, line string or polygonstatic org.locationtech.jts.geom.LineString
OsmWayUtils. extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Extract the geometry for the passed in way as line string for the given nodesstatic org.locationtech.jts.geom.LineString
OsmWayUtils. extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Extract the geometry for the passed in way as line stringstatic org.locationtech.jts.geom.LineString
OsmWayUtils. extractLineStringNoThrow(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Identical toOsmWayUtils.extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay, java.util.Map<java.lang.Long, de.topobyte.osm4j.core.model.iface.OsmNode>)
, except it does not throw exceptions, but simply logs any issues foundstatic org.locationtech.jts.geom.Polygon
OsmWayUtils. extractPolygon(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)
Extract the geometry for the passed in way as polygon (assumed it has been identified as such already)static Zone
OsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
find the closest zone to the node location.static Zone
OsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, PlanitJtsCrsUtils geoUtils)
identical to findZoneWithClosest coordinate that requires a maximum search distance.static boolean
PlanitTransferZoneUtils. isTransferZoneAtLocation(TransferZone transferZone, org.locationtech.jts.geom.Point location)
Verify if the geometry of the transfer zone equates to the provided locationstatic double
PlanitOsmUtils. parseMaxSpeedValueKmPerHour(String maxSpeedValue)
parse an OSM maxSpeedValue tag value and perform unit conversion to km/h if neededstatic double[]
PlanitOsmUtils. parseMaxSpeedValueLanesKmPerHour(String maxSpeedLanes)
parse an OSM maxSpeedValue tag value with speeds per lane separated by "|" and perform unit conversion to km/h if needed -
Uses of PlanItException in org.goplanit.output
Methods in org.goplanit.output that throw PlanItException Modifier and Type Method Description OutputTypeConfiguration
OutputManager. createAndRegisterOutputTypeConfiguration(OutputType outputType)
Factory method to create an output configuration for a given typevoid
OutputManager. finaliseAfterSimulation()
Allows the output manager to finalise itself and any of its registered output formatters to after the simulation endedvoid
OutputManager. initialiseBeforeSimulation(long runId)
Allows the output manager to initialize itself and any of its registered output formatters to prepare before the simulation startsvoid
OutputManager. persistOutputData(TimePeriod timePeriod, Set<Mode> modes, boolean converged)
Persist the output data for all registered output types -
Uses of PlanItException in org.goplanit.output.adapter
Methods in org.goplanit.output.adapter that throw PlanItException Modifier and Type Method Description protected static Optional<?>
OutputTypeAdapterImpl. createConvertedUnitsValue(OutputProperty outputProperty, Optional<?> unconvertedValue)
Convert the output property value that is assumed to be in the properties default units in the desired units indicated on the propertydefault Optional<Double>
MacroscopicLinkOutputTypeAdapter. getCapacityPerLanePcuHour(MacroscopicLinkSegment linkSegment)
Returns the value of the capacity per lanestatic Optional<String>
OdOutputTypeAdapter. getDestinationZoneExternalId(OdDataIterator<?> odIterator)
Returns the external Id of the destination zone for the current ODstatic Optional<String>
PathOutputTypeAdapter. getDestinationZoneExternalId(OdDataIterator<?> odPathIterator)
Returns the external Id of the destination zone for the current cell in the OD path matrixstatic Optional<Long>
OdOutputTypeAdapter. getDestinationZoneId(OdDataIterator<?> odIterator)
Returns the Id of the destination zone for the current cell in the OD destinationstatic Optional<Long>
PathOutputTypeAdapter. getDestinationZoneId(OdDataIterator<?> odPathIterator)
Returns the Id of the destination zone for the current cell in the OD path matrixstatic Optional<String>
OdOutputTypeAdapter. getDestinationZoneXmlId(OdDataIterator<?> odIterator)
Returns the XML Id of the destination zone for the current OD destinationstatic Optional<String>
PathOutputTypeAdapter. getDestinationZoneXmlId(OdDataIterator<?> odPathIterator)
Returns the Xml Id of the destination zone for the current cell in the OD path matrixdefault Optional<String>
MacroscopicLinkOutputTypeAdapter. getDownstreamNodeExternalId(MacroscopicLinkSegment linkSegment)
Returns the external Id of the downstream nodedefault Optional<String>
UntypedLinkOutputTypeAdapter. getDownstreamNodeExternalId(T linkSegment)
Returns the external Id of the downstream nodedefault Optional<Long>
UntypedLinkOutputTypeAdapter. getDownstreamNodeId(T linkSegment)
Returns the Id of the downstream nodedefault Optional<String>
UntypedLinkOutputTypeAdapter. getDownstreamNodeLocation(T linkSegment)
Returns the location of the downstream nodedefault Optional<String>
UntypedLinkOutputTypeAdapter. getDownstreamNodeXmlId(T linkSegment)
Returns the XML Id of the downstream nodeOptional<Integer>
OdOutputTypeAdapterImpl. getIterationIndexForSubOutputType(SubOutputTypeEnum outputTypeEnum)
ODSkimOutputType.COST: Cost is collected through the shortest path in iteration i based on the link costs of iteration i-1, so the od cost of i-1 are only known once we are in iteration i, hence this information is trailing behind one iteration, and we can only store it in i.Optional<Integer>
OutputTypeAdapter. getIterationIndexForSubOutputType(SubOutputTypeEnum subOutputTypeEnum)
Determine the iteration index that is relevant for the data related to the provided output type enum Generally, this equates to the actual current iteration index, but if the data for example is trailing an iteration then this will collect the correct iteration index for this data as opposed to the iteration index of the simulation itself.Optional<Integer>
OutputTypeAdapterImpl. getIterationIndexForSubOutputType(SubOutputTypeEnum outputTypeEnum)
Default implementation assumes that regular iteration index is used, which in most cases it true, only when for example costs are trailing one iteration behind in case they are only revealed in the next iteration this method should be overriddendefault Optional<Double>
UntypedLinkOutputTypeAdapter. getLength(T linkSegment)
Returns the length of the current link segmentdefault Optional<String>
UntypedLinkOutputTypeAdapter. getLinkSegmentExternalId(T linkSegment)
Returns the external Id of the current link segmentdefault Optional<Long>
UntypedLinkOutputTypeAdapter. getLinkSegmentId(T linkSegment)
Returns the Id of the current link segmentdefault Optional<Long>
MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeId(MacroscopicLinkSegment linkSegment)
Return the link segment type id of the current link segmentdefault Optional<String>
MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeName(MacroscopicLinkSegment linkSegment)
Return the link segment type name of the current link segmentdefault Optional<String>
MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeXmlId(MacroscopicLinkSegment linkSegment)
Return the link segment type xml id of the current link segmentdefault Optional<String>
UntypedLinkOutputTypeAdapter. getLinkSegmentXmlId(T linkSegment)
Returns the XML Id of the current link segmentdefault Optional<Double>
MacroscopicLinkOutputTypeAdapter. getMaximumDensity(MacroscopicLinkSegment linkSegment)
Returns the flow density of the current linkdefault Optional<Double>
MacroscopicLinkOutputTypeAdapter. getMaximumSpeed(MacroscopicLinkSegment linkSegment, Mode mode)
Returns the maximum speed through the current link segmentdefault Optional<Integer>
UntypedLinkOutputTypeAdapter. getNumberOfLanes(T linkSegment)
Returns the number of lanes of the current linkstatic <T> Optional<T>
OdOutputTypeAdapter. getOdValue(OdDataIterator<T> odIterator)
Returns the Od valuestatic Optional<String>
OdOutputTypeAdapter. getOriginZoneExternalId(OdDataIterator<?> odIterator)
Returns the origin zone external Id for the current cell in the OD originstatic Optional<String>
PathOutputTypeAdapter. getOriginZoneExternalId(OdDataIterator<?> odPathIterator)
Returns the origin zone external Id for the current cell in the OD path matrixstatic Optional<Long>
OdOutputTypeAdapter. getOriginZoneId(OdDataIterator<?> odIterator)
Returns the origin zone Id for the current cell in the OD originstatic Optional<Long>
PathOutputTypeAdapter. getOriginZoneId(OdDataIterator<?> odPathIterator)
Returns the origin zone Id for the current cell in the OD path matrixstatic Optional<String>
OdOutputTypeAdapter. getOriginZoneXmlId(OdDataIterator<?> odIterator)
Returns the origin zone XML Id for the current cell in the OD originstatic Optional<String>
PathOutputTypeAdapter. getOriginZoneXmlId(OdDataIterator<?> odPathIterator)
Returns the Xml Id of the origin zone for the current cell in the OD path matrixdefault Optional<String>
UntypedLinkOutputTypeAdapter. getUpstreamNodeExternalId(T linkSegment)
Returns the external Id of the upstream nodedefault Optional<Long>
UntypedLinkOutputTypeAdapter. getUpstreamNodeId(T linkSegment)
Returns the Id of the upstream nodedefault Optional<String>
UntypedLinkOutputTypeAdapter. getUpstreamNodeLocation(T linkSegment)
Returns the location of the upstream nodedefault Optional<String>
UntypedLinkOutputTypeAdapter. getUpstreamNodeXmlId(T linkSegment)
Returns the XML Id of the upstream node -
Uses of PlanItException in org.goplanit.output.configuration
Methods in org.goplanit.output.configuration that throw PlanItException Modifier and Type Method Description void
OutputTypeConfiguration. addProperty(OutputPropertyType outputProperty)
Add an output property to be included in the output filesOutputTypeConfiguration
OutputConfiguration. createAndRegisterOutputTypeConfiguration(OutputType outputType)
Factory method to create an output configuration for a given typeboolean
OutputTypeConfiguration. removeProperty(String propertyClassName)
Remove an output property from the list of properties to be included in the output fileboolean
OutputTypeConfiguration. removeProperty(OutputPropertyType outputProperty)
Remove an output property from the list of properties to be included in the output filevoid
PathOutputTypeConfiguration. setPathIdentificationType(PathOutputIdentificationType pathIdType)
Set the path id typeConstructors in org.goplanit.output.configuration that throw PlanItException Constructor Description LinkOutputTypeConfiguration()
Constructor Define the default output properties here.OdOutputTypeConfiguration()
Constructor Define the default output properties here.OutputTypeConfiguration(OutputType outputType)
OutputTypeconfiguration constructorPathOutputTypeConfiguration()
Constructor Define the default output properties here. -
Uses of PlanItException in org.goplanit.output.formatter
Methods in org.goplanit.output.formatter that return PlanItException Modifier and Type Method Description protected PlanItException
CsvFileOutputFormatter. writeLinkResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)
Write output values to the Link CSV file for the current iterationprotected PlanItException
CsvFileOutputFormatter. writeOdResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)
Write output values to the OD CSV file for the current iterationprotected PlanItException
CsvFileOutputFormatter. writePathResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)
Write output values to the Path CSV file for the current iterationMethods in org.goplanit.output.formatter that throw PlanItException Modifier and Type Method Description static OutputFormatter
OutputFormatterFactory. createOutputFormatter(String OutputFormatterCanonicalClassName)
Create an output formatter based on the passed in class namevoid
MemoryOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Close all resources used in this formattervoid
OutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Close resources to store resultsprotected String
FileOutputFormatter. generateAbsoluteOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId)
Generates the name of an output file.protected String
FileOutputFormatter. generateAbsoluteOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId, int iteration)
Generates the name of an output file.Object
MemoryOutputFormatter. getOutputDataValue(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType, OutputPropertyType outputProperty, Object[] keyValues)
Get a specified data valueint
MemoryOutputFormatter. getPositionOfOutputKeyProperty(OutputType outputType, OutputPropertyType outputKeyProperty)
Returns the position of a property type in the output key property arrayint
MemoryOutputFormatter. getPositionOfOutputValueProperty(OutputType outputType, OutputPropertyType outputValueProperty)
Returns the position of a property type in the output values property arrayvoid
MemoryOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Opens all resources used in the formattervoid
OutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Open resources to store resultsvoid
BaseOutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)
Write data to output filevoid
OutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)
Persist the output data based on the passed in configuration and adapter (contained in the configuration)protected abstract void
BaseOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected void
MemoryOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected abstract void
BaseOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to the CSV fileprotected void
MemoryOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to Map in memoryprotected abstract void
BaseOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the CSV fileprotected void
MemoryOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the Map in memoryprotected abstract void
BaseOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write OD Path results for the time period to the CSV fileprotected void
MemoryOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Path results for the time period to the CSV fileprotected abstract void
BaseOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV fileprotected void
MemoryOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV file -
Uses of PlanItException in org.goplanit.output.property
Methods in org.goplanit.output.property that throw PlanItException Modifier and Type Method Description static OutputPropertyType
OutputPropertyType. fromHeaderName(String name)
Returns the enumeration value associated with a specified header name (the header name in input and output files)static Optional<Integer>
IterationIndexOutputProperty. getIterationIndex(TrafficAssignment trafficAssignment)
Returns the current iteration indexstatic Optional<Long>
ModeIdOutputProperty. getModeId(Mode mode)
Returns the Id of the current modestatic Optional<Long>
RunIdOutputProperty. getRunId(TrafficAssignment trafficAssignment)
Returns the current run idstatic Optional<String>
TimePeriodExternalIdOutputProperty. getTimePeriodExternalId(TimePeriod timePeriod)
Returns the current time period external Idstatic Optional<Long>
TimePeriodIdOutputProperty. getTimePeriodId(TimePeriod timePeriod)
Returns the current time period Idstatic Optional<String>
TimePeriodXmlIdOutputProperty. getTimePeriodXmlId(TimePeriod timePeriod)
Returns the current time period xml Idstatic OutputProperty
OutputProperty. of(String propertyClassName)
Generate the appropriate BaseOutputProperty object from a specified class namestatic OutputProperty
OutputProperty. of(OutputPropertyType outputProperty)
Generate the appropriate BaseOutputProperty object from a specified enumeration value -
Uses of PlanItException in org.goplanit.path.choice
Methods in org.goplanit.path.choice that throw PlanItException Modifier and Type Method Description T
PathChoiceBuilder. build()
Build the path choiceprotected abstract void
PathChoiceBuilder. buildSubComponents(T pathChoiceInstance)
call to build and configure all sub components of this builderprotected void
StochasticPathChoiceBuilder. buildSubComponents(StochasticPathChoice pathChoiceInstance)
call to build and configure all sub components of this buildervoid
PathChoiceConfigurator. configure(PathChoice pathChoice)
Needed to avoid issues with generics, although it should be obvious that T extends SmoothingLogitChoiceModelConfigurator<? extends LogitChoiceModel>
StochasticPathChoiceConfigurator. createAndRegisterLogitModel(String logitChoiceModelType)
create and register the logit model of choicestatic PathChoiceBuilder<? extends PathChoice>
PathChoiceBuilderFactory. createBuilder(String pathChoiceType, IdGroupingToken projectToken, InputBuilderListener inputBuilder)
Create a builder for given path choice typestatic PathChoiceConfigurator<? extends PathChoice>
PathChoiceConfiguratorFactory. createConfigurator(String pathChoiceType)
Create a configurator for given path choicetypeprotected Configurator<StochasticPathChoice>
StochasticPathChoiceBuilder. createConfigurator()
Allow derived classes to provide their own configurator for this builder, by default we create a base class configuratorprotected LogitChoiceModel
StochasticPathChoiceBuilder. createLogitChoiceModelInstance(StochasticPathChoiceConfigurator configurator)
create a logit model instance based on passed in configuratorprotected T
PathChoiceBuilder. createPathChoiceInstance()
Factory method to create the instance of the desired typeConstructors in org.goplanit.path.choice that throw PlanItException Constructor Description PathChoiceBuilder(Class<T> pathChoiceClass, IdGroupingToken projectToken, InputBuilderListener inputBuilderListener)
ConstructorStochasticPathChoiceBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilderListener)
Constructor -
Uses of PlanItException in org.goplanit.path.choice.logit
Methods in org.goplanit.path.choice.logit that throw PlanItException Modifier and Type Method Description void
LogitChoiceModelConfigurator. configure(LogitChoiceModel logitChoiceModel)
Needed to avoid issues with generics, although it should be obvious that T extends logit choice modelstatic LogitChoiceModelConfigurator<? extends LogitChoiceModel>
LogitChoiceModelConfiguratorFactory. createConfigurator(String logitChoiceModelType)
Create a configurator for given logit choice model type -
Uses of PlanItException in org.goplanit.project
Methods in org.goplanit.project that throw PlanItException Modifier and Type Method Description Demands
CustomPlanItProject. createAndRegisterDemands(Zoning zoning, LayeredNetwork<?,?> network)
Create and register demands to the projectDemands
PlanItProjectInput. createAndRegisterDemands(Zoning zoning, LayeredNetwork<?,?> network)
Create and register demands to the project inputsLayeredNetwork<?,?>
CustomPlanItProject. createAndRegisterInfrastructureNetwork(String infrastructureNetworkType)
Create and register an infrastructure based network on the projectLayeredNetwork<?,?>
PlanItProjectInput. createAndRegisterInfrastructureNetwork(String infrastructureNetworkType)
Create and register an infrastructure based network on the project inputInitialMacroscopicLinkSegmentCost
CustomPlanItProject. createAndRegisterInitialLinkSegmentCost(LayeredNetwork<?,?> 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 projectInitialMacroscopicLinkSegmentCost
CustomPlanItProject. createAndRegisterInitialLinkSegmentCost(LayeredNetwork<?,?> network, String fileName, TimePeriod timePeriod)
Create and register initial link segment costs from a (single) file and register it to the provided time periodInitialMacroscopicLinkSegmentCost
PlanItProjectInput. createAndRegisterInitialLinkSegmentCost(LayeredNetwork<?,?> network, String fileName)
Create and register initial link segment costs from a (single) file which we assume are available in the native XML/CSV output format as provided in this project.protected InitialMacroscopicLinkSegmentCost
PlanItProjectInput. createAndRegisterInitialLinkSegmentCost(LayeredNetwork<?,?> network, String fileName, TimePeriod timePeriod)
Create and register initial link segment costs from a (single) file for all time periods (which are assumed are sorted by start time)MacroscopicNetwork
CustomPlanItProject. createAndRegisterMacroscopicNetwork()
Create and register a macroscopic network on the projectOdPathSets
CustomPlanItProject. createAndRegisterOdPathSets(NetworkLayer networkLayer, Zoning zoning, String odPathSetInputPath)
Create and register the OD path sets as populated by the input builder through the path sourceOdPathSets
PlanItProjectInput. createAndRegisterOdPathSets(NetworkLayer networkLayer, Zoning zoning, String odPathSetInputPath)
Create and register the OD path sets on the project inputOutputFormatter
CustomPlanItProject. createAndRegisterOutputFormatter(String outputFormatterType)
Create and register an output formatter instance of a given typeRoutedServices
CustomPlanItProject. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)
Create and register routed services to the projectRoutedServices
PlanItProjectInput. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)
Create and register routed services to the project inputsServiceNetwork
CustomPlanItProject. createAndRegisterServiceNetwork(MacroscopicNetwork network)
Create and register service networks to the projectServiceNetwork
PlanItProjectInput. createAndRegisterServiceNetwork(MacroscopicNetwork network)
Create and register service networks to the project inputsTrafficAssignmentConfigurator<? extends TrafficAssignment>
CustomPlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, LayeredNetwork<?,?> theNetwork)
Create and register a traffic assignment instance of a given typeZoning
CustomPlanItProject. createAndRegisterZoning(LayeredNetwork<?,?> network)
Create and register the zoning system on the networkZoning
PlanItProjectInput. createAndRegisterZoning(LayeredNetwork<?,?> infrastructureNetwork)
Create and register the zoning system on the network and project inputvoid
CustomPlanItProject. executeAllTrafficAssignments()
Execute all registered traffic assignments Top-level error recording is done in this class.void
CustomPlanItProject. registerEligibleTrafficComponentClass(Class<? extends PlanitComponent<?>> theClazz)
Register a class that we allow to be instantiated as a concrete implementation of a traffic assignment component that can be used in PLANit -
Uses of PlanItException in org.goplanit.sdinteraction.smoothing
Methods in org.goplanit.sdinteraction.smoothing that throw PlanItException Modifier and Type Method Description void
SmoothingConfigurator. configure(Smoothing smoothing)
Needed to avoid issues with generics, although it should be obvious that T extends Smoothingstatic SmoothingConfigurator<? extends Smoothing>
SmoothingConfiguratorFactory. createConfigurator(String smoothingType)
Create a configurator for given smoothing type -
Uses of PlanItException in org.goplanit.supply.fundamentaldiagram
Methods in org.goplanit.supply.fundamentaldiagram that throw PlanItException Modifier and Type Method Description void
FundamentalDiagramConfigurator. configure(FundamentalDiagramComponent fundamentalDiagram)
Needed to avoid issues with generics, although it should be obvious that T extends FundamentalDiagramstatic FundamentalDiagramConfigurator<? extends FundamentalDiagramComponent>
FundamentalDiagramConfiguratorFactory. createConfigurator(String fundamentalDiagramType)
Create a configurator for given fundamental diagram typevoid
FundamentalDiagramComponent. onPlanitComponentEvent(PlanitComponentEvent event)
Registered for PopulateFundamentalDiagramEvent which allows the component to initialise all the default available Fds based on the network layer it is registered for. -
Uses of PlanItException in org.goplanit.supply.network.nodemodel
Methods in org.goplanit.supply.network.nodemodel that throw PlanItException Modifier and Type Method Description void
NodeModelConfigurator. configure(NodeModelComponent nodeModel)
Needed to avoid issues with generics, although it should be obvious that T extends NodeModelstatic NodeModelConfigurator<? extends NodeModelComponent>
NodeModelConfiguratorFactory. createConfigurator(String nodeModelType)
Create a configurator for given node model type -
Uses of PlanItException in org.goplanit.tntp
Methods in org.goplanit.tntp that throw PlanItException Modifier and Type Method Description void
TntpMain. execute(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, String linkOutputFilename, String odOutputFilename, String odPathOutputFilename, boolean persistZeroFlow, int maxIterations, double epsilon, Unit outputCostTimeUnit, double defaultMaximumSpeed)
Top-level method which runs PLANit for TNTP format input -
Uses of PlanItException in org.goplanit.tntp.input
Methods in org.goplanit.tntp.input that throw PlanItException Modifier and Type Method Description void
TntpInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)
Whenever a project component is created this method will be invokedprotected void
TntpInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)
Populates the Demands object from the input fileprotected void
TntpInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork macroscopicNetwork)
Creates the physical network object from the data in the input fileprotected void
TntpInputBuilder. populateZoning(Zoning zoning, Object parameter1)
Creates the Zoning object and connectoids from the data in the network file In TNTP this method does not need to read a TAZ file.Constructors in org.goplanit.tntp.input that throw PlanItException Constructor Description TntpInputBuilder(String networkFileLocation, String nodeCoordinateFileLocation, String demandFileLocation)
Constructor. -
Uses of PlanItException in org.goplanit.tntp.output.formatter
Methods in org.goplanit.tntp.output.formatter that throw PlanItException Modifier and Type Method Description void
CSVOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)
Close output CSV file for a specified output type configurationvoid
CSVOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)
Open output CSV file for specified output type configuration.protected void
CSVOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write General results for the current time period to the CSV fileprotected void
CSVOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write link results for the current time period to the CSV fileprotected void
CSVOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Origin-Destination results for the time period to the CSV fileprotected void
CSVOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Path results for the time period to the CSV fileprotected void
CSVOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)
Write Simulation results for the current time period to the CSV fileConstructors in org.goplanit.tntp.output.formatter that throw PlanItException Constructor Description CSVOutputFormatter(IdGroupingToken groupId)
Base constructor -
Uses of PlanItException in org.goplanit.tntp.project
Constructors in org.goplanit.tntp.project that throw PlanItException Constructor Description TntpProject(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation)
Constructor -
Uses of PlanItException in org.goplanit.utils.args
Methods in org.goplanit.utils.args that throw PlanItException Modifier and Type Method Description static Map<String,String>
ArgumentParser. convertArgsToMap(String[] args)
Convert program arguments into a Map, with signature:<key>=/-/:<value>
, e.g.static Map<String,String>
ArgumentParser. convertArgsToMap(String[] args, ArgumentStyle style)
Convert program arguments into a Map, based on given styleprotected static Map<String,String>
ArgumentParser. convertArgsToMapDefaultStyle(String[] args)
Convert program arguments into a Map, with signature:<key>=/-/:<value>
, e.g.protected static Map<String,String>
ArgumentParser. convertArgsToMapDoubleHyphenStyle(String[] args)
Convert program arguments into a Map, with signature:--<key> <value>
, e.g. -
Uses of PlanItException in org.goplanit.utils.builder
Methods in org.goplanit.utils.builder that throw PlanItException Modifier and Type Method Description abstract T
Builder. build()
Build an instance of class Tprotected void
Configurator. callVoidMethod(T instance, String methodName, Object... parameters)
Call a void method on the toConfigure class instanceprotected Class<?>[]
Configurator. collectParameterTypes(Object... parameters)
collect the parameter types of the passed in object in their original ordervoid
Configurator. configure(T toConfigureInstance)
Configure the passed in instance with the registered method callsprotected abstract Configurator<T>
Builder. createConfigurator()
Allow derived classes to provide their own configurator for this builder, by default we create a base class configurator -
Uses of PlanItException in org.goplanit.utils.cumulatives
Methods in org.goplanit.utils.cumulatives that throw PlanItException Modifier and Type Method Description void
PiecewiseLinearCumulativeCurve. add(CumulativePoint cumulativePoint, double timeInSecondsEpsilon)
append a new cumulative point to the curve which must be later or equal than the current latest point given the passed in timeInSecondsEpsilon -
Uses of PlanItException in org.goplanit.utils.exceptions
Methods in org.goplanit.utils.exceptions that throw PlanItException Modifier and Type Method Description static void
PlanItException. throwIf(boolean condition, String message, Object... objectArgs)
Throw a planitException if condition is metstatic void
PlanItException. throwIfNull(Object object, String message)
Throw a planitException if object is nullstatic void
PlanItException. throwIfNull(Object object, String message, Object... objectArgs)
Throw a planitException if object is null -
Uses of PlanItException in org.goplanit.utils.function
Methods in org.goplanit.utils.function that throw PlanItException Modifier and Type Method Description void
PlanitExceptionConsumer. accept(T t)
R
PlanitExceptionFunction. apply(T t)
-
Uses of PlanItException in org.goplanit.utils.functionalinterface
Methods in org.goplanit.utils.functionalinterface that throw PlanItException Modifier and Type Method Description void
QuadConsumer. accept(T t, U u, V v, W w)
Performs this operation on the given arguments -
Uses of PlanItException in org.goplanit.utils.geo
Methods in org.goplanit.utils.geo that throw PlanItException Modifier and Type Method Description static org.locationtech.jts.geom.LineString
PlanitJtsUtils. convertToJtsLineString(org.opengis.geometry.coordinate.LineString openGisLineString)
Convert an open gis line string object to a JTS Gis LineString instance by copying the internal coordinatesstatic org.locationtech.jts.geom.LineString
PlanitJtsUtils. convertToLineString(org.locationtech.jts.geom.MultiLineString jtsMultiLineString)
Cast a JTS MultiLineString with a single entry into a JTS LineString instance if validstatic org.locationtech.jts.geom.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. 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 Edge
PlanitGraphGeoUtils. findEdgeClosestToLineString(org.locationtech.jts.geom.LineString lineString, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in line string using a projection from any existing coordinate on the line string to the geometry of the link.static Edge
PlanitGraphGeoUtils. findEdgeClosestToPoint(org.locationtech.jts.geom.Point point, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)
Find the edge closest to the passed in point using a projection from any existing coordinate on the geometry to the geometry of the link.protected static <T> Set<? extends T>
PlanitGraphGeoUtils. findPlanitEntitiesWithinDistance(org.locationtech.jts.geom.Coordinate reference, Collection<? extends T> planitEntities, Double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find all PLANit entities within striking distance of the line string from the available entities based on the max distance provided.protected static <T> Set<? extends T>
PlanitGraphGeoUtils. findPlanitEntitiesWithinDistance(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, Double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find all PLANit entities within striking distance of the line string from the available entities based on the max distance provided.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.Coordinate reference, Collection<? extends T> planitEntities, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the closest distance to the reference point and the geometry for some PLANit entity with a supported geometry from the provided collection.protected static <T> Pair<T,Double>
PlanitGraphGeoUtils. findPlanitEntityClosest(org.locationtech.jts.geom.LineString lineString, Collection<? extends T> planitEntities, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Find the closest PLANit entity to the line string from the available entities.static boolean
PlanitGraphGeoUtils. isVertexNearBoundingBox(Vertex node, org.locationtech.jts.geom.Envelope boundingBox, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)
Verify if node is within maximum distance of provided bounding boxstatic org.locationtech.jts.geom.Coordinate[]
PlanitJtsUtils. makeClosed2D(org.locationtech.jts.geom.Coordinate[] coordArray)
create a copy of the passed in coord array and close it by adding a new coordinate at the end that matches the first. -
Uses of PlanItException in org.goplanit.utils.graph
Methods in org.goplanit.utils.graph that throw PlanItException Modifier and Type Method Description default ConjugateEdge
ConjugateEdgeFactory. registerNew(ConjugateVertex vertexA, ConjugateVertex vertexB, Edge originalEdge)
Create new edge to graph identified via its id, (not registered on vertices)ConjugateEdge
ConjugateEdgeFactory. registerNew(ConjugateVertex vertexA, ConjugateVertex vertexB, Edge originalEdge, boolean registerOnVertices)
Create new conjugate edge to network identified via its id, allow to be registered on conjugate vertices if indicated)default Edge
EdgeFactory. registerNew(Vertex vertexA, Vertex vertexB)
Create new edge to graph identified via its id, (not registered on vertices)Edge
EdgeFactory. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.utils.graph.directed
Methods in org.goplanit.utils.graph.directed that throw PlanItException Modifier and Type Method Description void
ConjugateEdgeSegments. register(ConjugateDirectedEdge parentEdge, ConjugateEdgeSegment edgeSegment, boolean directionAB)
Register a conjugate edge segment (not registered on nodes and edge)void
EdgeSegments. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)
Register a edge segment (not registered on nodes and edge)default ConjugateDirectedEdge
ConjugateDirectedEdgeFactory. registerNew(ConjugateDirectedVertex vertexA, ConjugateDirectedVertex vertexB, DirectedEdge originalEdge1, DirectedEdge originalEdge2)
Create and register new conjugate directed edge to graph identified via its id, (not registered on vertices)ConjugateDirectedEdge
ConjugateDirectedEdgeFactory. registerNew(ConjugateDirectedVertex vertexA, ConjugateDirectedVertex vertexB, DirectedEdge originalEdge1, DirectedEdge originalEdge2, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated)default DirectedEdge
DirectedEdgeFactory. registerNew(DirectedVertex vertexA, DirectedVertex vertexB)
Create and register new directed edge to graph identified via its id, (not registered on vertices)DirectedEdge
DirectedEdgeFactory. registerNew(DirectedVertex vertexA, DirectedVertex vertexB, boolean registerOnVertices)
Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.utils.graph.modifier
Methods in org.goplanit.utils.graph.modifier that throw PlanItException Modifier and Type Method Description void
GraphModifier. removeSubGraphOf(V referenceVertex)
remove the (sub)graph in which the passed in vertex resides. -
Uses of PlanItException in org.goplanit.utils.mode
Methods in org.goplanit.utils.mode that throw PlanItException Modifier and Type Method Description PredefinedMode
ModeFactory. createPredefinedMode(IdGroupingToken groupId, PredefinedModeType modeType)
create a predefined mode instance without registering it on the container. -
Uses of PlanItException in org.goplanit.utils.network.layer
Methods in org.goplanit.utils.network.layer that throw PlanItException Modifier and Type Method Description void
TopologicalLayer. transform(org.opengis.referencing.crs.CoordinateReferenceSystem fromCoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem toCoordinateReferenceSystem)
transform all underlying geometries in the layer from the given crs to the new crs -
Uses of PlanItException in org.goplanit.utils.network.layer.macroscopic
Methods in org.goplanit.utils.network.layer.macroscopic that throw PlanItException Modifier and Type Method Description MacroscopicLinkSegment
MacroscopicLinkSegmentFactory. create(MacroscopicLink parentLink, boolean directionAB)
Create macroscopic link segment, do not register nor register on nodes and link -
Uses of PlanItException in org.goplanit.utils.network.layer.modifier
Methods in org.goplanit.utils.network.layer.modifier that throw PlanItException Modifier and Type Method Description default void
TopologicalLayerModifier. removeDanglingSubnetworks()
remove any dangling subnetworks from the layer if they exist and subsequently reorder the internal ids if needed -
Uses of PlanItException in org.goplanit.utils.network.layer.physical
Methods in org.goplanit.utils.network.layer.physical that throw PlanItException Modifier and Type Method Description LinkSegment
LinkSegmentFactory. create(Link parentLink, boolean directionAB)
Create link segmentLinkSegment
LinkSegmentFactory. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)
Create link segment and register it -
Uses of PlanItException in org.goplanit.utils.reflection
Methods in org.goplanit.utils.reflection that throw PlanItException Modifier and Type Method Description static <T> T
ReflectionUtils. createTypedInstance(String className, Object... constructorParameters)
delegates toReflectionUtils.createInstance(String, Object...)
only casts result to type provided -
Uses of PlanItException in org.goplanit.utils.time
Methods in org.goplanit.utils.time that throw PlanItException Modifier and Type Method Description static long
TimePeriodUtils. convertHoursToSeconds(String fourDigitHour)
Convert duration to seconds given start time using the 24-hour clock
-