PyANGKernel.GKDynamicTrafficSnapshot¶
- class GKDynamicTrafficSnapshot¶
A snap of the traffic (all the private vehicles) in a micro simulation.
Details
It stores all private vehicle positions into a file and the information of the paths being used by these vehicles. When loading a new micro simulation, the user can select the dynamic traffic snapshot instead of setting a warm-up period. Transit Vehicles are not considered at the moment.
Synopsis¶
Methods¶
def
__init__()def
getDemandType()def
getFileName()def
getODVehicles()def
getPTVehicles()def
getReplication()def
setDemandType()def
setFileName()def
setODVehicles()def
setPTVehicles()def
setReplication()
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__()¶
- activateIgnorePTVehsOnReading()¶
Sets whether to restore Transit vehicles from initial state file
- deactivateIgnorePTVehsOnReading()¶
Sets whether to restore Transit vehicles from initial state file
- getDemandType()¶
- Return type:
The demand type used to generate this snap
The file where the info is.
When this snap was generated.
Gets whether to restore Transit vehicles from initial state file
Return the OD vehicles in this snap
Return the Transit vehicles in this snap
Sets whether to store/restore transit vehicles
The replication used to generate this snap
The simulation time used to generate this snap
The simulator used to generate this snap
The simulator version used to generate this snap
Return the virtual queue vheicles in this snap
- setDemandType(type)¶
- Parameters:
type –
GKTrafficDemandType
The demand type used to generate this snap
- setFileName(aFileName)¶
- Parameters:
aFileName – str
The file where the info is.
- setODVehicles(aVehicles)¶
- Parameters:
aVehicles – int
Sets the OD Vehicles in this snap
- setPTVehicles(aVehicles)¶
- Parameters:
aVehicles – int
Sets the Transit Vehicles in this snap
- setPublicTransportInformation(info)¶
- Parameters:
info – bool
Sets whether to store/restore transit vehicles
- setReplication(replication)¶
- Parameters:
replication –
GKReplication
The replication used to generate this snap
The simulation time used to generate this snap
- setSimulatorName(name)¶
- Parameters:
name – str
The simulator used to generate this snap
- setSimulatorVersion(name)¶
- Parameters:
name – str
The simulator version used to generate this snap
- setVirtualVehicles(aVehicles)¶
- Parameters:
aVehicles – int
Sets the virtual queue vehicles snap