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.

Inheritance diagram of PyANGKernel.GKDynamicTrafficSnapshot

Synopsis

Methods

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:

GKTrafficDemandType

The demand type used to generate this snap

getFileName()
Return type:

str

The file where the info is.

getGenerationDate()
Return type:

QDateTime

When this snap was generated.

getIgnorePTVehsOnReading()
Return type:

bool

Gets whether to restore Transit vehicles from initial state file

getODVehicles()
Return type:

int

Return the OD vehicles in this snap

getPTVehicles()
Return type:

int

Return the Transit vehicles in this snap

getPublicTransportInformation()
Return type:

bool

Sets whether to store/restore transit vehicles

getReplication()
Return type:

int

The replication used to generate this snap

getSimulationTime()
Return type:

QDateTime

The simulation time used to generate this snap

getSimulatorName()
Return type:

str

The simulator used to generate this snap

getSimulatorVersion()
Return type:

str

The simulator version used to generate this snap

getVirtualVehicles()
Return type:

int

Return the virtual queue vheicles in this snap

setDemandType(type)
Parameters:

typeGKTrafficDemandType

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:

replicationGKReplication

The replication used to generate this snap

setSimulationTime(when)
Parameters:

whenQDateTime

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