PyDetectionPattern.GKDetectionPatternEvent¶
- class GKDetectionPatternEvent¶
Inherited by:
OCITDetectionPatternEventSynopsis¶
Methods¶
def
__init__()def
getDetector()def
getDuration()def
getLength()def
getPTLine()def
getSpeed()def
getVehicle()def
getWhen()def
__eq__()def
setDetector()def
setDuration()def
setLength()def
setModel()def
setSpeed()def
setWhen()
Virtual methods¶
def
clone()def
isValid()def
setPTLine()def
setVehicle()
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
Detailed Description¶
A detection event that will be used by the simulator to simulate a vehicle passing a detector.
It has: - the detector to activate (and later on deactivate) - the activation time (relative to the simulation initial time) - the duration of the activation - the vehicle type for the detection
Based on the detection capabilities is possible to specify the data to be detected: - Speed: Can detect speed - Length: Can detect density - Transit Line: Can detect an equipped vehicle
- class OccupancyMode¶
- __init__()¶
- clone()¶
- Return type:
- getDetector()¶
- Return type:
GKDetector
Detector to activate/deactivate.
- getDuration()¶
- Return type:
For how long it is active
Length detected.
- getOccupancyMode()¶
- Return type:
- getPTLine()¶
- Return type:
GKPublicLine
Transit Line detected.
Speed detected.
- getVehicle()¶
- Return type:
GKVehicle
Vehicle type detected.
- getWhen()¶
- Return type:
When it is activated. Relative time from the simulation initial time.
- __eq__(item)¶
- Parameters:
item –
GKDetectionPatternEvent- Return type:
- setDetector(dect)¶
- Parameters:
dect –
GKDetector
Detector to activate/deactivate.
- setDuration(time)¶
- Parameters:
time –
GKTimeDuration
For how long it is active
- setLength(l)¶
- Parameters:
l – float
Length detected.
Set the model where this event is
- setOccupancyMode(which)¶
- Parameters:
which –
OccupancyMode
- setPTLine(line)¶
- Parameters:
line –
GKPublicLine
Transit Line detected.
- setSpeed(s)¶
- Parameters:
s – float
Speed detected.
- setVehicle(veh)¶
- Parameters:
veh –
GKVehicle
Vehicle type detected. It cannot be left unassigned
- setWhen(time)¶
- Parameters:
time –
GKTimeDuration
When it is activated. Relative time from the simulation initial time.