Uses of Interface
org.goplanit.utils.mode.Mode
-
-
Uses of Mode in org.goplanit.assignment
Method parameters in org.goplanit.assignment with type arguments of type Mode Modifier and Type Method Description protected abstract void
StaticTrafficAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modes -
Uses of Mode in org.goplanit.assignment.algorithmb
Method parameters in org.goplanit.assignment.algorithmb with type arguments of type Mode Modifier and Type Method Description protected void
AlgorithmB. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Execute the time period for the registered modesvoid
AlgorithmBEquilibration. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
The method that performs the equilibration for a given time period using AlgorithmB -
Uses of Mode in org.goplanit.assignment.ltm.sltm
Methods in org.goplanit.assignment.ltm.sltm with parameters of type Mode Modifier and Type Method Description protected double
PasFlowShiftExecutor. determineEntrySegmentFlowShift(EdgeSegment entrySegment, Mode theMode, AbstractPhysicalCost physicalCost, AbstractVirtualCost virtualCost, StaticLtmLoadingBushBase<?> networkLoading)
For the given PAS-entrysegment determine the flow shift to apply from the high cost to the low cost segment.protected 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 loadingOptional<?>
StaticLtmLinkOutputTypeAdapter. getLinkSegmentOutputPropertyValue(OutputProperty outputProperty, MacroscopicLinkSegment linkSegment, Mode mode, TimePeriod timePeriod)
Return the value of a specified output property of a link segment The DENSITY case should never be called for TraditionalStaticAssignment.double[]
StaticLtmSimulationData. getLinkSegmentTravelTimePcuH(Mode theMode)
Collect the travel time costs for a given mode supported by the loading of this dataOptional<Boolean>
StaticLtmLinkOutputTypeAdapter. isFlowPositive(MacroscopicLinkSegment linkSegment, Mode mode)
Returns true if there is a flow through the current specified link segment for the specified modeabstract boolean
StaticLtmAssignmentStrategy. performIteration(Mode theMode, double[] costsToUpdate, int iterationIndex)
Perform a single iteration where we perform a loading and then an equilibration step resulting in updated costsboolean
StaticLtmBushStrategyBase. performIteration(Mode theMode, double[] costsToUpdate, int iterationIndex)
Perform an iteration by: 1.boolean
StaticLtmPathStrategy. performIteration(Mode theMode, double[] costsToUpdate, int iterationIndex)
Perform a single iteration where we perform a loading and then an equilibration step resulting in updated costsboolean
PasFlowShiftExecutor. run(Mode theMode, AbstractPhysicalCost physicalCost, AbstractVirtualCost virtualCost, StaticLtmLoadingBushBase<?> networkLoading, double factor)
We account for the fact that per bush different incoming links to the PAS might be used so each incoming link that is used and that is congested should be the basis for the flow shift instead of the first congested one within the PAS.void
StaticLtmSimulationData. setLinkSegmentTravelTimePcuH(Mode theMode, double[] travelTimeCostHour)
Set the costs(travel time in hours per link segment) for a given mode supported by the loading of this datavoid
StaticLtmAssignmentStrategy. updateTimePeriod(TimePeriod timePeriod, Mode mode, OdDemands odDemands)
Invoked before start of equilibrating a new time periodConstructor parameters in org.goplanit.assignment.ltm.sltm with type arguments of type Mode Constructor Description StaticLtmSimulationData(TimePeriod timePeriod, Collection<Mode> supportedModes, long numberOfTotalLinkSegments)
Constructor -
Uses of Mode in org.goplanit.assignment.ltm.sltm.loading
Methods in org.goplanit.assignment.ltm.sltm.loading that return Mode Modifier and Type Method Description Mode
StaticLtmNetworkLoading. getSupportedMode()
The supported modes of this loadingMethods in org.goplanit.assignment.ltm.sltm.loading with parameters of type Mode Modifier and Type Method Description void
StaticLtmNetworkLoading. initialiseInputs(Mode mode, OdDemands odDemands, TransportModelNetwork network)
Initialise the loading with the given inputs -
Uses of Mode in org.goplanit.assignment.traditionalstatic
Methods in org.goplanit.assignment.traditionalstatic that return types with arguments of type Mode Modifier and Type Method Description Map<Mode,ModeData>
TraditionalStaticAssignmentSimulationData. getModeSpecificData()
Collect the data per mode for all modesMethods in org.goplanit.assignment.traditionalstatic with parameters of type Mode Modifier and Type Method Description Optional<?>
TraditionalStaticAssignmentLinkOutputTypeAdapter. getLinkSegmentOutputPropertyValue(OutputProperty outputProperty, MacroscopicLinkSegment linkSegment, Mode mode, TimePeriod timePeriod)
Return the value of a specified output property of a link segmentdouble[]
TraditionalStaticAssignmentSimulationData. getModalLinkSegmentCosts(Mode mode)
Retrieve the link segment costs for a specified modeOdPathMatrix
TraditionalStaticAssignmentSimulationData. getOdPathMatrix(Mode mode)
Retrieve the current OD path for a specified modeOptional<OdPathMatrix>
TraditionalStaticPathOutputTypeAdapter. getOdPathMatrix(Mode mode)
Retrieve an OD path matrix object for a specified modeOptional<OdSkimMatrix>
TraditionalStaticAssignmentOdOutputTypeAdapter. getOdSkimMatrix(OdSkimSubOutputType odSkimOutputType, Mode mode)
Retrieve an OD skim matrix for a specified OD skim output type and modeOdSkimMatrix
TraditionalStaticAssignmentSimulationData. getOdSkimMatrix(OdSkimSubOutputType odSkimOutputType, Mode mode)
Retrieve the skim matrix for a specified mode and skim output typeMap<OdSkimSubOutputType,OdSkimMatrix>
TraditionalStaticAssignmentSimulationData. getSkimMatrixMap(Mode mode)
Retrieve the Map of OD Skim matrices for all active OD Skim Output Types for a specified modeOptional<Boolean>
TraditionalStaticAssignmentLinkOutputTypeAdapter. isFlowPositive(MacroscopicLinkSegment linkSegment, Mode mode)
Returns true if there is a flow through the current specified link segment for the specified modevoid
TraditionalStaticAssignmentSimulationData. resetPathMatrix(Mode mode, OdZones zones)
Reset the path matrix to empty for a specified mode for all activatedvoid
TraditionalStaticAssignmentSimulationData. resetSkimMatrix(Mode mode, OdZones zones, OdOutputTypeConfiguration originDestinationOutputTypeConfiguration)
Reset the skim matrix to all zeroes for a specified mode for all activated skim output typesvoid
TraditionalStaticAssignmentSimulationData. setModalLinkSegmentCosts(Mode mode, double[] modalLinkSegmentCosts)
Set the link segment costs for a specified modeMethod parameters in org.goplanit.assignment.traditionalstatic with type arguments of type Mode Modifier and Type Method Description protected void
TraditionalStaticAssignment. executeTimePeriod(TimePeriod timePeriod, Set<Mode> modes)
Perform assignment for a given time period using Dijkstra's algorithm -
Uses of Mode in org.goplanit.converter.idmapping
Methods in org.goplanit.converter.idmapping that return types with arguments of type Mode Modifier and Type Method Description static Function<Mode,String>
IdMapperFunctionFactory. createModeIdMappingFunction(IdMapperType idMapper)
create a function that takes a mode and generates the appropriate id based on the user configurationFunction<Mode,String>
PlanitComponentIdMapper. getModeIdMapper()
get id mapper for modes -
Uses of Mode in org.goplanit.converter.zoning
Methods in org.goplanit.converter.zoning with parameters of type Mode Modifier and Type Method Description static Collection<LinkSegment>
ZoningConverterUtils. findAccessEntryLinkSegmentsForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Node node, Mode accessMode, String countryName, boolean mustAvoidCrossingTraffic, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, Function<Node,String> getOverwrittenWaitingAreaSourceId, PlanitJtsCrsUtils geoUtils)
Find the link segments that are accessible for the given access link, node, mode combination taking into account the relative location of the transfer zone if needed and mode compatibility.static Collection<? extends LinkSegment>
ZoningConverterUtils. findAccessLinkSegmentsForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Mode accessMode, String countryName, boolean mustAvoidCrossingTraffic, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, Function<Node,String> getOverwrittenWaitingAreaSourceId, PlanitJtsCrsUtils geoUtils)
static org.locationtech.jts.geom.Point
ZoningConverterUtils. findConnectoidLocationForWaitingAreaOnLink(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Mode accessMode, double maxAllowedDistanceMeters, Function<Node,String> getOverwrittenWaitingAreaSourceIdForNode, Function<org.locationtech.jts.geom.Point,String> getOverwrittenWaitingAreaSourceIdForPoint, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Deprecated.static org.locationtech.jts.geom.Point
ZoningConverterUtils. findConnectoidLocationForWaitingAreaOnLinkSegment(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLinkSegment accessLinkSegment, String accessLinkSourceId, Mode accessMode, double maxAllowedDistanceMeters, Function<Node,String> getOverwrittenWaitingAreaSourceIdForNode, Function<org.locationtech.jts.geom.Point,String> getOverwrittenWaitingAreaSourceIdForPoint, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
find a suitable connectoid location on the given link based on the constraints that it must be able to reside on a link segment that is in the correct relative position to the transfer zone and supports the access mode on at least one of the designated link segment(s) that is eligible (if any).static boolean
ZoningConverterUtils. hasWaitingAreaPotentialAccessLinkSegmentForLinkNodeModeCombination(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLink accessLink, String accessLinkSourceId, Node accessNode, Mode accessMode, Function<Node,String> getOverwrittenWaitingAreaSourceId, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Verify if any valid access link segments exist for the given combination of link, one of its extreme nodes, and the access mode, taking into account any explicit overwrites that may exist that are not bounded by any limitations on compatibility.static boolean
ZoningConverterUtils. isAvoidCrossTrafficForAccessMode(Mode accessMode)
Verify if the waiting area for an access mode's access link(segment) must be on the logical relative location (left hand side for left hand drive) or not.static <T> boolean
ZoningConverterUtils. isAvoidCrossTrafficForAccessModeOrAccessNodeWaitingAreaOverwritten(Mode accessMode, String waitingAreaSourceId, T accessEntity, Function<T,String> getOverwrittenWaitingAreaSourceId)
Verify if the waiting area for an access mode's access link(segment) must be on the logical relative location (left hand side for left hand drive) or not.static boolean
ZoningConverterUtils. isPotentialAccessEntryLinkSegmentForWaitingArea(String waitingAreaSourceId, org.locationtech.jts.geom.Geometry waitingAreaGeometry, MacroscopicLinkSegment accessLinkSegment, String accessLinkSourceId, Node accessNode, Mode accessMode, Function<Node,String> getOverwrittenWaitingAreaSourceId, Function<String,String> getOverwrittenAccessLinkSourceIdForWaitingAreaSourceId, String countryName, PlanitJtsCrsUtils geoUtils)
Verify if given link segment is potentially viable as access link segment for the given extreme node and access mode, taking into account any explicit overwrites that may exist that are not bounded by any limitations on compatibility.Method parameters in org.goplanit.converter.zoning with type arguments of type Mode Modifier and Type Method Description static DirectedConnectoid
ZoningConverterUtils. createAndRegisterDirectedConnectoid(Zoning zoning, TransferZone accessZone, boolean downstreamAccessNode, MacroscopicLinkSegment linkSegment, Set<Mode> allowedModes)
create directed connectoid for the link segment provided, all related to the given transfer zone and with access modes provided.static Collection<DirectedConnectoid>
ZoningConverterUtils. createAndRegisterDirectedConnectoids(Zoning zoning, TransferZone transferZone, Node accessNode, Iterable<? extends MacroscopicLinkSegment> linkSegments, Set<Mode> allowedModes)
create directed connectoids, one per link segment provided, all related to the given transfer zone and with access modes provided. -
Uses of Mode in org.goplanit.cost
Methods in org.goplanit.cost with parameters of type Mode Modifier and Type Method Description static double[]
CostUtils. createAndPopulateModalSegmentCost(Mode mode, AbstractPhysicalCost physicalCost, UntypedPhysicalNetwork network)
Populate cost array with only physical link segment costs based on the concrete cost classes, for given mode.static double[]
CostUtils. createAndPopulateModalSegmentCost(Mode mode, VirtualCost virtualCost, AbstractPhysicalCost physicalCost, UntypedPhysicalNetwork network, Zoning zoning)
Populate entire cost array with both virtual and non-virtual link segment costs based on the concrete cost classes, for given modedouble
Cost. getDTravelTimeDFlow(boolean uncongested, Mode mode, T edgeSegment)
Get the first derivative of the used travel time computation method towards the edge segment (in) flow rate in PCU per hour, i.e.double
Cost. getGeneralisedCost(Mode mode, T edgeSegment)
Returns the generalised cost of travel along an edge segment for a specified modedouble
Cost. getTravelTimeCost(Mode mode, T edgeSegment)
Returns the generalised cost of travel along an edge segment for a specified modestatic void
CostUtils. populateModalPhysicalLinkSegmentCosts(Mode mode, AbstractPhysicalCost physicalCost, UntypedPhysicalNetwork network, double[] costArray)
Populate part of cost array with physical link segment costs based on the concrete cost class, for a given modestatic void
CostUtils. populateModalVirtualLinkSegmentCosts(Mode mode, VirtualCost virtualCost, VirtualNetwork virtualNetwork, double[] costArray)
Populate part of cost array for virtual link segment costs based on the concrete cost class, for a given mode -
Uses of Mode in org.goplanit.cost.physical
Methods in org.goplanit.cost.physical that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
BprLinkTravelTimeCost.BprParameters. getModes()
the registered modesMethods in org.goplanit.cost.physical with parameters of type Mode Modifier and Type Method Description protected double
BprLinkTravelTimeCost. computeCostInHours(MacroscopicLinkSegment linkSegment, Mode mode, double flowPcuPerHour)
BPR function computation for.Pair<Double,Double>
BprLinkTravelTimeCost.BprParameters. getAlphaBetaParameters(Mode mode)
Retrieve Pair containing alpha and beta values for a specified modedouble
BprLinkTravelTimeCost. getDTravelTimeDFlow(boolean uncongested, Mode mode, MacroscopicLinkSegment linkSegment)
Get the first derivative of the used travel time computation method towards the edge segment (in) flow rate in PCU per hour, i.e.double
FreeFlowLinkTravelTimeCost. getDTravelTimeDFlow(boolean uncongested, Mode mode, MacroscopicLinkSegment linkSegment)
Derivative of free flow travel time is zerodouble
SteadyStateTravelTimeCost. getDTravelTimeDFlow(boolean uncongested, Mode mode, MacroscopicLinkSegment linkSegment)
First Derivative towards inflowRate.double
BprLinkTravelTimeCost. getGeneralisedCost(Mode mode, MacroscopicLinkSegment linkSegment)
Return the travel time for the current link for a given mode If the input data are invalid, this method returns a negative value.double
FreeFlowLinkTravelTimeCost. getGeneralisedCost(Mode mode, MacroscopicLinkSegment linkSegment)
Return the free flow travel time for the current link for a given mode If the input data are invalid, this method returns a negative value.double
SteadyStateTravelTimeCost. getGeneralisedCost(Mode mode, MacroscopicLinkSegment linkSegment)
Return the average travel time for the current link segment for a given modedouble
BprLinkTravelTimeCost. getTravelTimeCost(Mode mode, MacroscopicLinkSegment linkSegment)
Returns the generalised cost of travel along an edge segment for a specified modedouble
FreeFlowLinkTravelTimeCost. getTravelTimeCost(Mode mode, MacroscopicLinkSegment linkSegment)
Returns the generalised cost of travel along an edge segment for a specified modedouble
SteadyStateTravelTimeCost. getTravelTimeCost(Mode mode, MacroscopicLinkSegment linkSegment)
Returns the generalised cost of travel along an edge segment for a specified modevoid
AbstractPhysicalCost. populateWithCost(UntypedPhysicalLayer<?,?,MacroscopicLinkSegment> physicalLayer, Mode mode, double[] costToFill)
Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its id.void
BprLinkTravelTimeCost. populateWithCost(UntypedPhysicalLayer<?,?,MacroscopicLinkSegment> physicalLayer, Mode mode, double[] costToFill)
populate the cost array with the BPR link travel times for all link segments for the specified modevoid
SteadyStateTravelTimeCost. populateWithCost(UntypedPhysicalLayer<?,?,MacroscopicLinkSegment> physicalLayer, Mode mode, double[] costToFill)
Populate the cost array with the free flow link travel times for all link segments for the specified modevoid
BPRConfigurator. setDefaultParameters(Mode mode, double alpha, double beta)
Set the default alpha and beta values for a modevoid
BPRConfigurator. setDefaultParameters(MacroscopicLinkSegmentType macroscopicLinkSegmentType, Mode mode, double alpha, double beta)
Set the default alpha and beta values for a given link type and modevoid
BprLinkTravelTimeCost. setDefaultParameters(Mode mode, double alpha, double beta)
Set the default alpha and beta values for a modevoid
BprLinkTravelTimeCost. setDefaultParameters(MacroscopicLinkSegmentType macroscopicLinkSegmentType, Mode mode, double alpha, double beta)
Set the default alpha and beta values for a given link type and modevoid
BPRConfigurator. setParameters(MacroscopicLinkSegment linkSegment, Mode mode, double alpha, double beta)
Set the alpha and beta values for a given link segment and modevoid
BprLinkTravelTimeCost. setParameters(MacroscopicLinkSegment linkSegment, Mode mode, double alpha, double beta)
Set the alpha and beta values for a given link segment and mode -
Uses of Mode in org.goplanit.cost.physical.initial
Fields in org.goplanit.cost.physical.initial with type parameters of type Mode Modifier and Type Field Description protected Map<Mode,Map<Long,Double>>
InitialModesLinkSegmentCost. costPerModeAndLinkSegment
Map to store initial cost for each mode and link segment, not linked to a particular time periodMethods in org.goplanit.cost.physical.initial with parameters of type Mode Modifier and Type Method Description double
InitialMacroscopicLinkSegmentCost. getDTravelTimeDFlow(boolean uncongested, Mode mode, MacroscopicLinkSegment linkSegment)
Not supported returns -infinity for all calls and logs severe warningdouble
InitialModesLinkSegmentCost. getDTravelTimeDFlow(boolean uncongested, Mode mode, MacroscopicLinkSegment linkSegment)
Not supported returns -infinity for all calls and logs severe warningdouble
InitialMacroscopicLinkSegmentCost. getGeneralisedCost(Mode mode, MacroscopicLinkSegment linkSegment)
Returns the initial cost for each link segment and mode for time period agnostic registrations.double
InitialModesLinkSegmentCost. getGeneralisedCost(Mode mode, MacroscopicLinkSegment linkSegment)
Returns the initial cost for each link segment and mode.abstract double
InitialPhysicalCost. getGeneralisedCost(Mode mode, MacroscopicLinkSegment linkSegment)
get the initial cost for a specified mode and link segmentprotected double
InitialMacroscopicLinkSegmentCost. getSegmentCost(InitialModesLinkSegmentCost initialCostsByMode, Mode mode, MacroscopicLinkSegment linkSegment)
Returns the initial cost.double
InitialMacroscopicLinkSegmentCost. getSegmentCost(TimePeriod timePeriod, Mode mode, MacroscopicLinkSegment linkSegment)
Returns the initial cost for each link segment and mode for time period specific registrations.abstract double
InitialPhysicalCost. getSegmentCost(TimePeriod timePeriod, Mode mode, MacroscopicLinkSegment linkSegment)
get the initial cost for a specified mode and link segmentdouble
InitialMacroscopicLinkSegmentCost. getTravelTimeCost(Mode mode, MacroscopicLinkSegment linkSegment)
Returns the generalised cost of travel along an edge segment for a specified modedouble
InitialModesLinkSegmentCost. getTravelTimeCost(Mode mode, MacroscopicLinkSegment linkSegment)
Returns the generalised cost of travel along an edge segment for a specified modeboolean
InitialMacroscopicLinkSegmentCost. isSegmentCostsSetForMode(Mode mode)
Are link segment costs available for the given mode (without time period)boolean
InitialMacroscopicLinkSegmentCost. isSegmentCostsSetForMode(TimePeriod timePeriod, Mode mode)
Are link segment costs available for the given mode (without time period)boolean
InitialModesLinkSegmentCost. isSegmentCostsSetForMode(Mode mode)
Are link segment costs available for the given modeabstract boolean
InitialPhysicalCost. isSegmentCostsSetForMode(Mode mode)
Are link segment costs available for the given mode (without time period)abstract boolean
InitialPhysicalCost. isSegmentCostsSetForMode(TimePeriod timePeriod, Mode mode)
Are link segment costs available for the given mode (without time period)void
FixedInitialMacroscopicLinkSegmentCost. setAllSegmentCosts(Mode mode, double cost, int noLinkSegments)
Sets a given cost for all link segments for a given modevoid
InitialMacroscopicLinkSegmentCost. setSegmentCost(Mode mode, long linkSegmentId, double cost)
same asInitialMacroscopicLinkSegmentCost.setSegmentCost(Mode, MacroscopicLinkSegment, double)
only based on link segment's idvoid
InitialMacroscopicLinkSegmentCost. setSegmentCost(Mode mode, MacroscopicLinkSegment linkSegment, double cost)
Set the initial cost for a specified mode and link segmentvoid
InitialMacroscopicLinkSegmentCost. setSegmentCost(TimePeriod timePeriod, Mode mode, MacroscopicLinkSegment linkSegment, double cost)
Set the initial cost for a specified mode and link segmentvoid
InitialModesLinkSegmentCost. setSegmentCost(Mode mode, long linkSegmentId, double cost)
Sets the initial cost for each link segment and modevoid
InitialModesLinkSegmentCost. setSegmentCost(Mode mode, MacroscopicLinkSegment linkSegment, double cost)
Sets the initial cost for each link segment and modeabstract void
InitialPhysicalCost. setSegmentCost(Mode mode, MacroscopicLinkSegment linkSegment, double cost)
Set the initial cost for a specified mode and link segmentabstract void
InitialPhysicalCost. setSegmentCost(TimePeriod timePeriod, Mode mode, MacroscopicLinkSegment linkSegment, double cost)
Set the initial cost for a specified mode and link segment -
Uses of Mode in org.goplanit.cost.virtual
Methods in org.goplanit.cost.virtual with parameters of type Mode Modifier and Type Method Description double
FixedConnectoidTravelTimeCost. getDTravelTimeDFlow(boolean uncongested, Mode mode, ConnectoidSegment connectoidSegment)
fixed cost so derivative is always zerodouble
SpeedConnectoidTravelTimeCost. getDTravelTimeDFlow(boolean uncongested, Mode mode, ConnectoidSegment connectoidSegment)
Fixed, so derivative is always zerodouble
FixedConnectoidTravelTimeCost. getGeneralisedCost(Mode mode, ConnectoidSegment connectoidSegment)
Returns the generalised cost of travel along an edge segment for a specified modedouble
SpeedConnectoidTravelTimeCost. getGeneralisedCost(Mode mode, ConnectoidSegment connectoidSegment)
Return the connectoid travel time using speeddouble
FixedConnectoidTravelTimeCost. getTravelTimeCost(Mode mode, ConnectoidSegment connectoidSegment)
Returns the generalised cost of travel along an edge segment for a specified modedouble
SpeedConnectoidTravelTimeCost. getTravelTimeCost(Mode mode, ConnectoidSegment connectoidSegment)
Returns the generalised cost of travel along an edge segment for a specified modevoid
FixedConnectoidTravelTimeCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)
Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its idvoid
SpeedConnectoidTravelTimeCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)
Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its idvoid
VirtualCost. populateWithCost(VirtualNetwork virtualNetwork, Mode mode, double[] costToFill)
Invoker expects (mode specific ) costs in passed in array to be filled, where each entry signifies a link segment by its id -
Uses of Mode in org.goplanit.demands
Fields in org.goplanit.demands with type parameters of type Mode Modifier and Type Field Description protected TreeMap<Long,TreeMap<Mode,OdDemands>>
Demands. odDemandsByTimePeriodAndMode
Trip demand matricesMethods in org.goplanit.demands that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
Demands. getRegisteredModesForTimePeriod(TimePeriod timePeriod)
Get modes registered for the given time periodMethods in org.goplanit.demands with parameters of type Mode Modifier and Type Method Description protected UserClass
UserClassesFactory. createNew(String name, Mode mode, TravellerType travelerType)
Create a newly created instance without registering on the containerOdDemands
Demands. get(Mode mode, TimePeriod timePeriod)
Get an OdDemand by mode and time period in pcu/hourUserClass
UserClassesFactory. registerNew(String name, Mode mode, TravellerType travelerType)
register a new entry on the container and return itOdDemands
Demands. registerOdDemandPcuHour(TimePeriod timePeriod, Mode mode, OdDemands odDemandsPcuHour)
Register provided odDemand -
Uses of Mode in org.goplanit.geoio.converter.network.featurecontext
Method parameters in org.goplanit.geoio.converter.network.featurecontext with type arguments of type Mode Modifier and Type Method Description static PlanitLinkSegmentFeatureTypeContext
PlanitLinkSegmentFeatureTypeContext. create(NetworkIdMapper networkIdMapper, Collection<? extends Mode> supportedModes)
Factory methodConstructor parameters in org.goplanit.geoio.converter.network.featurecontext with type arguments of type Mode Constructor Description PlanitLinkSegmentFeatureTypeContext(NetworkIdMapper networkIdMapper, Collection<? extends Mode> supportedModes)
Constructor -
Uses of Mode in org.goplanit.geoio.converter.service
Methods in org.goplanit.geoio.converter.service with parameters of type Mode Modifier and Type Method Description protected <TT extends ManagedId>
org.geotools.data.DataStoreGeometryRoutedServicesWriter. findDataStore(PlanitEntityFeatureTypeContext<TT> featureContext, Mode mode, Path fullOutputPath)
Find data store to use, if not present, create it if possibleprotected void
GeometryRoutedServicesWriter. writeRoutedServicesLayerServices(RoutedServicesLayer layer, Mode layerMode, org.opengis.feature.simple.SimpleFeatureType featureType, PlanitRoutedServiceFeatureTypeContext featureDescription, String layerLogPrefix)
Writer the services of the layer mode combination -
Uses of Mode in org.goplanit.geoio.util
Methods in org.goplanit.geoio.util with parameters of type Mode Modifier and Type Method Description static String
ModeShortNameConverter. asShortName(Mode mode, Function<Mode,String> modeIdMapper)
As short name with 5 characters or less.static org.geotools.data.DataStore
GeoIODataStoreManager. createDataStore(Class<?> dataStoreReferenceClass, Mode mode, Path outputFileNameWithPath)
For a given PLANit entity that we persist to file, we track its datastore here to avoid overhead of recreating itstatic Set<PlanitEntityFeatureTypeContext<? extends ManagedId>>
GeoIoFeatureTypeBuilder. createRoutedServicesLayerFeatureContexts(RoutedServicesIdMapper primaryIdMapper, Mode layerMode, ServiceNetworkIdMapper serviceNetworkIdMapper)
Construct all PLANit entities that have an associated GIS feature context containing the information required for persistence (for routed services entities).static org.geotools.data.DataStore
GeoIODataStoreManager. getDataStore(Class<?> dataStoreReferenceClass, Mode mode)
Collect a registered datastore for a given PLANit entity class and mode (in case multiple modes require multiple stores with one store per type), if not available null is returned.Method parameters in org.goplanit.geoio.util with type arguments of type Mode Modifier and Type Method Description static String
ModeShortNameConverter. asShortName(Mode mode, Function<Mode,String> modeIdMapper)
As short name with 5 characters or less. -
Uses of Mode in org.goplanit.gtfs.converter
Methods in org.goplanit.gtfs.converter that return Mode Modifier and Type Method Description Mode
GtfsConverterHandlerData. getPrimaryPlanitModeIfActivated(RouteType gtfsMode)
Collect PLANit mode if it is known as being activated, otherwise return nullMethods in org.goplanit.gtfs.converter that return types with arguments of type Mode Modifier and Type Method Description SortedSet<Mode>
GtfsConverterHandlerData. expandWithCompatibleModes(Mode planitMode)
Expand the mode to all compatible modes (if any) including the mode itselfSet<Mode>
GtfsConverterHandlerData. getActivatedPlanitModesByGtfsMode()
activated planit modes, note that initialise should have been called before this is populatedList<Mode>
GtfsConverterHandlerData. getCompatiblePlanitModesIfActivated(RouteType gtfsMode)
Collect PLANit modes if it is known as being activated and compatible (unmodifiable), otherwise return nullSortedSet<Mode>
GtfsConverterHandlerData. getCompatiblePlanitModesIfActivated(Mode planitMode)
Collect compatible PLANit modes from a given PLANit mode (if any).Methods in org.goplanit.gtfs.converter with parameters of type Mode Modifier and Type Method Description SortedSet<Mode>
GtfsConverterHandlerData. expandWithCompatibleModes(Mode planitMode)
Expand the mode to all compatible modes (if any) including the mode itselfSortedSet<Mode>
GtfsConverterHandlerData. getCompatiblePlanitModesIfActivated(Mode planitMode)
Collect compatible PLANit modes from a given PLANit mode (if any). -
Uses of Mode in org.goplanit.gtfs.converter.intermodal
Methods in org.goplanit.gtfs.converter.intermodal that return Mode Modifier and Type Method Description Mode
GtfsServicesAndZoningIntegratorData. getExpectedModeForServiceLeg(ServiceLeg serviceLeg)
Determine the expected mode to be used for a given service legMode
GtfsServicesAndZoningIntegratorData. getPrimaryPlanitModeIfActivated(RouteType gtfsMode)
Collect PLANit mode if it is known as being activated, otherwise return nullMethods in org.goplanit.gtfs.converter.intermodal that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
GtfsServicesAndZoningIntegratorData. expandWithCompatibleModes(Mode planitMode)
Expand the mode to all compatible modes (if any) including the mode itselfCollection<Mode>
GtfsServicesAndZoningIntegratorData. getActivatedPlanitModes()
activated planit modes, note that initialise should have been called before this is populatedList<Mode>
GtfsServicesAndZoningIntegratorData. getCompatiblePlanitModesIfActivated(RouteType gtfsMode)
Collect PLANit modes if it is known as being activated and compatible, otherwise return nullSet<Mode>
GtfsServicesAndZoningIntegratorData. getCompatiblePlanitModesIfActivated(Mode planitMode)
Collect compatible PLANit modes from a given PLANit mode (if any).Methods in org.goplanit.gtfs.converter.intermodal with parameters of type Mode Modifier and Type Method Description Set<Mode>
GtfsServicesAndZoningIntegratorData. expandWithCompatibleModes(Mode planitMode)
Expand the mode to all compatible modes (if any) including the mode itselfSet<Mode>
GtfsServicesAndZoningIntegratorData. getCompatiblePlanitModesIfActivated(Mode planitMode)
Collect compatible PLANit modes from a given PLANit mode (if any).ShortestPathAStar
GtfsServicesAndZoningIntegratorData. getShortestPathAlgoByMode(Mode mode)
Shortest path algorithm by mode initialised with the costs for that mode per link segment, requiresGtfsServicesAndZoningIntegratorData.initialise()
to be invoked beforehand -
Uses of Mode in org.goplanit.gtfs.converter.service.handler
Methods in org.goplanit.gtfs.converter.service.handler that return Mode Modifier and Type Method Description Mode
GtfsServicesHandlerData. getServiceLegMode(ServiceLeg serviceLeg)
find mode attributed to the given service leg if anyMethods in org.goplanit.gtfs.converter.service.handler with parameters of type Mode Modifier and Type Method Description void
GtfsServicesHandlerData. registerServiceLegMode(ServiceLeg parentLeg, Mode serviceLegMode)
Mark the service leg as compatible with the given mode, and this given mode only. -
Uses of Mode in org.goplanit.gtfs.converter.zoning.handler
Methods in org.goplanit.gtfs.converter.zoning.handler that return types with arguments of type Mode Modifier and Type Method Description List<Mode>
GtfsZoningHandlerData. getSupportedPtModes(GtfsStop gtfsStop)
Collect the mapped PLANit pt mode using this GTFS stopSet<Mode>
GtfsZoningHandlerData. getSupportedPtModesIn(TransferZone planitTransferZone, Set<Mode> modesFilter)
The pt services modes supported on the given transfer zoneSet<Mode>
GtfsZoningHandlerTransferZoneData. getSupportedPtModesIn(TransferZone planitTransferZone, Set<Mode> modesFilter)
The pt services modes supported on the given transfer zoneMethod parameters in org.goplanit.gtfs.converter.zoning.handler with type arguments of type Mode Modifier and Type Method Description Set<Mode>
GtfsZoningHandlerData. getSupportedPtModesIn(TransferZone planitTransferZone, Set<Mode> modesFilter)
The pt services modes supported on the given transfer zoneSet<Mode>
GtfsZoningHandlerTransferZoneData. getSupportedPtModesIn(TransferZone planitTransferZone, Set<Mode> modesFilter)
The pt services modes supported on the given transfer zonevoid
GtfsZoningHandlerData. registerTransferZoneToConnectoidModes(TransferZone transferZone, DirectedConnectoid directedConnectoid, Set<Mode> activatedPlanitModes)
Update registered and activated pt modes and their access information on transfer zonevoid
GtfsZoningHandlerTransferZoneData. registerTransferZoneToConnectoidModes(TransferZone transferZone, DirectedConnectoid directedConnectoid, Collection<Mode> activatedPlanitModes)
Update registered and activated pt modes and their access information on transfer zone -
Uses of Mode in org.goplanit.gtfs.util
Methods in org.goplanit.gtfs.util that return types with arguments of type Mode Modifier and Type Method Description static HashMap<RouteType,List<Mode>>
GtfsConverterReaderHelper. createCombinedActivatedPlanitModes(GtfsConverterReaderSettingsWithModeMapping settings, Modes allAvailablePlanitModes)
Based on the settings which define both custom and predefined mappings, we construct the instance mappings from Gtfs mode to PLANit mode, e.g., when a predefined mode type is configured, it results in an instance of that type on a network, this instance should be available in the passed in #allAvailablePlanitMdes, we then combine these mappings with the custom mode mappings on the settings to create a single consolidated set which can be used during parsing without the need of checking whether a mode is predefined or not.Methods in org.goplanit.gtfs.util with parameters of type Mode Modifier and Type Method Description static void
GtfsConverterReaderHelper. addToModeExternalId(Mode planitMode, RouteType gtfsMode)
add GTFS type Id to PLANit mode external id (in case multiple GTFS modes are mapped to the same PLANit mode)static boolean
GtfsTransferZoneHelper. isGtfsStopOnCorrectSideOfTransferZoneAccessLinkSegments(GtfsStop gtfsStop, Mode gtfsMode, TransferZone transferZone, GtfsZoningHandlerData data, boolean allConnectoidsMustMatch)
Verify based on driving direction and orientation of the access link segment(s) whether the GTFS stop is a viable match for the found transfer zone in terms of being on the correct side of the road.Method parameters in org.goplanit.gtfs.util with type arguments of type Mode Modifier and Type Method Description static Collection<DirectedConnectoid>
GtfsDirectedConnectoidHelper. createAndRegisterDirectedConnectoids(TransferZone transferZone, MacroscopicNetworkLayer networkLayer, Node accessNode, Iterable<? extends EdgeSegment> linkSegments, Set<Mode> allowedModes, GtfsZoningHandlerData data)
create directed connectoids, one per link segment provided, all related to the given transfer zone and with access modes provided. -
Uses of Mode in org.goplanit.io.converter
Methods in org.goplanit.io.converter with parameters of type Mode Modifier and Type Method Description protected String
PlanitWriterImpl. getXmlModeReference(Mode mode, Function<Mode,String> modeIdMapper)
Get the reference to use whenever a mode reference is encounteredMethod parameters in org.goplanit.io.converter with type arguments of type Mode Modifier and Type Method Description protected String
PlanitWriterImpl. getXmlModeReference(Mode mode, Function<Mode,String> modeIdMapper)
Get the reference to use whenever a mode reference is encountered -
Uses of Mode in org.goplanit.io.converter.network
Method parameters in org.goplanit.io.converter.network with type arguments of type Mode Modifier and Type Method Description void
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 them -
Uses of Mode in org.goplanit.io.output.formatter
Method parameters in org.goplanit.io.output.formatter with type arguments of type Mode Modifier and Type Method Description protected 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 file -
Uses of Mode in org.goplanit.matsim.util
Methods in org.goplanit.matsim.util that return types with arguments of type Mode Modifier and Type Method Description Map<Mode,String>
PlanitMatsimWriterModeMappingSettings. collectActivatedPlanitModeToMatsimModeMapping(MacroscopicNetworkLayerImpl networkLayer)
Creating a mapping from actual PLANit modes in the network to the MATSIM mode mapping as per the configuration in this class instance -
Uses of Mode in org.goplanit.mode
Classes in org.goplanit.mode that implement Mode Modifier and Type Class Description class
BicycleMode
the predefined bicycle mode name: bicycle maxspeed (km/h): 15 pcu: 0.2 vehicular type: VEHICULAR motorisation: NON_MOTORISED track: ROAD use: PRIVATEclass
BusMode
the predefined bus mode name: bus maxspeed (km/h): 100 pcu: 2 vehicular type: VEHICULAR motorisation: MOTORISED track: ROAD use: PUBLICclass
CarHighOccupancyMode
the predefined car hov mode name: car_hov maxspeed (km/h): 130 pcu: 1 vehicular type: VEHICULAR motorisation: MOTORISED track: ROAD use: HIGH_OCCUPANCYclass
CarMode
the predefined car mode name: car maxspeed (km/h): 130 pcu: 1 vehicular type: VEHICULAR motorisation: MOTORISED track: ROAD use: PRIVATEclass
CarShareMode
the predefined car share mode name: car maxspeed (km/h): 130 pcu: 1 vehicular type: VEHICULAR motorisation: MOTORISED track: ROAD use: RIDE_SHAREclass
FerryMode
The predefined ferry mode name: ferry maxspeed (km/h): 20 pcu: 6 vehicular type: VEHICULAR motorisation: MOTORISED track: WATER use: PUBLICclass
GoodsMode
the predefined goods vehicle mode, i.e., truck below 3.5 tonnes name: gv maxspeed (km/h): 100 pcu: 1.8 vehicular type: VEHICULAR motorisation: MOTORISED track: ROAD use: GOODSclass
HeavyGoodsMode
the predefined heavy goods vehicle mode, i.e., truck over 3.5 tonnes name: hgv maxspeed (km/h): 90 pcu: 2.5 vehicular type: VEHICULAR motorisation: MOTORISED track: ROAD use: GOODSclass
LargeHeavyGoodsMode
the predefined large heavy goods vehicle mode, i.e., large articulated truck, larger than heavy goods name: lhgv maxspeed (km/h): 90 pcu: 3 vehicular type: VEHICULAR motorisation: MOTORISED track: ROAD use: GOODSclass
LightRailMode
the predefined lightrail mode name: lightrail maxspeed (km/h): 70 pcu: 6 vehicular type: VEHICULAR motorisation: MOTORISED track: RAIL use: PUBLICclass
ModeImpl
A Mode is a user class feature representing a single form of transport (car, truck etc.).class
MotorBikeMode
the predefined motor bike mode name: bicycle maxspeed (km/h): 130 pcu: 0.5 vehicular type: VEHICULAR motorisation: NON_MOTORISED track: ROAD use: PRIVATEclass
PedestrianMode
the predefined pedestrian mode name: pedestrian maxspeed (km/h): 5 pcu: 0.1 vehicular type: NO_VEHICLE motorisation: NON_MOTORISED track: ROAD use: PRIVATEclass
PredefinedModeImpl
A mode that has predefined fixed values so it can easily be understood, or mappedclass
SubwayMode
the predefined subway mode name: subway maxspeed (km/h): 60 pcu: 6 vehicular type: VEHICULAR motorisation: MOTORISED track: RAIL use: PUBLICclass
TrainMode
the predefined train mode name: train maxspeed (km/h): 140 pcu: 10 vehicular type: VEHICULAR motorisation: MOTORISED track: RAIL use: PUBLICclass
TramMode
the predefined tram mode name: tram maxspeed (km/h): 40 pcu: 3 vehicular type: VEHICULAR motorisation: MOTORISED track: RAIL use: PUBLICMethods in org.goplanit.mode that return Mode Modifier and Type Method Description Mode
ModesImpl. getByXmlId(String xmlId)
Retrieve a Mode by its XML IdMode
ModeFactoryImpl. registerNewCustomMode(String name, double maxSpeed, double pcu, PhysicalModeFeatures physicalFeatures, UsabilityModeFeatures usabilityFeatures)
Create and register new modeMethod parameters in org.goplanit.mode with type arguments of type Mode Modifier and Type Method Description ModesImpl
ModesImpl. deepCloneWithMapping(BiConsumer<Mode,Mode> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperModesImpl
ModesImpl. deepCloneWithMapping(BiConsumer<Mode,Mode> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperConstructor parameters in org.goplanit.mode with type arguments of type Mode Constructor Description ModesImpl(ModesImpl other, boolean deepCopy, BiConsumer<Mode,Mode> mapper)
Copy Constructor, also creates a new factory with reference to this containerModesImpl(ModesImpl other, boolean deepCopy, BiConsumer<Mode,Mode> mapper)
Copy Constructor, also creates a new factory with reference to this container -
Uses of Mode in org.goplanit.network
Fields in org.goplanit.network with type parameters of type Mode Modifier and Type Field Description protected Map<Mode,String>
MacroscopicNetworkLayerConfigurator. modeToLayerXmlId
track mode to layer mappingMethods in org.goplanit.network with parameters of type Mode Modifier and Type Method Description U
LayeredNetwork. getLayerByMode(Mode mode)
collect a layer by modeboolean
MacroscopicNetworkLayerConfigurator. isModeMappedToLayer(Mode mode, String layerXmlId)
verify if mode is assigned to the layerString
MacroscopicNetworkLayerConfigurator. removeMode(Mode mode)
remove mode from any layerString
MacroscopicNetworkLayerConfigurator. setModeToLayer(Mode mode, String layerXmlId)
set mode to a layerConstructor parameters in org.goplanit.network with type arguments of type Mode Constructor Description LayeredNetwork(LayeredNetwork<U,T> other, boolean deepCopy, ManagedIdDeepCopyMapper<Mode> modeMapper, ManagedIdDeepCopyMapper<U> layerMapper)
Copy constructor.MacroscopicNetwork(MacroscopicNetwork other, boolean deepCopy, ManagedIdDeepCopyMapper<Mode> modeMapper, ManagedIdDeepCopyMapper<MacroscopicNetworkLayer> layerMapper)
Copy constructor.TopologicalLayerNetwork(TopologicalLayerNetwork<T,U> other, boolean deepCopy, ManagedIdDeepCopyMapper<Mode> modeMapper, ManagedIdDeepCopyMapper<T> layerMapper)
Copy constructor.UntypedPhysicalNetwork(UntypedPhysicalNetwork<L,LS> other, boolean deepCopy, ManagedIdDeepCopyMapper<Mode> modeMapper, ManagedIdDeepCopyMapper<L> layerMapper)
Copy constructor. -
Uses of Mode in org.goplanit.network.layer
Fields in org.goplanit.network.layer with type parameters of type Mode Modifier and Type Field Description protected Map<Long,Mode>
NetworkLayerImpl. supportedModes
the modes supported by this layer (not owned)Methods in org.goplanit.network.layer that return types with arguments of type Mode Modifier and Type Method Description Collection<Mode>
NetworkLayerImpl. getSupportedModes()
collect the modes supported by this infrastructure layerMethods in org.goplanit.network.layer with parameters of type Mode Modifier and Type Method Description boolean
NetworkLayerImpl. registerSupportedMode(Mode supportedMode)
register a mode as supported by this layerMethod parameters in org.goplanit.network.layer with type arguments of type Mode Modifier and Type Method Description boolean
NetworkLayerImpl. registerSupportedModes(Collection<Mode> supportedModes)
register modes as supported by this layer -
Uses of Mode in org.goplanit.network.layer.macroscopic
Fields in org.goplanit.network.layer.macroscopic with type parameters of type Mode Modifier and Type Field Description protected Map<Mode,AccessGroupProperties>
MacroscopicLinkSegmentTypeImpl. modeAccessProperties
Track access properties for each of the modes it supports for quick lookupsprotected Set<Mode>
AccessGroupPropertiesImpl. supportedModes
modes supported by this access groupMethods in org.goplanit.network.layer.macroscopic that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
AccessGroupPropertiesImpl. getAccessModes()
The access modes for this groupSet<Mode>
MacroscopicLinkSegmentImpl. getAllowedModes()
Returns the modes that are allowed on the link segment (unmodifiable)Set<Mode>
MacroscopicLinkSegmentTypeImpl. getAllowedModes()
return the available modes present in one of the access groups that have been registeredMethods in org.goplanit.network.layer.macroscopic with parameters of type Mode Modifier and Type Method Description void
AccessGroupPropertiesImpl. addAccessMode(Mode mode)
Add mode to access group.double
MacroscopicLinkSegmentImpl. computeFreeFlowTravelTimeHour(Mode mode)
Compute the free flow travel time by mode, i.e.static AccessGroupProperties
AccessGroupPropertiesFactory. create(double maxSpeedKmH, double criticalSpeedKmH, Mode... accessModes)
Factory methodstatic AccessGroupProperties
AccessGroupPropertiesFactory. create(double maxSpeedKmH, Mode... accessModes)
Factory method adopting default value for critical speedstatic AccessGroupProperties
AccessGroupPropertiesFactory. create(Mode... accessModes)
Factory method allowing access for given modes without any further specification on their speedsstatic MacroscopicGridNetworkLayerGenerator
MacroscopicGridNetworkLayerGenerator. create(int rows, int columns, MacroscopicNetworkLayers layersContainer, Mode... modes)
create the generator with a number of rows and columns.static void
AccessGroupPropertiesFactory. createOnLinkSegmentType(MacroscopicLinkSegmentType linkSegmentType, Mode modeToAdd, double maxSpeedKmH)
Add access properties for the passed in modes to the passed in link segment type where we cap the max and critical speed based on the minimum of the mode's maximum speed and the maximum speedAccessGroupProperties
MacroscopicLinkSegmentTypeImpl. getAccessProperties(Mode mode)
Returns the mode properties for a specified mode along this linkboolean
MacroscopicLinkSegmentImpl. isModeAllowed(Mode mode)
Returns whether vehicles of a specified mode are allowed through this linkboolean
MacroscopicLinkSegmentTypeImpl. isModeAllowed(Mode mode)
Verify if mode is available on typevoid
MacroscopicLinkSegmentTypeImpl. registerModeOnAccessGroup(Mode accessMode, AccessGroupProperties accessGroupProperties)
Add a new access mode to an existing access group properties on this link segment typeMacroscopicLinkSegmentType
MacroscopicLinkSegmentTypeFactoryImpl. registerNew(String name, double capacityPcuPerHour, double maximumDensityPcuPerKm, Mode allowedMode)
Create and register new macroscopic link segment type on network.MacroscopicNetworkLayer
MacroscopicNetworkLayerFactoryImpl. registerNew(Mode... supportedModes)
Create a new macroscopic network layer instanceboolean
AccessGroupPropertiesImpl. removeAccessMode(Mode toBeRemovedMode)
Remove access modeboolean
MacroscopicLinkSegmentTypeImpl. removeModeAccess(Mode toBeRemovedMode)
Remove the mode properties for the passed in mode (if present)Method parameters in org.goplanit.network.layer.macroscopic with type arguments of type Mode Modifier and Type Method Description static AccessGroupProperties
AccessGroupPropertiesFactory. create(double maxSpeedKmH, double criticalSpeedKmH, Collection<Mode> accessModes)
Factory methodstatic AccessGroupProperties
AccessGroupPropertiesFactory. create(double maxSpeedKmH, Collection<Mode> accessModes)
Factory method adopting saem value for maximum and critical speedstatic AccessGroupProperties
AccessGroupPropertiesFactory. create(Collection<Mode> accessModes)
Factory method allowing access for given modes without any further specification on their speedsstatic void
AccessGroupPropertiesFactory. createOnLinkSegmentType(MacroscopicLinkSegmentType linkSegmentType, double maxSpeedKmH, Collection<Mode> modesToAdd)
Add mode properties for the passed in modes to the passed in link segment type where we cap the max and critical speed based on the minimum of the mode's maximum speed and the maximum speedConstructors in org.goplanit.network.layer.macroscopic with parameters of type Mode Constructor Description MacroscopicGridNetworkLayerGenerator(int rows, int columns, MacroscopicNetworkLayers layersContainer, Mode... modes)
ConstructorConstructor parameters in org.goplanit.network.layer.macroscopic with type arguments of type Mode Constructor Description AccessGroupPropertiesImpl(Collection<Mode> accessModes)
access properties with only defining allowed modes without setting any restrictive speeds compared to the physical speed on the links it is applied on -
Uses of Mode in org.goplanit.network.layer.service
Methods in org.goplanit.network.layer.service that return types with arguments of type Mode Modifier and Type Method Description Collection<Mode>
ServiceNetworkLayerImpl. getSupportedModes()
Collect supported modes, obtained from parent layerMethods in org.goplanit.network.layer.service with parameters of type Mode Modifier and Type Method Description boolean
ServiceNetworkLayerImpl. registerSupportedMode(Mode supportedMode)
A service network does not allow for registering supported modes as the supported modes are defined by its parent network already.boolean
ServiceNetworkLayerImpl. supports(Mode mode)
Result delegate from underlying parent layerMethod parameters in org.goplanit.network.layer.service with type arguments of type Mode Modifier and Type Method Description boolean
ServiceNetworkLayerImpl. registerSupportedModes(Collection<Mode> supportedModes)
A service network does not allow for registering supported modes as the supported modes are defined by its parent network already. -
Uses of Mode in org.goplanit.network.layers
Methods in org.goplanit.network.layers with parameters of type Mode Modifier and Type Method Description T
TransportLayersImpl. get(Mode mode)
Find the layer that supports the passed in mode. -
Uses of Mode in org.goplanit.osm.converter
Methods in org.goplanit.osm.converter that return Mode Modifier and Type Method Description Mode
OsmModeConversionBase. getActivatedPlanitMode(String osmMode)
Convenience method that collects the currently mapped PLANit modes (road or rail) for the given OSM modesMethods in org.goplanit.osm.converter that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
OsmModeConversionBase. getActivatedPlanitModes(Collection<String> osmModes)
Convenience method that collects the currently mapped PLANit modes (road or rail) for the given OSM modesConstructor parameters in org.goplanit.osm.converter with type arguments of type Mode Constructor Description OsmModeConversionBase(OsmNetworkReaderSettings settings, Iterable<Mode> layerModes)
Constructor -
Uses of Mode in org.goplanit.osm.converter.network
Methods in org.goplanit.osm.converter.network that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
OsmNetworkLayerModeConversion. getExplicitlyExcludedModes(Map<String,String> tags, boolean isForwardDirection, OsmNetworkReaderSettings settings)
Collect explicitly excluded modes from the passed in tags.Set<Mode>
OsmNetworkLayerModeConversion. getExplicitlyIncludedModes(Map<String,String> tags, boolean isForwardDirection, OsmNetworkReaderSettings settings)
Collect explicitly included modes from the passed in tags.Method parameters in org.goplanit.osm.converter.network with type arguments of type Mode Modifier and Type Method Description void
OsmNetworkLayerModeConversion. updateAccessKeyBasedModeRestrictions(Map<String,String> tags, Set<Mode> includedModesToUpdate, Set<Mode> excludedModesToUpdate)
Update the included and excluded mode sets passed in based on the key/value information available in the access=? tag. -
Uses of Mode in org.goplanit.osm.converter.zoning.handler.helper
Constructor parameters in org.goplanit.osm.converter.zoning.handler.helper with type arguments of type Mode Constructor Description OsmPublicTransportModeConversion(OsmNetworkReaderSettings networkSettings, OsmPublicTransportReaderSettings ptSettings, Iterable<Mode> layerModes)
Constructor -
Uses of Mode in org.goplanit.osm.physical.network.macroscopic
Fields in org.goplanit.osm.physical.network.macroscopic with type parameters of type Mode Modifier and Type Field Description protected Map<Set<Mode>,Set<MacroscopicLinkSegmentType>>
ModifiedLinkSegmentTypes.ModifiedLinkSegmentTypesModes. linkSegmentTypesWithAddedModes
the segment types with added modes compared to the originalprotected Map<Set<Mode>,Set<MacroscopicLinkSegmentType>>
ModifiedLinkSegmentTypes.ModifiedLinkSegmentTypesModes. linkSegmentTypesWithRemovedModes
the segment types with removed modes compared to the originalMethod parameters in org.goplanit.osm.physical.network.macroscopic with type arguments of type Mode Modifier and Type Method Description boolean
ModifiedLinkSegmentTypes. addModifiedLinkSegmentType(MacroscopicLinkSegmentType original, MacroscopicLinkSegmentType modifiedLinkSegmentType, Set<Mode> addedModes, Set<Mode> removedModes)
Add a modified link segment type based on the changes in mode support.boolean
ModifiedLinkSegmentTypes.ModifiedLinkSegmentTypesModes. addModifiedLinkSegmentType(MacroscopicLinkSegmentType modifiedLinkSegmentType, Set<Mode> addedModes, Set<Mode> removedModes)
Add a modified link segment type based on the changes in mode support.boolean
ModifiedLinkSegmentTypes. containsModifiedLinkSegmentType(MacroscopicLinkSegmentType original, Set<Mode> addedModes, Set<Mode> removedModes)
Verify if a modified link segment type with the provided added/removed modes exist for the given original link segment typeboolean
ModifiedLinkSegmentTypes.ModifiedLinkSegmentTypesModes. containsModifiedLinkSegmentType(Set<Mode> addedModes, Set<Mode> removedModes)
Verify if a modified link segment type with the provided added/removed modes existprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createBridleway(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create bridleway type with defaults For horse riders.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createCycleway(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create cycleway type with defaults For designated cyclewaysprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createDefaultOsmLinkSegmentType(String nameKey, String nameValue, double capacityPcuPerhour, double maxSpeedKmh, Collection<? extends Mode> modes)
Create an OSM default link segment type with name (namekey=)namevalueprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createFerry(double osmwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create ferry way type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createFootway(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create footway type with defaults For designated footpaths; i.e., mainly/exclusively for pedestrians.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createFunicular(double osmRailwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create funicular (rail) type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createLightRail(double osmRailwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create light rail (rail) type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createLivingStreet(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create living street type with defaults Roads which serve as an access to housing, without function of connecting settlements.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createMonoRail(double osmRailwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create mono rail (rail) type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createMotorway(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create motorway type with defaults restricted access major divided highway, normally with 2 or more running lanes plus emergency hard shoulder.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createMotorwayLink(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create motorway link type with defaults The link roads (sliproads/ramps) leading to/from a motorway from/to a motorway or lower class highway.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createNarrowGauge(double osmRailwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create narrow gauge(rail) type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createOsmLinkSegmentType(String externalId, double capacityPcuPerhour, double maxDensityPcuPerKm, double maxSpeed, Collection<? extends Mode> modes)
Create OSM default link segment types with mode properties where we create multiple types if modes reside on different layers in which case only the modes on that layer will be added to the layer specific typeprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createOsmRailWayLinkSegmentType(String railwayTypeValue, double maxSpeed, Collection<? extends Mode> modes)
Create a link segment type on the network based on the passed in OSM railway value tagsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createOsmRoadWayLinkSegmentType(String highwayTypeValue, double maxSpeed, Collection<? extends Mode> modes)
Create a link segment type on the network based on the passed in OSM highway value tags.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createOsmWaterWayLinkSegmentType(String waterwayValue, double maxSpeed, Collection<? extends Mode> modes)
Create a link segment type on the network based on the passed in OSM waterway route value tagsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createPath(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create path type with defaults A non-specific path either multi-use or unspecified usage, open to all non-motorized vehicles and not intended for motorized vehicles unless tagged so separatelyprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createPedestrian(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create pedestrian type with defaults For roads used mainly/exclusively for pedestrians in shopping and some residential areas which may allow access by motorised vehicles only for very limited periods of the day.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createPrimary(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create primary type with defaults The next most important roads in a country's system (after trunk).protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createPrimaryLink(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create primary link type with defaults The link roads (sliproads/ramps) leading to/from a primary road from/to a primary road or lower class highway.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createRail(double osmRailwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create rail type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createResidential(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create residential type with defaults Roads which serve as an access to housing, without function of connecting settlements.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createRoad(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create road type with defaults A road/way/street/motorway/etc.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createSecondary(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create secondary type with defaults The link roads (sliproads/ramps) leading to/from a primary road from/to a primary road or lower class highway.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createSecondaryLink(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create secondary link type with defaults The link roads (sliproads/ramps) leading to/from a secondary road from/to a secondary road or lower class highway.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createService(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create service type with defaults For access roads to, or within an industrial estate, camp site, business park, car park, alleys, etc.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createSteps(double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create step type with defaults For flights of steps (stairs) on footwaysprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createSubway(double osmRailwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create subway type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createTertiary(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create tertiary type with defaults The next most important roads in a country's system (after secondary).protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createTertiaryLink(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create tertiary link type with defaults The link roads (sliproads/ramps) leading to/from a tertiary road from/to a tertiary road or lower class highway.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createTrack(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create track type with defaults Roads for mostly agricultural or forestry uses.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createTram(double osmRailwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create tram type with defaultsprotected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createTrunk(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create trunk type with defaults The most important roads in a country's system that aren't motorways.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createTrunkLink(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create trunk link type with defaults restricted access major divided highway, normally with 2 or more running lanes plus emergency hard shoulder.protected Map<NetworkLayer,MacroscopicLinkSegmentType>
PlanitOsmNetwork. createUnclassified(String osmKey, double osmHighwayTypeMaxSpeed, Collection<? extends Mode> modes)
Create unclassified type with defaults The least important through roads in a country's system – i.e.MacroscopicLinkSegmentType
ModifiedLinkSegmentTypes. getModifiedLinkSegmentType(MacroscopicLinkSegmentType original, Set<Mode> addedModes, Set<Mode> removedModes)
Collect a modified link segment type with the provided added/removed modes if it existsMacroscopicLinkSegmentType
ModifiedLinkSegmentTypes.ModifiedLinkSegmentTypesModes. getModifiedLinkSegmentType(Set<Mode> addedModes, Set<Mode> removedModes)
collect a modified link segment type with the provided added/removed modes exist -
Uses of Mode in org.goplanit.output
Method parameters in org.goplanit.output with type arguments of type Mode Modifier and Type Method Description boolean
OutputManager. isAnyOutputPersisted(TimePeriod timePeriod, Set<Mode> modes, boolean converged)
Verify if anything is actually persisted whenOutputManager.persistOutputData(TimePeriod, Set, boolean)
is invoked given the underlying configurationvoid
OutputManager. persistOutputData(TimePeriod timePeriod, Set<Mode> modes, boolean converged)
Persist the output data for all registered output types -
Uses of Mode in org.goplanit.output.adapter
Methods in org.goplanit.output.adapter with parameters of type Mode Modifier and Type Method Description Optional<Long>
MacroscopicLinkOutputTypeAdapter. getInfrastructureLayerIdForMode(Mode mode)
collect the infrastructure layer id this mode resides onOptional<Long>
MacroscopicLinkOutputTypeAdapterImpl. getInfrastructureLayerIdForMode(Mode mode)
collect the infrastructure layer id this mode resides onOptional<?>
MacroscopicLinkOutputTypeAdapter. getLinkSegmentOutputPropertyValue(OutputProperty outputProperty, MacroscopicLinkSegment linkSegment, Mode mode, TimePeriod timePeriod)
Return the value of a specified output property of a link segmentOptional<?>
MacroscopicLinkOutputTypeAdapterImpl. getLinkSegmentOutputPropertyValue(OutputProperty outputProperty, MacroscopicLinkSegment linkSegment, Mode mode, TimePeriod timePeriod)
Return the value of a specified output property of a link segment The DENSITY case should never be called for TraditionalStaticAssignment.default Optional<Double>
MacroscopicLinkOutputTypeAdapter. getMaximumSpeed(MacroscopicLinkSegment linkSegment, Mode mode)
Returns the maximum speed through the current link segmentOptional<?>
OdOutputTypeAdapter. getOdOutputPropertyValue(OutputProperty outputProperty, OdDataIterator<?> odIterator, Mode mode, TimePeriod timePeriod)
Returns the specified output property values for the current cell in the OD Matrix IteratorOptional<?>
OdOutputTypeAdapterImpl. getOdOutputPropertyValue(OutputProperty outputProperty, OdDataIterator<?> odIterator, Mode mode, TimePeriod timePeriod)
Returns the specified output property values for the current cell in the OD Matrix IteratorOptional<OdPathMatrix>
PathOutputTypeAdapter. getOdPathMatrix(Mode mode)
Retrieve an OD path matrix object for a specified modeOptional<OdSkimMatrix>
OdOutputTypeAdapter. getOdSkimMatrix(OdSkimSubOutputType odSkimOutputType, Mode mode)
Retrieve an OD skim matrix for a specified OD skim output type and modeprotected Optional<?>
OutputTypeAdapterImpl. getOutputTypeIndependentPropertyValue(OutputProperty outputProperty, Mode mode, TimePeriod timePeriod)
Returns the value of properties which are common to all output type adaptersOptional<?>
PathOutputTypeAdapter. getPathOutputPropertyValue(OutputProperty outputProperty, OdDataIterator<? extends ManagedDirectedPath> odPathIterator, Mode mode, TimePeriod timePeriod, PathOutputIdentificationType pathOutputType)
Returns the specified output property values for the current cell in the ODPathIteratorOptional<?>
PathOutputTypeAdapterImpl. getPathOutputPropertyValue(OutputProperty outputProperty, OdDataIterator<? extends ManagedDirectedPath> odPathIterator, Mode mode, TimePeriod timePeriod, PathOutputIdentificationType pathOutputType)
Returns the specified output property values for the current cell in the ODPathIteratorOptional<Boolean>
MacroscopicLinkOutputTypeAdapter. isFlowPositive(MacroscopicLinkSegment linkSegment, Mode mode)
Returns true if there is a flow through the current specified link segment for the specified mode -
Uses of Mode in org.goplanit.output.formatter
Methods in org.goplanit.output.formatter with parameters of type Mode Modifier and Type Method Description MemoryOutputIterator
MemoryOutputFormatter. getIterator(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType)
Returns a MemoryOutputIterator for the contents of the specified MultiKeyPlanItData mapObject
MemoryOutputFormatter. getOutputDataValue(Mode mode, TimePeriod timePeriod, Integer iterationIndex, OutputType outputType, OutputPropertyType outputProperty, Object[] keyValues)
Get a specified data valueMethod parameters in org.goplanit.output.formatter with type arguments of type Mode Modifier and Type Method Description void
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 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 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 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 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 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 iterationprotected 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 Mode in org.goplanit.output.property
Methods in org.goplanit.output.property with parameters of type Mode Modifier and Type Method Description static Optional<String>
ModeExternalIdOutputProperty. getModeExternalId(Mode mode)
Returns the external Id of the current modestatic Optional<Long>
ModeIdOutputProperty. getModeId(Mode mode)
Returns the Id of the current modestatic Optional<String>
ModeXmlIdOutputProperty. getModeXmlId(Mode mode)
Returns the Xml Id of the current mode -
Uses of Mode in org.goplanit.service.routed
Methods in org.goplanit.service.routed that return Mode Modifier and Type Method Description Mode
RoutedModeServicesImpl. getMode()
The supported mode for the routed services registeredMode
RoutedServiceImpl. getMode()
Access to the mode this routed service utilisesMethods in org.goplanit.service.routed with parameters of type Mode Modifier and Type Method Description RoutedModeServices
RoutedServicesLayerImpl. getServicesByMode(Mode mode)
The services for a given mode available on this layer.boolean
RoutedServicesLayerImpl. isServicesByModeEmpty(Mode mode)
Verify if there exist no registered services for a given mode at all at presentConstructors in org.goplanit.service.routed with parameters of type Mode Constructor Description RoutedModeServicesImpl(IdGroupingToken tokenId, Mode supportedMode)
ConstructorRoutedServiceImpl(IdGroupingToken tokenId, Mode mode)
Constructor -
Uses of Mode in org.goplanit.service.routed.modifier
Methods in org.goplanit.service.routed.modifier with parameters of type Mode Modifier and Type Method Description void
RoutedServicesLayerModifierImpl. consolidateIdenticallyScheduledTrips(Mode mode)
Consolidate all PLANit RoutedTrips with identical relative timing schedules (but different departure times) into a single PLANit Routed trip.void
RoutedServicesLayerModifierImpl. removeRoutedServicesWithoutTrips(boolean recreateRoutedServiceManagedIds, Mode... modes)
Remove all routed services from the layer in case they no longer have any trips associated with them for the given modesvoid
RoutedServicesLayerModifierImpl. removeScheduledTripsWithoutLegs(boolean recreateManagedEntitiesIds, Mode... modes)
Remove all scheduled trips from the layer (for the given modes) in case they have no relative leg timings. -
Uses of Mode in org.goplanit.tntp.output.formatter
Method parameters in org.goplanit.tntp.output.formatter with type arguments of type Mode Modifier and Type Method Description 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 file -
Uses of Mode in org.goplanit.userclass
Methods in org.goplanit.userclass that return Mode Modifier and Type Method Description Mode
UserClass. getMode()
Return the mode of travel of this user classConstructors in org.goplanit.userclass with parameters of type Mode Constructor Description UserClass(IdGroupingToken groupId, String name, Mode mode, TravellerType travelerType)
Constructor of user class -
Uses of Mode in org.goplanit.utils.mode
Subinterfaces of Mode in org.goplanit.utils.mode Modifier and Type Interface Description interface
PredefinedMode
Fields in org.goplanit.utils.mode with type parameters of type Mode Modifier and Type Field Description static Class<Mode>
Mode. MODE_ID_CLASS
id class for generating idsMethods in org.goplanit.utils.mode that return Mode Modifier and Type Method Description Mode
Modes. getByXmlId(String xmlId)
Retrieve a Mode by its XML IdMode
ModeFactory. registerNewCustomMode(String name, double maxSpeed, double pcu, PhysicalModeFeatures physicalFeatures, UsabilityModeFeatures usabilityFeatures)
Create and register new modeMethods in org.goplanit.utils.mode that return types with arguments of type Mode Modifier and Type Method Description default Class<Mode>
Mode. getIdClass()
Each managed id class is expected to generate its ids based on its class signature.Method parameters in org.goplanit.utils.mode with type arguments of type Mode Modifier and Type Method Description Modes
Modes. deepCloneWithMapping(BiConsumer<Mode,Mode> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapperModes
Modes. deepCloneWithMapping(BiConsumer<Mode,Mode> mapper)
Deep clone implementation where the mapping for its internal copies is captured by the provided mapper -
Uses of Mode in org.goplanit.utils.network.layer
Methods in org.goplanit.utils.network.layer that return Mode Modifier and Type Method Description default Mode
NetworkLayer. getFirstSupportedMode()
Collect the first mode found under the supported modes from the collection provided by getSupportedModesMethods in org.goplanit.utils.network.layer that return types with arguments of type Mode Modifier and Type Method Description Collection<Mode>
NetworkLayer. getSupportedModes()
collect the modes supported by this infrastructure layerMethods in org.goplanit.utils.network.layer with parameters of type Mode Modifier and Type Method Description default double
MacroscopicNetworkLayer. findMaximumPaceHKm(Mode mode)
Convenience method to determine the maximum pace (h/km) across the layer for a given modedefault double
MacroscopicNetworkLayer. findMaximumSpeedLimitKmH(Mode mode)
Convenience method to determine the maximum speed limit (km/h) across the layer for a given modeboolean
NetworkLayer. registerSupportedMode(Mode supportedMode)
register a mode as supported by this layerdefault boolean
NetworkLayer. supports(Mode mode)
Determine if mode is supported by this layerMethod parameters in org.goplanit.utils.network.layer with type arguments of type Mode Modifier and Type Method Description boolean
NetworkLayer. registerSupportedModes(Collection<Mode> supportedModes)
register modes as supported by this layer -
Uses of Mode in org.goplanit.utils.network.layer.macroscopic
Methods in org.goplanit.utils.network.layer.macroscopic that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
AccessGroupProperties. getAccessModes()
The access modes for this groupSet<Mode>
MacroscopicLinkSegmentType. getAllowedModes()
return the available modes present in one of the access groups that have been registereddefault Set<Mode>
MacroscopicLinkSegmentType. getAllowedModesFrom(Collection<Mode> modes)
Method which identifies which of the passed in modes is available on the link segmentdefault Set<Mode>
MacroscopicLinkSegmentType. getAllowedModesNotIn(Collection<Mode> modes)
Method which identifies which of the passed in modes is available on the link segment but not in the passed in collection of modesdefault Set<Mode>
MacroscopicLinkSegmentType. getDisallowedModesFrom(Collection<Mode> modes)
Method which identifies which of the passed in modes is unavailable on the link segmentMethods in org.goplanit.utils.network.layer.macroscopic with parameters of type Mode Modifier and Type Method Description void
AccessGroupProperties. addAccessMode(Mode mode)
Add a new access mode to the groupdouble
MacroscopicLinkSegment. computeFreeFlowTravelTimeHour(Mode mode)
Compute the free flow travel time by mode, i.e.default double
MacroscopicLinkSegmentTypes. findMaximumSpeedLimit(Mode mode)
Convenience method to determine the maximum speed limit across all types for a given modeAccessGroupProperties
MacroscopicLinkSegmentType. getAccessProperties(Mode mode)
Returns the access properties for a specified mode along this linkdefault Double
MacroscopicLinkSegmentType. getCriticalSpeedKmH(Mode mode)
Collect the critical speed based on the combination of the mode and any restrictions imposed by the type on this mode.default double[]
MacroscopicLinkSegments. getFreeFlowTravelTimeHourPerLinkSegment(Mode mode)
Create a raw array of all free flow travel times of the registered macroscopic link segments where the index in the array corresponds to the link segment id (not id).default MacroscopicLinkSegment
MacroscopicLink. getLinkSegmentIfLinkIsOneWayForMode(Mode mode)
Collect the one way link segment for the mode if the link is in fact one way.default Double
MacroscopicLinkSegmentType. getMaximumSpeedKmH(Mode mode)
Collect the maximum speed based on the combination of the mode and any restrictions imposed by the type on this mode.default double
MacroscopicLinkSegment. getModelledSpeedLimitKmH(Mode mode)
Collect the maximum speed limit for the mode by taking the minimum of: (i) physical speed limit, (ii) mode's maximum speed limit, (iii) link segment type's mode specific speed limit.boolean
MacroscopicLinkSegmentType. isModeAllowed(Mode mode)
Verify if mode is available on typedefault boolean
MacroscopicLink. isModeAllowedOnAllSegments(Mode mode)
Verify if given mode is allowed on both segments, where at least one segment must be registered to allow for a positive resultdefault boolean
MacroscopicLink. isModeAllowedOnAnySegment(Mode mode)
Verify if given mode is allowed on any of the two segments, where at least one segment must be registered to allow for a positive resultvoid
MacroscopicLinkSegmentType. registerModeOnAccessGroup(Mode accessMode, AccessGroupProperties accessGroupProperties)
Add a new access mode to an existing access group properties on this link segment typeMacroscopicLinkSegmentType
MacroscopicLinkSegmentTypeFactory. registerNew(String name, double capacityPcuPerHour, double maximumDensityPcuPerKm, Mode allowedMode)
Create and register new macroscopic link segment type on network.boolean
AccessGroupProperties. removeAccessMode(Mode toBeRemovedMode)
Remove access modeboolean
MacroscopicLinkSegmentType. removeModeAccess(Mode toBeRemovedMode)
Remove the mode properties for the passed in mode (if present)Method parameters in org.goplanit.utils.network.layer.macroscopic with type arguments of type Mode Modifier and Type Method Description default Set<Mode>
MacroscopicLinkSegmentType. getAllowedModesFrom(Collection<Mode> modes)
Method which identifies which of the passed in modes is available on the link segmentdefault Set<Mode>
MacroscopicLinkSegmentType. getAllowedModesNotIn(Collection<Mode> modes)
Method which identifies which of the passed in modes is available on the link segment but not in the passed in collection of modesdefault Set<Mode>
MacroscopicLinkSegmentType. getDisallowedModesFrom(Collection<Mode> modes)
Method which identifies which of the passed in modes is unavailable on the link segmentdefault void
MacroscopicLinkSegmentType. removeModeAccess(Set<Mode> toBeRemovedModes)
Remove mode access for the passed in modes -
Uses of Mode in org.goplanit.utils.network.layer.physical
Methods in org.goplanit.utils.network.layer.physical that return types with arguments of type Mode Modifier and Type Method Description Set<Mode>
LinkSegment. getAllowedModes()
Returns the modes that are allowed on the link segment (unmodifiable)default Set<Mode>
LinkSegment. getAllowedModesFrom(Collection<Mode> modes)
collect the allowed modes from the passed in modes as newly created setMethods in org.goplanit.utils.network.layer.physical with parameters of type Mode Modifier and Type Method Description boolean
LinkSegment. isModeAllowed(Mode mode)
Returns whether vehicles of a specified mode are allowed through this linkMethod parameters in org.goplanit.utils.network.layer.physical with type arguments of type Mode Modifier and Type Method Description default Set<Mode>
LinkSegment. getAllowedModesFrom(Collection<Mode> modes)
collect the allowed modes from the passed in modes as newly created set -
Uses of Mode in org.goplanit.utils.network.layers
Methods in org.goplanit.utils.network.layers that return types with arguments of type Mode Modifier and Type Method Description default Collection<Mode>
NetworkLayers. getSupportedModes()
Collect all distinct supported modes across all network layers in newly created collectionMethods in org.goplanit.utils.network.layers with parameters of type Mode Modifier and Type Method Description T
NetworkLayers. get(Mode mode)
Find the layer that supports the passed in mode.MacroscopicNetworkLayer
MacroscopicNetworkLayerFactory. registerNew(Mode... supportedModes)
Create a new macroscopic network layer instance -
Uses of Mode in org.goplanit.utils.service.routed
Methods in org.goplanit.utils.service.routed that return Mode Modifier and Type Method Description Mode
RoutedModeServices. getMode()
The supported mode for the routed services registeredMode
RoutedService. getMode()
Access to the mode this routed service utilisesMethods in org.goplanit.utils.service.routed that return types with arguments of type Mode Modifier and Type Method Description default Collection<Mode>
RoutedServicesLayer. getSupportedModes()
Collect the supported modes that potentially have services registered based on the parent layerdefault Collection<Mode>
RoutedServicesLayer. getSupportedModesWithServices()
Collect the modes for which a RoutedModeService entry is available, i.e., for which we expect services to exist rather than potentially support.default Map<Mode,RoutedServicesLayer>
RoutedServicesLayers. indexLayersByMode()
Methods in org.goplanit.utils.service.routed with parameters of type Mode Modifier and Type Method Description RoutedModeServices
RoutedServicesLayer. getServicesByMode(Mode mode)
The services for a given mode available on this layer.boolean
RoutedServicesLayer. isServicesByModeEmpty(Mode mode)
Verify if there exist no registered services for a given mode at all at present -
Uses of Mode in org.goplanit.utils.service.routed.modifier
Methods in org.goplanit.utils.service.routed.modifier with parameters of type Mode Modifier and Type Method Description void
RoutedServicesLayerModifier. consolidateIdenticallyScheduledTrips(Mode mode)
Consolidate all PLANit RoutedTrips with identical relative timing schedules (but different departure times) into a single PLANit Routed trip.void
RoutedServicesLayerModifier. removeRoutedServicesWithoutTrips(boolean recreateManagedEntitiesIds, Mode... modes)
Remove all routed services from the layer in case they no longer have any trips associated with them for the given modesvoid
RoutedServicesLayerModifier. removeScheduledTripsWithoutLegs(boolean recreateManagedEntitiesIds, Mode... modes)
Remove all scheduled trips from the layer (for the given modes) in case they have no relative leg timings. -
Uses of Mode in org.goplanit.utils.zoning
Methods in org.goplanit.utils.zoning that return types with arguments of type Mode Modifier and Type Method Description Collection<Mode>
Connectoid. getExplicitlyAllowedModes(Zone accessZone)
collect modes that are explicitly allowed for this zone (unmodifiable).Methods in org.goplanit.utils.zoning with parameters of type Mode Modifier and Type Method Description void
Connectoid. addAllowedMode(Zone zone, Mode allowedMode)
Add an allowed mode.default void
Connectoid. addAllowedModes(Zone zone, Mode... allowedModes)
Add allowed modes.boolean
Connectoid. isModeAllowed(Zone accessZone, Mode mode)
Verify if a mode is allowed access to the zone via this connectoidMethod parameters in org.goplanit.utils.zoning with type arguments of type Mode Modifier and Type Method Description default void
Connectoid. addAllowedModes(Zone transferZone, Collection<Mode> allowedModes)
Add allowed modes.default DirectedConnectoid
DirectedConnectoidFactory. registerNew(boolean downstreamAccessNode, LinkSegment accessLinkSegment, Zone parentZone, boolean syncXmlIdToId, Collection<Mode> allowedModes)
Create a new directed connectoid, with default length 0default DirectedConnectoid
DirectedConnectoidFactory. registerNew(LinkSegment accessLinkSegment, Zone parentZone, boolean syncXmlIdToId, Collection<Mode> allowedModes)
Create a new directed connectoid, with default length 0, and choose downstream access node based on the link segment provided -
Uses of Mode in org.goplanit.zoning
Fields in org.goplanit.zoning with type parameters of type Mode Modifier and Type Field Description TreeMap<Long,Mode>
ConnectoidImpl.AccessZoneProperties. allowedModes
the explicitly allowed modes, when null all modes allowedMethods in org.goplanit.zoning that return types with arguments of type Mode Modifier and Type Method Description Collection<Mode>
ConnectoidImpl. getExplicitlyAllowedModes(Zone accessZone)
collect modes that are explicitly allowed for this zone (unmodifiable).Methods in org.goplanit.zoning with parameters of type Mode Modifier and Type Method Description void
ConnectoidImpl. addAllowedMode(Zone accessZone, Mode allowedMode)
Add an allowed mode.boolean
ConnectoidImpl. isModeAllowed(Zone accessZone, Mode mode)
Verify if a mode is allowed access to the zone via this connectoid
-