PyDetectionPattern.GKDetectionPattern

class GKDetectionPattern

Inheritance diagram of PyDetectionPattern.GKDetectionPattern

Inherited by: OCITDetectionPattern, GKDetectionPatternTemplate, OCITDetectionPatternTemplate

Synopsis

Methods

Virtual 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

Detailed Description

An ordered (by start time) list of detection events ( GKDetectionPatternEvent ) that can be reproduce by the simulator to test control strategies.

It can be used in scenarios with no traffic.

__init__()
addEvent(event)
Parameters:

eventGKDetectionPatternEvent

Adds an event to the list of events. The event is copied and the list of events is sorted.

addEventWithoutSorting(event)
Parameters:

eventGKDetectionPatternEvent

Adds an event to the list of events. The event is copied but the list of events is not sorted. Use this function for bulk editing and remember to call the sortEvents function once all events have been added

deleteEvent(event)
Parameters:

eventGKDetectionPatternEvent

Deletes the event.

deleteEvent(pos)
Parameters:

pos – int

Deletes the event at position “pos”

deleteEvents()

Clears the event list

getEvent(pos)
Parameters:

pos – int

Return type:

GKDetectionPatternEvent

Returns the event at position “pos”

getEvents()
Return type:

.list of GKDetectionPatternEvent

Returns all the events

setEvent(pos, event)
Parameters:

Modifies the event at position “pos”

sortEvents()

Function to sort events after a massive insert using the addEventNotSorting function as many times as desired.