Uses of Class
org.goplanit.utils.exceptions.PlanItException
-
-
Uses of PlanItException in org.goplanit.algorithms.nodemodel
Methods in org.goplanit.algorithms.nodemodel that throw PlanItException Modifier and Type Method Description protected voidTampereNodeModel. initialiseRun()Initialise the run conforming to Step 1 in Appendix A of Bliemer et al.org.ojalgo.array.Array1D<Double>TampereNodeModel. run()Run the Tampere node modelConstructors in org.goplanit.algorithms.nodemodel that throw PlanItException Constructor Description TampereNodeModel(TampereNodeModelInput tampereNodeModelInput)ConstructorTampereNodeModelFixedInput(Node node, boolean initialiseReceivingFlowsAtCapacity)Constructor.TampereNodeModelInput(TampereNodeModelFixedInput fixedInput, org.ojalgo.array.Array2D<Double> turnSendingFlows)Constructor for a particular node model runTampereNodeModelInput(TampereNodeModelFixedInput fixedInput, org.ojalgo.array.Array2D<Double> turnSendingFlows, org.ojalgo.array.Array1D<Double> outgoingLinkSegmentReceivingFlows)Constructor for a particular node model run. -
Uses of PlanItException in org.goplanit.assignment
Methods in org.goplanit.assignment that throw PlanItException Modifier and Type Method Description OutputTypeConfigurationTrafficAssignmentConfigurator. activateOutput(OutputType outputType)Method that allows one to activate specific output types for persistence on the traffic assignment instanceTTrafficAssignmentBuilder. build()Build the traffic assignmentprotected voidTrafficAssignmentBuilder. buildSubComponents(T trafficAssignmentInstance)call to build and configure all sub components of this builderprotected voidTrafficAssignment. checkForEmptyComponents()Check if any components are undefined, if so throw exceptionGapFunctionConfigurator<? extends GapFunction>TrafficAssignmentConfigurator. createAndRegisterGapFunction(String gapFunctionType)Create and Register gapFunction componentPhysicalCostConfigurator<? extends AbstractPhysicalCost>TrafficAssignmentConfigurator. createAndRegisterPhysicalCost(String physicalTravelTimeCostFunctionType)Create and register physical link cost function to determine travel timeSmoothingConfigurator<? extends Smoothing>TrafficAssignmentConfigurator. createAndRegisterSmoothing(String smoothingType)Create and Register smoothing componentVirtualCostConfigurator<? extends AbstractVirtualCost>TrafficAssignmentConfigurator. createAndRegisterVirtualCost(String virtualTraveltimeCostFunctionType)Create and Register virtual link cost function to determine travel timestatic TrafficAssignmentBuilder<?>TrafficAssignmentBuilderFactory. createBuilder(String trafficAssignmentType, IdGroupingToken projectToken, InputBuilderListener inputBuilder, Demands theDemands, Zoning theZoning, 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 GapFunctionTrafficAssignmentBuilder. createGapFunctionInstance(StopCriterion stopCriterion)create a gap function instance based on configurationprotected AbstractPhysicalCostTrafficAssignmentBuilder. createPhysicalCostInstance()create a physical cost instance based on configurationprotected SmoothingTrafficAssignmentBuilder. createSmoothingInstance()create a smoothing instance based on configurationprotected TTrafficAssignmentBuilder. createTrafficAssignmentInstance()Factory method to create the instance of the desired typeprotected voidTrafficAssignment. createTransportNetwork()Initialize the transport network by combining the physical and virtual componentsprotected AbstractVirtualCostTrafficAssignmentBuilder. createVirtualCostInstance()create a virtual cost instance based on configurationprotected voidTrafficAssignment. disbandTransportNetwork()detach the virtual and physical transport network againvoidTrafficAssignment. execute()Execute assignment, including initializing resources, running equilibration and then closing resourcesvoidStaticTrafficAssignment. executeEquilibration()Execute equilibration over all time periods and modesprotected abstract voidTrafficAssignment. executeEquilibration()Run equilibration after resources initialized, including saving resultsprotected voidStaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod)Perform assignment for a given time periodprotected abstract voidStaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)Execute the time period for the registered modesprotected voidTrafficAssignment. finalizeAfterExecution()Finalize all relevant traffic assignment components after execution of the assignment has endedprotected voidTrafficAssignment. initialiseBeforeExecution()Initialize all relevant traffic assignment components before execution of the assignment commencesvoidTrafficAssignmentConfigurator. registerInitialLinkSegmentCost(TimePeriod timePeriod, InitialModesLinkSegmentCost initialLinkSegmentCost)Register the initial link segment cost for a specified time periodvoidTrafficAssignmentConfigurator. registerOutputFormatter(OutputFormatter outputFormatter)Register an output formattervoidTrafficAssignment. setVirtualCost(AbstractVirtualCost virtualCost)Set the virtual cost where in case the cost is an InteractorAccessor will trigger an event to get access to the required data via requesting an InteractorAccesseevoidTrafficAssignmentConfigurator. unregisterOutputFormatter(OutputFormatter outputFormatter)Remove an output formatter which has already been registered This is used by the Python interface, which registers the PlanItIO formatter by defaultprotected abstract voidTrafficAssignment. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected abstract voidTrafficAssignment. verifyNetworkDemandZoningCompatibility()Verify if the traffic assignment inputs (components which are provided upon creation and not subcomponents that are created as part of the build process of the assignment are compatible).Constructors in org.goplanit.assignment that throw PlanItException Constructor Description TrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken projectToken, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, 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 voidAlgorithmB. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)Execute the time period for the registered modesvoidAlgorithmBEquilibration. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)The method that performs the equilibration for a given time period using AlgorithmBprotected voidAlgorithmB. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network. -
Uses of PlanItException in org.goplanit.assignment.ltm
Methods in org.goplanit.assignment.ltm that throw PlanItException Modifier and Type Method Description protected voidLtmTrafficAssignmentBuilder. buildSubComponents(T ltmAssignmentInstance)In addition to the super class sub components, we also construct the subcomponents specific to dynamic traffic assignmentFundamentalDiagramConfigurator<? extends FundamentalDiagramComponent>LtmConfigurator. createAndRegisterFundamentalDiagram(String fundamentalDiagramType)choose a particular fundamental diagram implementationNodeModelConfigurator<? extends NodeModelComponent>LtmConfigurator. createAndRegisterNodeModel(String nodeModelType)choose a particular node model implementationPathChoiceConfigurator<? extends PathChoice>LtmConfigurator. createAndRegisterPathChoice(String pathChoiceType)choose a particular path choice implementationprotected FundamentalDiagramComponentLtmTrafficAssignmentBuilder. createFundamentalDiagramComponentInstance(MacroscopicNetworkLayer macroscopicNetworkLayer)create a fundamental diagram component instance based on configurationprotected PathChoiceLtmTrafficAssignmentBuilder. createPathChoiceInstance(LtmConfigurator<? extends LtmAssignment> configurator)create a path choice instance based on configurationprotected voidLtmAssignment. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.protected voidLtmAssignment. verifyNetworkDemandZoningCompatibility()Verify if the network contains a single compatible infrastructure layer because sLTM does not (yet) support multiple (or intermodal) network layersConstructors in org.goplanit.assignment.ltm that throw PlanItException Constructor Description LtmConfigurator(Class<T> ltmClass)ConstructorLtmTrafficAssignmentBuilder(Class<T> trafficAssignmentClass, IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, 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 EventBasedLtmConfiguratorEventBasedLtmTrafficAssignmentBuilder. createConfigurator()create the configurator for ELTMvoidEventBasedLtm. executeEquilibration()Constructors in org.goplanit.assignment.ltm.eltm that throw PlanItException Constructor Description EventBasedLtmConfigurator()ConstructorEventBasedLtmTrafficAssignmentBuilder(IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, 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 StaticLtmConfiguratorStaticLtmTrafficAssignmentBuilder. createConfigurator()create the configurator for sLTMprotected voidStaticLtm. executeEquilibration()Run equilibration after resources initialized, including saving resultsprotected voidStaticLtmAssignmentStrategy. executeNetworkCostsUpdate(Mode theMode, boolean updateOnlyPotentiallyBlockingNodeCosts, double[] costsToUpdate)Perform an update of the network wide costs where a partial update is applied in case only potentially blocking nodes are updated during the loadingprotected voidStaticLtm. initialiseBeforeExecution()Initialise the components before we start any assignment + create the assignment strategy (bush or path based)protected voidStaticLtmBushStrategyBase. 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 voidStaticLtm. verifyComponentCompatibility()Verify if the create traffic assignment (sbu)components are compatible with each other and the created transport network.Constructors in org.goplanit.assignment.ltm.sltm that throw PlanItException Constructor Description StaticLtmConfigurator()ConstructorStaticLtmTrafficAssignmentBuilder(IdGroupingToken groupId, InputBuilderListener inputBuilderListener, Demands demands, Zoning zoning, 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 voidTraditionalStaticAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)Perform assignment for a given time period using Dijkstra's algorithmprotected voidTraditionalStaticAssignment. verifyComponentCompatibility()Verify if a supported gap function is usedprotected voidTraditionalStaticAssignment. verifyNetworkDemandZoningCompatibility()Verify if the network contains a single compatible infrastructure layer as traditional static assignment does not support intermodal network layersConstructors in org.goplanit.assignment.traditionalstatic that throw PlanItException Constructor Description TraditionalStaticAssignmentBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilder, Demands demands, Zoning zoning, 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 voidPlanitComponent. onPlanitComponentEvent(PlanitComponentEvent event)Act upon the provided event. -
Uses of PlanItException in org.goplanit.component.event
Methods in org.goplanit.component.event that throw PlanItException Modifier and Type Method Description voidPlanitComponentListener. onPlanitComponentEvent(PlanitComponentEvent event)Notify method for PLANit component events. -
Uses of PlanItException in org.goplanit.converter
Methods in org.goplanit.converter that throw PlanItException Modifier and Type Method Description voidConverter. convert()Convert the reader's parsed content by passing it on to the writer.abstract voidConverterBase. convert()Convert the reader's content and pass it on to the writer to convert it.voidPairConverter. convert()Convert the reader's parsed content by passing it on to the writer.protected voidConverter. write(T readEntity)voidConverterWriter. write(T entity)write a network to the writer's output format.voidPairConverterWriter. 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 voidDemandsConverter. 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 voidIntermodalConverter. convert()Support conversion fo PLANit network and zoning without servicesvoidIntermodalConverter. convertWithServices()Support conversion fo PLANit network and zoning with servicesQuadruple<MacroscopicNetwork,Zoning,T,U>IntermodalReader. readWithServices()voidIntermodalWriter. 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 voidPhysicalCostConfigurator. configure(AbstractPhysicalCost physicalCost)Needed to avoid issues with generics, although it should be obvious that T extends PhysicalCoststatic PhysicalCostConfigurator<? extends AbstractPhysicalCost>PhysicalCostConfiguratorFactory. createConfigurator(String physicalCostType)Create a configurator for given physical cost typeabstract voidAbstractPhysicalCost. initialiseBeforeSimulation(LayeredNetwork<?,?> network)Initialize the cost parameter values in the networkvoidBprLinkTravelTimeCost. initialiseBeforeSimulation(LayeredNetwork<?,?> network)Register the BPR cost parameter values on the PhysicalNetworkvoidFreeFlowLinkTravelTimeCost. initialiseBeforeSimulation(LayeredNetwork<?,?> network)Initialize the cost parameter values in the networkvoidSteadyStateTravelTimeCost. 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 voidVirtualCostConfigurator. configure(AbstractVirtualCost virtualCost)Needed to avoid issues with generics, although it should be obvious that T extends VirtualCoststatic VirtualCostConfigurator<? extends AbstractVirtualCost>VirtualCostConfiguratorFactory. createConfigurator(String virtualCostType)Create a configurator for given virtual cost typeabstract voidAbstractVirtualCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)Initialize the virtual cost componentvoidFixedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)Initialize the virtual cost componentvoidSpeedConnectoidTravelTimeCost. initialiseBeforeSimulation(VirtualNetwork virtualNetwork)Initialize the virtual cost componentvoidSpeedConnectoidTravelTimeCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its idvoidVirtualCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its id -
Uses of PlanItException in org.goplanit.data
Methods in org.goplanit.data that throw PlanItException Modifier and Type Method Description intMultiKeyPlanItData. getPositionOfOutputKeyProperty(OutputPropertyType outputKeyProperty)Get the position of a property type in the output keys property arrayintMultiKeyPlanItData. getPositionOfOutputValueProperty(OutputPropertyType outputValueProperty)Get the position of a property type in the output values property arrayObjectMultiKeyPlanItData. getRowValue(OutputPropertyType outputProperty, Object... keyValues)Get data value for a specified row and columnObject[]MultiKeyPlanItData. getRowValues(Object... keyValues)Returns an array representing the row of data values defined by the specified array of key valuesvoidMultiKeyPlanItData. putRow(Object[] outputValues, Object... keyValues)Puts the data values into a specified rowvoidMultiKeyPlanItData. putRowValue(OutputPropertyType outputProperty, Object value, Object... keyValues)Set the data value for an individual cellConstructors in org.goplanit.data that throw PlanItException Constructor Description MultiKeyPlanItData(OutputProperty[] outputKeyProperties, OutputProperty... outputValueProperties)ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty... outputValueProperties)ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty outputKeyProperty2, OutputProperty... outputValueProperties)ConstructorMultiKeyPlanItData(OutputProperty outputKeyProperty1, OutputProperty outputKeyProperty2, OutputProperty outputKeyProperty3, OutputProperty... outputValueProperties)Constructor -
Uses of PlanItException in org.goplanit.gap
Methods in org.goplanit.gap that throw PlanItException Modifier and Type Method Description voidGapFunctionConfigurator. configure(GapFunction gapFunction)Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionvoidStopCriterionConfigurator. configure(StopCriterion stopCriterion)Needed to avoid issues with generics, although it should be obvious that T extends GapFunctionstatic GapFunctionConfigurator<? extends GapFunction>GapFunctionConfiguratorFactory. createConfigurator(String gapFunctionType)Create a configurator for given gap function type -
Uses of PlanItException in org.goplanit.graph
Methods in org.goplanit.graph that throw PlanItException Modifier and Type Method Description EdgeEdgeFactoryImpl. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.graph.directed
Methods in org.goplanit.graph.directed that throw PlanItException Modifier and Type Method Description voidEdgeSegmentsImpl. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)Register a edge segment (not registered on nodes and edge)ConjugateDirectedEdgeConjugateDirectedEdgeFactoryImpl. 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)DirectedEdgeDirectedEdgeFactoryImpl. registerNew(DirectedVertex vertexA, DirectedVertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.graph.directed.modifier
Methods in org.goplanit.graph.directed.modifier that throw PlanItException Modifier and Type Method Description voidDirectedGraphModifierImpl. 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 voidPlanitDemandsReader. populateDemandConfiguration()Sets up all the configuration data from the XML demands fileprotected voidPlanitDemandsReader. populateDemandContents()Parses the demand contents of the XMLvoidPlanitDemandsWriter. 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 voidPlanitIntermodalWriter. write(MacroscopicNetwork macroscopicNetwork, Zoning zoning)Write a network to the writer's output format.voidPlanitIntermodalWriter. 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 voidPlanitNetworkReader. parseLinkAndLinkSegments(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer, PlanitJtsCrsUtils jtsUtils)parse link and link segmentsvoidPlanitNetworkReader. parseLinkSegmentTypeAccessProperties(org.goplanit.xml.generated.XMLElementAccessGroup xmlAccessGroupProperties, MacroscopicLinkSegmentType linkSegmentType, Collection<Mode> defaultModes)parse the mode properties for given link segment type and populate the helper with themvoidPlanitNetworkReader. parseLinkSegmentTypes(org.goplanit.xml.generated.XMLElementLayerConfiguration xmlLayerconfiguration, MacroscopicNetworkLayer networkLayer)Parse the link segment typesvoidPlanitNetworkReader. parseNodes(org.goplanit.xml.generated.XMLElementInfrastructureLayer xmlLayer, MacroscopicNetworkLayer networkLayer)Create and register nodes on the networkprotected voidPlanitNetworkReader. 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 voidPlanitRoutedServicesWriter. write(RoutedServices routedServices)write a network to the writer's output format.voidPlanitServiceNetworkWriter. 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 voidPlanitZoningReader. 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.LineStringPlanitOpenGisUtils. convertToOpenGisLineString(org.locationtech.jts.geom.LineString jtsLineString)Convert a JTS line string object to an OpenGis LineString instance by transferring the internal coordinatesorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. convertToOpenGisLineString(org.locationtech.jts.geom.MultiLineString jtsMultiLineString)Converts a JTS MultiLineString with a single entry into an OpenGIS LineString instanceorg.opengis.geometry.DirectPositionPlanitOpenGisUtils. createDirectPosition(double xCoordinate, double yCoordinate)Create DirectPosition object from X- and Y-coordinatesorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineString(String value, char ts, char cs)Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineString(List<Double> coordinateList)Create a line string from the doubles passed in (list of doubles containing x1,y1,x2,y2,etc.org.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineStringFromCsvString(String value, String ts, String cs)Based on the CSV string construct a line stringorg.opengis.geometry.coordinate.LineStringPlanitOpenGisUtils. createLineStringFromPositions(List<org.opengis.geometry.coordinate.Position> positionList)Create a line string from the passed in positionsorg.opengis.geometry.coordinate.PositionPlanitOpenGisUtils. getClosestSamplePointOnLineString(org.opengis.geometry.coordinate.Position toMatch, org.opengis.geometry.coordinate.LineString lineString)Find the closest explicit sample point registered on the line string compared to the passed in positiondoublePlanitOpenGisUtils. getDistanceInKilometres(Vertex vertexA, Vertex vertexB)Compute the distance in kilometres between two vertices assuming the positions are set and based on the same crs as registered on this class instancedoublePlanitOpenGisUtils. getDistanceInKilometres(org.opengis.geometry.coordinate.LineString geometry)Compute the length of the line string by traversing all nodes and computing the segment by segment distances TODO: find out if a faster way is possibledoublePlanitOpenGisUtils. getDistanceInKilometres(org.opengis.geometry.coordinate.Position startPosition, org.opengis.geometry.coordinate.Position endPosition)Compute the distance in kilometres between two positions assuming the positions are provided in the same crs as registered on this class instancedoublePlanitOpenGisUtils. getDistanceInMetres(org.opengis.geometry.coordinate.Position startPosition, org.opengis.geometry.coordinate.Position endPosition)Compute the distance in metres between two positions assuming the positions are provided in the same crs as registered on this class instance -
Uses of PlanItException in org.goplanit.io.input
Methods in org.goplanit.io.input that throw PlanItException Modifier and Type Method Description voidPlanItInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)Whenever a project component is created this method will be invokedprotected voidPlanItInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)Populates the Demands object from the input fileprotected voidPlanItInputBuilder. populateInitialLinkSegmentCost(PopulateInitialLinkSegmentCostEvent initialCostEvent)Populate the initial link segment cost from a CSV fileprotected voidPlanItInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork network)Creates the macroscopic network object from the data in the input fileprotected voidPlanItInputBuilder. populateRoutedServices(RoutedServices routedServicesToPopulate)Populate the routed services based on the local XML file if it can be found.protected voidPlanItInputBuilder. populateServiceNetwork(ServiceNetwork serviceNetworkToPopulate)Populate the service network based on the local XML file if it can be found.protected voidPlanItInputBuilder. populateZoning(Zoning zoning, MacroscopicNetwork network)Creates the Zoning object and connectoids from the data in the input fileConstructors in org.goplanit.io.input that throw PlanItException Constructor Description PlanItInputBuilder(String projectPath)Constructor which generates the input objects from files in a specified directory, using the default extension ".xml"PlanItInputBuilder(String projectPath, String xmlFileExtension)Constructor which generates the input objects from files in a specified directory -
Uses of PlanItException in org.goplanit.io.output.formatter
Methods in org.goplanit.io.output.formatter that throw PlanItException Modifier and Type Method Description voidPlanItOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Finalize the persistence after the simulation.voidPlanItOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Create the output directories and open the CSV writersvoidPlanItOutputFormatter. resetCsvDirectory()Call this method to delete all existing files in the CSV output directoryvoidPlanItOutputFormatter. resetXmlDirectory()Call this method to delete all existing files in the XML output directoryprotected voidPlanItOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected voidPlanItOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to the CSV fileprotected voidPlanItOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the CSV fileprotected voidPlanItOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Path results for the time period to the CSV fileprotected voidPlanItOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV fileConstructors in org.goplanit.io.output.formatter that throw PlanItException Constructor Description PlanItOutputFormatter(IdGroupingToken groupId)Constructor, takes values for properties file name, description and version property -
Uses of PlanItException in org.goplanit.io.project
Methods in org.goplanit.io.project that throw PlanItException Modifier and Type Method Description TrafficAssignmentConfigurator<? extends TrafficAssignment>PlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, 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 networkvoidPlanItSimpleProject. executeAllTrafficAssignments()Execute all registered traffic assignments Top-level error recording is done in this class.Constructors in org.goplanit.io.project that throw PlanItException Constructor Description PlanItProject(String projectPath)Constructor taking project path where to find all project input filesPlanItSimpleProject()Base constructor for simple project which adopts the PlanItIO input/output format.PlanItSimpleProject(String projectPath)Base constructor for simple project which adopts the PlanItIO input/output format -
Uses of PlanItException in org.goplanit.io.xml.converter
Methods in org.goplanit.io.xml.converter that throw PlanItException Modifier and Type Method Description static org.goplanit.xml.generated.UnitsvaluesXmlEnumConverter. convertFromPlanItToXmlGeneratedUnits(OutputProperty outputProperty)Convert values from Units enumeration in PLANit project to generated Unitsvalues enumeration -
Uses of PlanItException in org.goplanit.io.xml.network.physical.macroscopic
Methods in org.goplanit.io.xml.network.physical.macroscopic that throw PlanItException Modifier and Type Method Description static DoubleXmlMacroscopicNetworkLayerHelper. 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 booleanMatsimWriter. validateNetwork(LayeredNetwork<?,?> referenceNetwork)Validate the network instance available, throw or log when issues are foundvoidMatsimIntermodalWriter. write(MacroscopicNetwork infrastructureNetwork, Zoning zoning)Persist the PLANit network and zoning as a MATSim network to diskvoidMatsimNetworkWriter. write(LayeredNetwork<?,?> network)write a network to the writer's output format.voidMatsimRoutedServicesWriter. 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 voidMatsimNetworkWriter. writeDetailedGeometryFile(MacroscopicNetworkLayerImpl networkLayer)Create detailed geometry file compatible with VIA viewervoidMatsimIntermodalWriter. writeWithServices(MacroscopicNetwork infrastructureNetwork, Zoning zoning, ServiceNetwork serviceNetwork, RoutedServices routedServices)Persist the PLANit network and zoning as a MATSIM compatible network to diskprotected voidMatsimNetworkWriter. 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 voidUntypedPhysicalNetwork. removeDanglingSubnetworks()remove any dangling subnetworks from the network's layers if they exist and subsequently reorder the internal ids if neededbooleanMacroscopicNetworkLayerConfigurator. removeLayer(String layerXmlId)remove a proposed layer, this means that all modes mapped to this layer are no longer mapped at allvoidTopologicalLayerNetwork. transform(org.opengis.referencing.crs.CoordinateReferenceSystem newCoordinateReferenceSystem)change the coordinate system, which will result in an update of all geometries in the network layers from the original CRS to the new CRS. -
Uses of PlanItException in org.goplanit.network.layer
Methods in org.goplanit.network.layer that throw PlanItException Modifier and Type Method Description voidUntypedNetworkLayerImpl. transform(org.opengis.referencing.crs.CoordinateReferenceSystem fromCoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem toCoordinateReferenceSystem)transform all underlying geometries in the layer from the given crs to the new crs -
Uses of PlanItException in org.goplanit.osm.converter
Methods in org.goplanit.osm.converter that throw PlanItException Modifier and Type Method Description voidOsmReaderSettings. setBoundingBox(Number x1, Number x2, Number y1, Number y2)Set an additional (more restricting) square bounding box based on provided envelopevoidOsmReaderSettings. setInputFile(String inputFile)Set the input file to use, which is internally converted into a 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 OsmIntermodalReaderOsmIntermodalReaderFactory. create(String inputFile, String countryName)Create a PLANitOsmIntermodalReader which will create its own macroscopic network and zoningstatic OsmIntermodalReaderOsmIntermodalReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate, Zoning zoningToPopulate)Create a PLANitOsmIntermodalReader while providing an OSM network, and zoning to 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 OsmNetworkReaderOsmNetworkReaderFactory. create(String inputFile, String countryName)Create a PLANitOSMReader which will create its own macroscopic networkstatic OsmNetworkReaderOsmNetworkReaderFactory. create(String inputFile, String countryName, PlanitOsmNetwork osmNetworkToPopulate)Create a PLANitOSMReader while providing an OSM network to populate -
Uses of PlanItException in org.goplanit.osm.defaults
Methods in org.goplanit.osm.defaults that throw PlanItException Modifier and Type Method Description static StringCountrySpecificDefaultUtils. extractCountryNameFromFile(Path filePath)Validate if file is a valid resource file and its name is constructed based on a country code.protected static voidOsmRailwayTypeConfiguration. initialiseDefaultActivatedOsmRailwayTypes()Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do include, i.e., support.protected static voidOsmRailwayTypeConfiguration. initialiseDefaultDeactivatedOsmRailwayTypes()Since we are building a macroscopic network based on OSM, we provide a mapping from the common OSM railway types to macroscopic link segment types that we explicitly do not activate either because they are not used in general assignment (miniature) or because we cannot properly convert them (turn tables, razed), or because they do not represent a railway as such (platform as a way) FUNICULAR MONO_RAIL NARROW_GAUGE ABANDONED CONSTRUCTION DISUSED MINIATURE RAZED TURNTABLE PROPOSEDprotected static voidOsmSpeedLimitDefaultsByCountry. populateCountrySpecificSpeedLimits()Populate the country specific defaults for highway/railway types for supported countriesprotected static voidOsmSpeedLimitDefaultsByCountry. 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 voidOsm2PlanitConversionTemplates. 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 voidOsm2PlanitConversionTemplates. 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 voidOsm2PlanitConversionTemplates. osm2PlanitIntermodalNoServices(OsmIntermodalReaderSettings settings, PlanitIntermodalWriterSettings writerSettings)Template for parsing intermodal OSM network/infrastructure without any services based on provided settingsstatic voidOsm2PlanitConversionTemplates. 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.PointOsmNodeUtils. createPoint(long osmNodeId, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Create a point based on the OSMnodestatic org.locationtech.jts.geom.GeometryOsmWayUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)extract geometry from the osm way which can either be a line string or polygonstatic org.locationtech.jts.geom.GeometryPlanitOsmUtils. extractGeometry(de.topobyte.osm4j.core.model.iface.OsmEntity osmEntity, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)extract geometry from the osm entity, either a point, line string or polygonstatic org.locationtech.jts.geom.LineStringOsmWayUtils. extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Extract the geometry for the passed in way as line string for the given nodesstatic org.locationtech.jts.geom.LineStringOsmWayUtils. extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Extract the geometry for the passed in way as line stringstatic org.locationtech.jts.geom.LineStringOsmWayUtils. extractLineStringNoThrow(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, int startNodeIndex, int endNodeIndex, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Identical toOsmWayUtils.extractLineString(de.topobyte.osm4j.core.model.iface.OsmWay, java.util.Map<java.lang.Long, de.topobyte.osm4j.core.model.iface.OsmNode>), except it does not throw exceptions, but simply logs any issues foundstatic org.locationtech.jts.geom.PolygonOsmWayUtils. extractPolygon(de.topobyte.osm4j.core.model.iface.OsmWay osmWay, Map<Long,de.topobyte.osm4j.core.model.iface.OsmNode> osmNodes)Extract the geometry for the passed in way as polygon (assumed it has been identified as such already)static ZoneOsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)find the closest zone to the node location.static ZoneOsmNodeUtils. findZoneWithClosestCoordinateToNode(de.topobyte.osm4j.core.model.iface.OsmNode osmNode, Collection<? extends Zone> zones, PlanitJtsCrsUtils geoUtils)identical to findZoneWithClosest coordinate that requires a maximum search distance.static booleanPlanitTransferZoneUtils. isTransferZoneAtLocation(TransferZone transferZone, org.locationtech.jts.geom.Point location)Verify if the geometry of the transfer zone equates to the provided locationstatic doublePlanitOsmUtils. parseMaxSpeedValueKmPerHour(String maxSpeedValue)parse an OSM maxSpeedValue tag value and perform unit conversion to km/h if neededstatic double[]PlanitOsmUtils. parseMaxSpeedValueLanesKmPerHour(String maxSpeedLanes)parse an OSM maxSpeedValue tag value with speeds per lane separated by "|" and perform unit conversion to km/h if needed -
Uses of PlanItException in org.goplanit.output
Methods in org.goplanit.output that throw PlanItException Modifier and Type Method Description OutputTypeConfigurationOutputManager. createAndRegisterOutputTypeConfiguration(OutputType outputType)Factory method to create an output configuration for a given typevoidOutputManager. finaliseAfterSimulation()Allows the output manager to finalise itself and any of its registered output formatters to after the simulation endedvoidOutputManager. initialiseBeforeSimulation(long runId)Allows the output manager to initialize itself and any of its registered output formatters to prepare before the simulation startsvoidOutputManager. persistOutputData(TimePeriod timePeriod, Set<Mode> modes, boolean converged)Persist the output data for all registered output types -
Uses of PlanItException in org.goplanit.output.adapter
Methods in org.goplanit.output.adapter that throw PlanItException Modifier and Type Method Description protected static Optional<?>OutputTypeAdapterImpl. createConvertedUnitsValue(OutputProperty outputProperty, Optional<?> unconvertedValue)Convert the output property value that is assumed to be in the properties default units in the desired units indicated on the propertydefault Optional<Double>MacroscopicLinkOutputTypeAdapter. getCapacityPerLanePcuHour(MacroscopicLinkSegment linkSegment)Returns the value of the capacity per lanestatic Optional<String>OdOutputTypeAdapter. getDestinationZoneExternalId(OdDataIterator<?> odIterator)Returns the external Id of the destination zone for the current ODstatic Optional<String>PathOutputTypeAdapter. getDestinationZoneExternalId(OdDataIterator<?> odPathIterator)Returns the external Id of the destination zone for the current cell in the OD path matrixstatic Optional<Long>OdOutputTypeAdapter. getDestinationZoneId(OdDataIterator<?> odIterator)Returns the Id of the destination zone for the current cell in the OD destinationstatic Optional<Long>PathOutputTypeAdapter. getDestinationZoneId(OdDataIterator<?> odPathIterator)Returns the Id of the destination zone for the current cell in the OD path matrixstatic Optional<String>OdOutputTypeAdapter. getDestinationZoneXmlId(OdDataIterator<?> odIterator)Returns the XML Id of the destination zone for the current OD destinationstatic Optional<String>PathOutputTypeAdapter. getDestinationZoneXmlId(OdDataIterator<?> odPathIterator)Returns the Xml Id of the destination zone for the current cell in the OD path matrixdefault Optional<String>MacroscopicLinkOutputTypeAdapter. getDownstreamNodeExternalId(MacroscopicLinkSegment linkSegment)Returns the external Id of the downstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getDownstreamNodeExternalId(T linkSegment)Returns the external Id of the downstream nodedefault Optional<Long>UntypedLinkOutputTypeAdapter. getDownstreamNodeId(T linkSegment)Returns the Id of the downstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getDownstreamNodeLocation(T linkSegment)Returns the location of the downstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getDownstreamNodeXmlId(T linkSegment)Returns the XML Id of the downstream nodeOptional<Integer>OdOutputTypeAdapterImpl. getIterationIndexForSubOutputType(SubOutputTypeEnum outputTypeEnum)ODSkimOutputType.COST: Cost is collected through the shortest path in iteration i based on the link costs of iteration i-1, so the od cost of i-1 are only known once we are in iteration i, hence this information is trailing behind one iteration, and we can only store it in i.Optional<Integer>OutputTypeAdapter. getIterationIndexForSubOutputType(SubOutputTypeEnum subOutputTypeEnum)Determine the iteration index that is relevant for the data related to the provided output type enum Generally, this equates to the actual current iteration index, but if the data for example is trailing an iteration then this will collect the correct iteration index for this data as opposed to the iteration index of the simulation itself.Optional<Integer>OutputTypeAdapterImpl. getIterationIndexForSubOutputType(SubOutputTypeEnum outputTypeEnum)Default implementation assumes that regular iteration index is used, which in most cases it true, only when for example costs are trailing one iteration behind in case they are only revealed in the next iteration this method should be overriddendefault Optional<Double>UntypedLinkOutputTypeAdapter. getLength(T linkSegment)Returns the length of the current link segmentdefault Optional<String>UntypedLinkOutputTypeAdapter. getLinkSegmentExternalId(T linkSegment)Returns the external Id of the current link segmentdefault Optional<Long>UntypedLinkOutputTypeAdapter. getLinkSegmentId(T linkSegment)Returns the Id of the current link segmentdefault Optional<Long>MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeId(MacroscopicLinkSegment linkSegment)Return the link segment type id of the current link segmentdefault Optional<String>MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeName(MacroscopicLinkSegment linkSegment)Return the link segment type name of the current link segmentdefault Optional<String>MacroscopicLinkOutputTypeAdapter. getLinkSegmentTypeXmlId(MacroscopicLinkSegment linkSegment)Return the link segment type xml id of the current link segmentdefault Optional<String>UntypedLinkOutputTypeAdapter. getLinkSegmentXmlId(T linkSegment)Returns the XML Id of the current link segmentdefault Optional<Double>MacroscopicLinkOutputTypeAdapter. getMaximumDensity(MacroscopicLinkSegment linkSegment)Returns the flow density of the current linkdefault Optional<Double>MacroscopicLinkOutputTypeAdapter. getMaximumSpeed(MacroscopicLinkSegment linkSegment, Mode mode)Returns the maximum speed through the current link segmentdefault Optional<Integer>UntypedLinkOutputTypeAdapter. getNumberOfLanes(T linkSegment)Returns the number of lanes of the current linkstatic <T> Optional<T>OdOutputTypeAdapter. getOdValue(OdDataIterator<T> odIterator)Returns the Od valuestatic Optional<String>OdOutputTypeAdapter. getOriginZoneExternalId(OdDataIterator<?> odIterator)Returns the origin zone external Id for the current cell in the OD originstatic Optional<String>PathOutputTypeAdapter. getOriginZoneExternalId(OdDataIterator<?> odPathIterator)Returns the origin zone external Id for the current cell in the OD path matrixstatic Optional<Long>OdOutputTypeAdapter. getOriginZoneId(OdDataIterator<?> odIterator)Returns the origin zone Id for the current cell in the OD originstatic Optional<Long>PathOutputTypeAdapter. getOriginZoneId(OdDataIterator<?> odPathIterator)Returns the origin zone Id for the current cell in the OD path matrixstatic Optional<String>OdOutputTypeAdapter. getOriginZoneXmlId(OdDataIterator<?> odIterator)Returns the origin zone XML Id for the current cell in the OD originstatic Optional<String>PathOutputTypeAdapter. getOriginZoneXmlId(OdDataIterator<?> odPathIterator)Returns the Xml Id of the origin zone for the current cell in the OD path matrixdefault Optional<String>UntypedLinkOutputTypeAdapter. getUpstreamNodeExternalId(T linkSegment)Returns the external Id of the upstream nodedefault Optional<Long>UntypedLinkOutputTypeAdapter. getUpstreamNodeId(T linkSegment)Returns the Id of the upstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getUpstreamNodeLocation(T linkSegment)Returns the location of the upstream nodedefault Optional<String>UntypedLinkOutputTypeAdapter. getUpstreamNodeXmlId(T linkSegment)Returns the XML Id of the upstream node -
Uses of PlanItException in org.goplanit.output.configuration
Methods in org.goplanit.output.configuration that throw PlanItException Modifier and Type Method Description voidOutputTypeConfiguration. addProperty(OutputPropertyType outputProperty)Add an output property to be included in the output filesOutputTypeConfigurationOutputConfiguration. createAndRegisterOutputTypeConfiguration(OutputType outputType)Factory method to create an output configuration for a given typebooleanOutputTypeConfiguration. removeProperty(String propertyClassName)Remove an output property from the list of properties to be included in the output filebooleanOutputTypeConfiguration. removeProperty(OutputPropertyType outputProperty)Remove an output property from the list of properties to be included in the output filevoidPathOutputTypeConfiguration. setPathIdentificationType(PathOutputIdentificationType pathIdType)Set the path id typeConstructors in org.goplanit.output.configuration that throw PlanItException Constructor Description LinkOutputTypeConfiguration()Constructor Define the default output properties here.OdOutputTypeConfiguration()Constructor Define the default output properties here.OutputTypeConfiguration(OutputType outputType)OutputTypeconfiguration constructorPathOutputTypeConfiguration()Constructor Define the default output properties here. -
Uses of PlanItException in org.goplanit.output.formatter
Methods in org.goplanit.output.formatter that return PlanItException Modifier and Type Method Description protected PlanItExceptionCsvFileOutputFormatter. writeLinkResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)Write output values to the Link CSV file for the current iterationprotected PlanItExceptionCsvFileOutputFormatter. writeOdResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)Write output values to the OD CSV file for the current iterationprotected PlanItExceptionCsvFileOutputFormatter. writePathResultsForCurrentTimePeriodToCsvPrinter(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, org.apache.commons.csv.CSVPrinter csvPrinter)Write output values to the Path CSV file for the current iterationMethods in org.goplanit.output.formatter that throw PlanItException Modifier and Type Method Description static OutputFormatterOutputFormatterFactory. createOutputFormatter(String OutputFormatterCanonicalClassName)Create an output formatter based on the passed in class namevoidMemoryOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Close all resources used in this formattervoidOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Close resources to store resultsprotected StringFileOutputFormatter. generateAbsoluteOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId)Generates the name of an output file.protected StringFileOutputFormatter. generateAbsoluteOutputFileName(String outputDirectory, String nameRoot, String nameExtension, TimePeriod timePeriod, OutputType outputType, long runId, int iteration)Generates the name of an output file.ObjectMemoryOutputFormatter. getOutputDataValue(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType, OutputPropertyType outputProperty, Object[] keyValues)Get a specified data valueintMemoryOutputFormatter. getPositionOfOutputKeyProperty(OutputType outputType, OutputPropertyType outputKeyProperty)Returns the position of a property type in the output key property arrayintMemoryOutputFormatter. getPositionOfOutputValueProperty(OutputType outputType, OutputPropertyType outputValueProperty)Returns the position of a property type in the output values property arrayvoidMemoryOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Opens all resources used in the formattervoidOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Open resources to store resultsvoidBaseOutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)Write data to output filevoidOutputFormatter. persist(TimePeriod timePeriod, Set<Mode> modes, OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputAdapter outputAdapter)Persist the output data based on the passed in configuration and adapter (contained in the configuration)protected abstract voidBaseOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected voidMemoryOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected abstract voidBaseOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to the CSV fileprotected voidMemoryOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to Map in memoryprotected abstract voidBaseOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the CSV fileprotected voidMemoryOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the Map in memoryprotected abstract voidBaseOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write OD Path results for the time period to the CSV fileprotected voidMemoryOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Path results for the time period to the CSV fileprotected abstract voidBaseOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV fileprotected voidMemoryOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV file -
Uses of PlanItException in org.goplanit.output.property
Methods in org.goplanit.output.property that throw PlanItException Modifier and Type Method Description static OutputPropertyTypeOutputPropertyType. fromHeaderName(String name)Returns the enumeration value associated with a specified header name (the header name in input and output files)static Optional<Integer>IterationIndexOutputProperty. getIterationIndex(TrafficAssignment trafficAssignment)Returns the current iteration indexstatic Optional<Long>ModeIdOutputProperty. getModeId(Mode mode)Returns the Id of the current modestatic Optional<Long>RunIdOutputProperty. getRunId(TrafficAssignment trafficAssignment)Returns the current run idstatic Optional<String>TimePeriodExternalIdOutputProperty. getTimePeriodExternalId(TimePeriod timePeriod)Returns the current time period external Idstatic Optional<Long>TimePeriodIdOutputProperty. getTimePeriodId(TimePeriod timePeriod)Returns the current time period Idstatic Optional<String>TimePeriodXmlIdOutputProperty. getTimePeriodXmlId(TimePeriod timePeriod)Returns the current time period xml Idstatic OutputPropertyOutputProperty. of(String propertyClassName)Generate the appropriate BaseOutputProperty object from a specified class namestatic OutputPropertyOutputProperty. of(OutputPropertyType outputProperty)Generate the appropriate BaseOutputProperty object from a specified enumeration value -
Uses of PlanItException in org.goplanit.path.choice
Methods in org.goplanit.path.choice that throw PlanItException Modifier and Type Method Description TPathChoiceBuilder. build()Build the path choiceprotected abstract voidPathChoiceBuilder. buildSubComponents(T pathChoiceInstance)call to build and configure all sub components of this builderprotected voidStochasticPathChoiceBuilder. buildSubComponents(StochasticPathChoice pathChoiceInstance)call to build and configure all sub components of this buildervoidPathChoiceConfigurator. configure(PathChoice pathChoice)Needed to avoid issues with generics, although it should be obvious that T extends SmoothingLogitChoiceModelConfigurator<? extends LogitChoiceModel>StochasticPathChoiceConfigurator. createAndRegisterLogitModel(String logitChoiceModelType)create and register the logit model of choicestatic PathChoiceBuilder<? extends PathChoice>PathChoiceBuilderFactory. createBuilder(String pathChoiceType, IdGroupingToken projectToken, InputBuilderListener inputBuilder)Create a builder for given path choice typestatic PathChoiceConfigurator<? extends PathChoice>PathChoiceConfiguratorFactory. createConfigurator(String pathChoiceType)Create a configurator for given path choicetypeprotected Configurator<StochasticPathChoice>StochasticPathChoiceBuilder. createConfigurator()Allow derived classes to provide their own configurator for this builder, by default we create a base class configuratorprotected LogitChoiceModelStochasticPathChoiceBuilder. createLogitChoiceModelInstance(StochasticPathChoiceConfigurator configurator)create a logit model instance based on passed in configuratorprotected TPathChoiceBuilder. createPathChoiceInstance()Factory method to create the instance of the desired typeConstructors in org.goplanit.path.choice that throw PlanItException Constructor Description PathChoiceBuilder(Class<T> pathChoiceClass, IdGroupingToken projectToken, InputBuilderListener inputBuilderListener)ConstructorStochasticPathChoiceBuilder(IdGroupingToken projectToken, InputBuilderListener inputBuilderListener)Constructor -
Uses of PlanItException in org.goplanit.path.choice.logit
Methods in org.goplanit.path.choice.logit that throw PlanItException Modifier and Type Method Description voidLogitChoiceModelConfigurator. configure(LogitChoiceModel logitChoiceModel)Needed to avoid issues with generics, although it should be obvious that T extends logit choice modelstatic LogitChoiceModelConfigurator<? extends LogitChoiceModel>LogitChoiceModelConfiguratorFactory. createConfigurator(String logitChoiceModelType)Create a configurator for given logit choice model type -
Uses of PlanItException in org.goplanit.project
Methods in org.goplanit.project that throw PlanItException Modifier and Type Method Description DemandsCustomPlanItProject. createAndRegisterDemands(Zoning zoning, LayeredNetwork<?,?> network)Create and register demands to the projectDemandsPlanItProjectInput. 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 inputInitialMacroscopicLinkSegmentCostCustomPlanItProject. 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 projectInitialMacroscopicLinkSegmentCostCustomPlanItProject. 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 periodInitialMacroscopicLinkSegmentCostPlanItProjectInput. 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 InitialMacroscopicLinkSegmentCostPlanItProjectInput. 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)MacroscopicNetworkCustomPlanItProject. createAndRegisterMacroscopicNetwork()Create and register a macroscopic network on the projectOdPathSetsCustomPlanItProject. createAndRegisterOdPathSets(NetworkLayer networkLayer, Zoning zoning, String odPathSetInputPath)Create and register the OD path sets as populated by the input builder through the path sourceOdPathSetsPlanItProjectInput. createAndRegisterOdPathSets(NetworkLayer networkLayer, Zoning zoning, String odPathSetInputPath)Create and register the OD path sets on the project inputOutputFormatterCustomPlanItProject. createAndRegisterOutputFormatter(String outputFormatterType)Create and register an output formatter instance of a given typeRoutedServicesCustomPlanItProject. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)Create and register routed services to the projectRoutedServicesPlanItProjectInput. createAndRegisterRoutedServices(ServiceNetwork serviceNetwork)Create and register routed services to the project inputsServiceNetworkCustomPlanItProject. createAndRegisterServiceNetwork(MacroscopicNetwork network)Create and register service networks to the projectServiceNetworkPlanItProjectInput. createAndRegisterServiceNetwork(MacroscopicNetwork network)Create and register service networks to the project inputsTrafficAssignmentConfigurator<? extends TrafficAssignment>CustomPlanItProject. createAndRegisterTrafficAssignment(String trafficAssignmentType, Demands theDemands, Zoning theZoning, LayeredNetwork<?,?> theNetwork)Create and register a traffic assignment instance of a given typeZoningCustomPlanItProject. createAndRegisterZoning(LayeredNetwork<?,?> network)Create and register the zoning system on the networkZoningPlanItProjectInput. createAndRegisterZoning(LayeredNetwork<?,?> infrastructureNetwork)Create and register the zoning system on the network and project inputvoidCustomPlanItProject. executeAllTrafficAssignments()Execute all registered traffic assignments Top-level error recording is done in this class.voidCustomPlanItProject. registerEligibleTrafficComponentClass(Class<? extends PlanitComponent<?>> theClazz)Register a class that we allow to be instantiated as a concrete implementation of a traffic assignment component that can be used in PLANit -
Uses of PlanItException in org.goplanit.sdinteraction.smoothing
Methods in org.goplanit.sdinteraction.smoothing that throw PlanItException Modifier and Type Method Description voidSmoothingConfigurator. configure(Smoothing smoothing)Needed to avoid issues with generics, although it should be obvious that T extends Smoothingstatic SmoothingConfigurator<? extends Smoothing>SmoothingConfiguratorFactory. createConfigurator(String smoothingType)Create a configurator for given smoothing type -
Uses of PlanItException in org.goplanit.supply.fundamentaldiagram
Methods in org.goplanit.supply.fundamentaldiagram that throw PlanItException Modifier and Type Method Description voidFundamentalDiagramConfigurator. configure(FundamentalDiagramComponent fundamentalDiagram)Needed to avoid issues with generics, although it should be obvious that T extends FundamentalDiagramstatic FundamentalDiagramConfigurator<? extends FundamentalDiagramComponent>FundamentalDiagramConfiguratorFactory. createConfigurator(String fundamentalDiagramType)Create a configurator for given fundamental diagram typevoidFundamentalDiagramComponent. onPlanitComponentEvent(PlanitComponentEvent event)Registered for PopulateFundamentalDiagramEvent which allows the component to initialise all the default available Fds based on the network layer it is registered for. -
Uses of PlanItException in org.goplanit.supply.network.nodemodel
Methods in org.goplanit.supply.network.nodemodel that throw PlanItException Modifier and Type Method Description voidNodeModelConfigurator. configure(NodeModelComponent nodeModel)Needed to avoid issues with generics, although it should be obvious that T extends NodeModelstatic NodeModelConfigurator<? extends NodeModelComponent>NodeModelConfiguratorFactory. createConfigurator(String nodeModelType)Create a configurator for given node model type -
Uses of PlanItException in org.goplanit.tntp
Methods in org.goplanit.tntp that throw PlanItException Modifier and Type Method Description voidTntpMain. execute(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation, String linkOutputFilename, String odOutputFilename, String odPathOutputFilename, boolean persistZeroFlow, int maxIterations, double epsilon, Unit outputCostTimeUnit, double defaultMaximumSpeed)Top-level method which runs PLANit for TNTP format input -
Uses of PlanItException in org.goplanit.tntp.input
Methods in org.goplanit.tntp.input that throw PlanItException Modifier and Type Method Description voidTntpInputBuilder. onPlanitComponentEvent(PlanitComponentEvent event)Whenever a project component is created this method will be invokedprotected voidTntpInputBuilder. populateDemands(Demands demands, Zoning zoning, MacroscopicNetwork network)Populates the Demands object from the input fileprotected voidTntpInputBuilder. populateMacroscopicNetwork(MacroscopicNetwork macroscopicNetwork)Creates the physical network object from the data in the input fileprotected voidTntpInputBuilder. 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 voidCSVOutputFormatter. finaliseAfterSimulation(OutputConfiguration outputConfiguration, OutputAdapter outputAdapter)Close output CSV file for a specified output type configurationvoidCSVOutputFormatter. initialiseBeforeSimulation(OutputConfiguration outputConfiguration, long runId)Open output CSV file for specified output type configuration.protected voidCSVOutputFormatter. writeGeneralResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write General results for the current time period to the CSV fileprotected voidCSVOutputFormatter. writeLinkResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write link results for the current time period to the CSV fileprotected voidCSVOutputFormatter. writeOdResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Origin-Destination results for the time period to the CSV fileprotected voidCSVOutputFormatter. writePathResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Path results for the time period to the CSV fileprotected voidCSVOutputFormatter. writeSimulationResultsForCurrentTimePeriod(OutputConfiguration outputConfiguration, OutputTypeConfiguration outputTypeConfiguration, OutputTypeEnum currentOutputType, OutputAdapter outputAdapter, Set<Mode> modes, TimePeriod timePeriod, int iterationIndex)Write Simulation results for the current time period to the CSV fileConstructors in org.goplanit.tntp.output.formatter that throw PlanItException Constructor Description CSVOutputFormatter(IdGroupingToken groupId)Base constructor -
Uses of PlanItException in org.goplanit.tntp.project
Constructors in org.goplanit.tntp.project that throw PlanItException Constructor Description TntpProject(String networkFileLocation, String demandFileLocation, String nodeCoordinateFileLocation)Constructor -
Uses of PlanItException in org.goplanit.utils.args
Methods in org.goplanit.utils.args that throw PlanItException Modifier and Type Method Description static Map<String,String>ArgumentParser. convertArgsToMap(String[] args)Convert program arguments into a Map, with signature:<key>=/-/:<value>, e.g.static Map<String,String>ArgumentParser. convertArgsToMap(String[] args, ArgumentStyle style)Convert program arguments into a Map, based on given styleprotected static Map<String,String>ArgumentParser. convertArgsToMapDefaultStyle(String[] args)Convert program arguments into a Map, with signature:<key>=/-/:<value>, e.g.protected static Map<String,String>ArgumentParser. convertArgsToMapDoubleHyphenStyle(String[] args)Convert program arguments into a Map, with signature:--<key> <value>, e.g. -
Uses of PlanItException in org.goplanit.utils.builder
Methods in org.goplanit.utils.builder that throw PlanItException Modifier and Type Method Description abstract TBuilder. build()Build an instance of class Tprotected voidConfigurator. callVoidMethod(T instance, String methodName, Object... parameters)Call a void method on the toConfigure class instanceprotected Class<?>[]Configurator. collectParameterTypes(Object... parameters)collect the parameter types of the passed in object in their original ordervoidConfigurator. configure(T toConfigureInstance)Configure the passed in instance with the registered method callsprotected abstract Configurator<T>Builder. createConfigurator()Allow derived classes to provide their own configurator for this builder, by default we create a base class configurator -
Uses of PlanItException in org.goplanit.utils.cumulatives
Methods in org.goplanit.utils.cumulatives that throw PlanItException Modifier and Type Method Description voidPiecewiseLinearCumulativeCurve. add(CumulativePoint cumulativePoint, double timeInSecondsEpsilon)append a new cumulative point to the curve which must be later or equal than the current latest point given the passed in timeInSecondsEpsilon -
Uses of PlanItException in org.goplanit.utils.exceptions
Methods in org.goplanit.utils.exceptions that throw PlanItException Modifier and Type Method Description static voidPlanItException. throwIf(boolean condition, String message, Object... objectArgs)Throw a planitException if condition is metstatic voidPlanItException. throwIfNull(Object object, String message)Throw a planitException if object is nullstatic voidPlanItException. throwIfNull(Object object, String message, Object... objectArgs)Throw a planitException if object is null -
Uses of PlanItException in org.goplanit.utils.function
Methods in org.goplanit.utils.function that throw PlanItException Modifier and Type Method Description voidPlanitExceptionConsumer. accept(T t)RPlanitExceptionFunction. apply(T t) -
Uses of PlanItException in org.goplanit.utils.functionalinterface
Methods in org.goplanit.utils.functionalinterface that throw PlanItException Modifier and Type Method Description voidQuadConsumer. accept(T t, U u, V v, W w)Performs this operation on the given arguments -
Uses of PlanItException in org.goplanit.utils.geo
Methods in org.goplanit.utils.geo that throw PlanItException Modifier and Type Method Description static org.locationtech.jts.geom.LineStringPlanitJtsUtils. convertToJtsLineString(org.opengis.geometry.coordinate.LineString openGisLineString)Convert an open gis line string object to a JTS Gis LineString instance by copying the internal coordinatesstatic org.locationtech.jts.geom.LineStringPlanitJtsUtils. convertToLineString(org.locationtech.jts.geom.MultiLineString jtsMultiLineString)Cast a JTS MultiLineString with a single entry into a JTS LineString instance if validstatic org.locationtech.jts.geom.LineStringPlanitJtsUtils. createCopyWithoutCoordinatesAfter(int endIndex, org.locationtech.jts.geom.LineString geometry)Remove all coordinates in the line string after but not including the passed in index.static org.locationtech.jts.geom.LineStringPlanitJtsUtils. 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 EdgePlanitGraphGeoUtils. findEdgeClosestToLineString(org.locationtech.jts.geom.LineString lineString, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)Find the edge closest to the passed in line string using a projection from any existing coordinate on the line string to the geometry of the link.static EdgePlanitGraphGeoUtils. findEdgeClosestToPoint(org.locationtech.jts.geom.Point point, Collection<? extends Edge> edges, PlanitJtsCrsUtils geoUtils)Find the edge closest to the passed in point using a projection from any existing coordinate on the geometry to the geometry of the link.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 booleanPlanitGraphGeoUtils. isVertexNearBoundingBox(Vertex node, org.locationtech.jts.geom.Envelope boundingBox, double maxDistanceMeters, PlanitJtsCrsUtils geoUtils)Verify if node is within maximum distance of provided bounding boxstatic org.locationtech.jts.geom.Coordinate[]PlanitJtsUtils. makeClosed2D(org.locationtech.jts.geom.Coordinate[] coordArray)create a copy of the passed in coord array and close it by adding a new coordinate at the end that matches the first. -
Uses of PlanItException in org.goplanit.utils.graph
Methods in org.goplanit.utils.graph that throw PlanItException Modifier and Type Method Description default ConjugateEdgeConjugateEdgeFactory. registerNew(ConjugateVertex vertexA, ConjugateVertex vertexB, Edge originalEdge)Create new edge to graph identified via its id, (not registered on vertices)ConjugateEdgeConjugateEdgeFactory. 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 EdgeEdgeFactory. registerNew(Vertex vertexA, Vertex vertexB)Create new edge to graph identified via its id, (not registered on vertices)EdgeEdgeFactory. registerNew(Vertex vertexA, Vertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.utils.graph.directed
Methods in org.goplanit.utils.graph.directed that throw PlanItException Modifier and Type Method Description voidConjugateEdgeSegments. register(ConjugateDirectedEdge parentEdge, ConjugateEdgeSegment edgeSegment, boolean directionAB)Register a conjugate edge segment (not registered on nodes and edge)voidEdgeSegments. register(DirectedEdge parentEdge, EdgeSegment edgeSegment, boolean directionAB)Register a edge segment (not registered on nodes and edge)default ConjugateDirectedEdgeConjugateDirectedEdgeFactory. 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)ConjugateDirectedEdgeConjugateDirectedEdgeFactory. 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 DirectedEdgeDirectedEdgeFactory. registerNew(DirectedVertex vertexA, DirectedVertex vertexB)Create and register new directed edge to graph identified via its id, (not registered on vertices)DirectedEdgeDirectedEdgeFactory. registerNew(DirectedVertex vertexA, DirectedVertex vertexB, boolean registerOnVertices)Create new edge to network identified via its id, allow to be registered on vertices if indicated) -
Uses of PlanItException in org.goplanit.utils.graph.modifier
Methods in org.goplanit.utils.graph.modifier that throw PlanItException Modifier and Type Method Description voidGraphModifier. 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 PredefinedModeModeFactory. 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 voidTopologicalLayer. transform(org.opengis.referencing.crs.CoordinateReferenceSystem fromCoordinateReferenceSystem, org.opengis.referencing.crs.CoordinateReferenceSystem toCoordinateReferenceSystem)transform all underlying geometries in the layer from the given crs to the new crs -
Uses of PlanItException in org.goplanit.utils.network.layer.macroscopic
Methods in org.goplanit.utils.network.layer.macroscopic that throw PlanItException Modifier and Type Method Description MacroscopicLinkSegmentMacroscopicLinkSegmentFactory. create(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 voidTopologicalLayerModifier. 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 LinkSegmentLinkSegmentFactory. create(Link parentLink, boolean directionAB)Create link segmentLinkSegmentLinkSegmentFactory. registerNew(Link parentLink, boolean directionAb, boolean registerOnNodeAndLink)Create link segment and register it -
Uses of PlanItException in org.goplanit.utils.reflection
Methods in org.goplanit.utils.reflection that throw PlanItException Modifier and Type Method Description static <T> TReflectionUtils. createTypedInstance(String className, Object... constructorParameters)delegates toReflectionUtils.createInstance(String, Object...)only casts result to type provided -
Uses of PlanItException in org.goplanit.utils.time
Methods in org.goplanit.utils.time that throw PlanItException Modifier and Type Method Description static longTimePeriodUtils. convertHoursToSeconds(String fourDigitHour)Convert duration to seconds given start time using the 24-hour clock
-