PyANGDTA.DTATurning¶
- class DTATurning¶
Turn representation for the DTA module
Synopsis¶
Methods¶
def
__init__()def
getCapacity()def
getCycle()def
getDestination()def
getGreenTime()def
getMaxSpeed()def
getOrigin()def
getPastCost()def
getPastCostVT()def
getSpeed()def
getSpeed_ms()def
getStaDelayT()def
getStaDelayTVT()def
getStaFlow()def
getStaFlowVT()def
getStaSpeed()def
getStaSpeedVT()def
getStaStopT()def
getStaStopTVT()def
getStaTravelT()def
length2D()def
length3D()def
setCapacity()def
vdfDefaultCost()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
- __init__()¶
- __init__(apturning, modelConnection)
- Parameters:
apturning –
GKTurningmodelConnection –
GKModelConnection
- calculationCost(dtaManager, travelTime, vehType)¶
- Parameters:
dtaManager –
DTAManagertravelTime – float
vehType –
DTAVehicleType
- Return type:
Using the current cost function calculates the cost using the travel time and vehicle type vt from o to number vehicles -1.
- currentDefaultCost(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Deprecated function. Do not use it and start updating the cost functions that use it to be compatible with future releases. Equivalent to:
currentDefaultCostVT(dtaManager, None) const;- currentDefaultCostVT(dtaManager, vehType)¶
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Current default cost considering the vehicle type.
Gets the additional volume, in PCUs.
- getAttractiveness([vehType=None])¶
- Parameters:
vehType –
DTAVehicleType- Return type:
Returns the turn attractiveness. Without vehType no vehicle distinction is made.
- getBehaviourModel()¶
- Return type:
Returns if this turn is being used by the micro or meso models
Gets the turn capacity, in PCUs/h.
- getControlJunctionType()¶
- Return type:
Gets the control junction type, or the control junction type of the last control plan in the master control plan.
Gets the cycle time [s].
- getDestination()¶
- Return type:
Returns the destination section.
Gets the capacity of the destination section, in PCUs/h.
- getDynamicDefaultCost(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the default cost of the last route choice interval/s using the dynamic cost function.
- getDynamicDefaultCostVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the dynamic default cost of the last route choice interval/s using the dynamic cost function and considering the user class.
- getDynamicDefaultCostVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the dynamic default cost of the last route choice interval/s using the dynamic cost function and considering the vehicle type vehType.
- getFreeFlowTravelTime(dtaManager, vehType)¶
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the turn free flow travel time. This is the travel time considering the origin section and turn. VehType defines the vehicle type from (0..number vehicles -1).
Gets the normal green-time for this turn [s].
- getInitialDefaultCost(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the default cost of the last route choice interval/s using the initial cost function.
Gets the maximum green-time for this turn [s].
Returns the turn speed in the network units, that is either Km/h or miles/h
Returns the turn speed in Km/h
Gets the minimum green-time for this turn [s] For actuated phases with recall Max it will add the maximum green time of the phase. For actuated phases with recall No it will not add any time to the min green time.
- getOrigin()¶
- Return type:
Returns the origin section.
Gets the capacity of the origin section, in PCUs/h.
- getPastCost(dtaManager, index)¶
- Parameters:
dtaManager –
DTAManagerindex – int
- Return type:
Returns the past cost that has been read from the replication that has been set for the past costs. The index parameter defines the shift from the current interval. So index = 0 means that the returned path cost will be from the same interval. index = 1 means the next interval and index = -1 the previous interval.
- getPastCostVT(dtaManager, gkUserClass, index)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClassindex – int
- Return type:
Returns the past cost that has been read from the replication that has been set for the past costs. The index parameter defines the shift from the current interval. So index = 0 means that the returned path cost will be from the same interval. index = 1 means the next interval and index = -1 the previous interval and using the user class.
- getPastCostVT(dtaManager, vehType, index)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleTypeindex – int
- Return type:
Returns the past cost that has been read from the replication that has been set for the past costs. The index parameter defines the shift from the current interval. So index = 0 means that the returned path cost will be from the same interval. index = 1 means the next interval and index = -1 the previous interval. VehType defines the vehicle type from (0..number vehicles -1).
Returns the speed in either m/s (micro/meso) or km/h (macro)
Returns the speed in m/s
- getStaDelayT(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the link (section + turn) delay time for the last route choice interval/s.
- getStaDelayTVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the link (section + turn) delay time for the last route choice interval/s considering the user class.
- getStaDelayTVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the link (section + turn) delay time for the last route choice interval/s considering the vehicle type vehType.
- getStaFlow(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the flow for the last route choice interval/s
- getStaFlowVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the flow for the last route choice interval/s considering the user class.
- getStaFlowVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the flow for the last route choice interval/s considering the vehicle type vehType.
- getStaNbStopVeh(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the number of stops done for the last route choice interval/s. This is only available for turn being modeled using the micro model.
- getStaNbStopVehVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the number of stops for the last route choice interval/s considering the user class.
- getStaNbStopVehVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the number of stops for the last route choice interval/s considering the vehicle type vehType.
- getStaSpeed(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the link (section + turn) speed for the last route choice interval/s.
- getStaSpeedVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the link (section + turn) speed for the last route choice interval/s considering the user class.
- getStaSpeedVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the link (section + turn) speed for the last route choice interval/s considering the vehicle type vehType.
- getStaStopT(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the stop time for the last route choice interval/s. This is only available for turn being modeled using the micro model.
- getStaStopTVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the stop time for the last route choice interval/s considering the user class.
- getStaStopTVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the stop time for the last route choice interval/s considering the vehicle type vehType.
- getStaTravelT(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the link (section + turn) travel time for the last route choice interval/s. When the section has waiting time in virtual queue, the waiting time is added to the travel time.
- getStaTravelTNoVQ(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Returns the link (section + turn) travel time without considering the time in virtual queue for the last route choice interval/s.
- getStaTravelTNoVQVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the link (section + turn) travel time without considering the time in virtual queue for the last route choice interval/s considering the vehicle type vehType.
- getStaTravelTNoVQVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the link (section + turn) travel time without considering the time in virtual queue for the last route choice interval/s considering the vehicle type vehType.
- getStaTravelTVT(dtaManager, gkUserClass)¶
- Parameters:
dtaManager –
DTAManagergkUserClass –
DTAUserClass
- Return type:
Returns the link (section + turn) travel time for the last route choice interval/s considering the user class. When the section has waiting time in virtual queue, the waiting time is added to the travel time.
- getStaTravelTVT(dtaManager, vehType)
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Returns the link (section + turn) travel time for the last route choice interval/s considering the vehicle type vehType. When the section has waiting time in virtual queue, the waiting time is added to the travel time.
Gets duration of time with no control defined (Uncontrolled or Unspecified).
Returns the turn user defined cost.
Returns the turn user defined cost 2.
Returns the turn user defined cost 3.
- getWarningIndicator()¶
- Return type:
Gets the warning indicator
Gets the yellow-time for this turn [s].
- isVehicleAllowed(vehType)¶
- Parameters:
vehType –
DTAVehicleType- Return type:
Returns true if vehicle vehtype can go through this turn
- isVehicleAllowed(vehType, idCentroideDesti)
- Parameters:
vehType –
DTAVehicleTypeidCentroideDesti – int
- Return type:
Returns true if vehicle vehtype can go through this turn using the destination centroid. The turn may be closed * by a traffic management action that why the destination centroid can be checked too.
Returns the 2D length in meters.
Returns the length, taking into account the z coordinate, in meters.
- setCapacity(capacity)¶
- Parameters:
capacity – float
Sets the turn capacity, in PCUs/h.
- vdfDefaultCost(dtaManager)¶
- Parameters:
dtaManager –
DTAManager- Return type:
Deprecated function. Do not use it and start updating the cost functions that use it to be compatible with future releases. Equivalent to:
vdfDefaultCostVT(dtaManager, None) const;- vdfDefaultCostVT(dtaManager, vehType)¶
- Parameters:
dtaManager –
DTAManagervehType –
DTAVehicleType
- Return type:
Default VDF cost considering the vehicle type.