QuercusVL Programming Manual
●
TrafficLights
C++:
TrafficLights get_TrafficLights()
C:
Does not exist
In C++, the unit's TrafficLights collection is returned.
In C, there is no representation of “TrafficLights” collection, but methods to directly
access to collection properties:
●
int VL_Unit_get_TrafficLights_Count (int h): returns the number of traffic lights
in the unit “h”
●
int VL_Unit_get_TrafficLights_Item(int h, int item): returns the TrafficLight
located at the indicated position in the TrafficLights collection of unit “h”
(starting from zero).
If there is no TrafficLights at the specified position returns null.
The parameter “h” is a handler of unit (Unit).
When the traffic light is no longer needed, VL_TrafficLight_Release must be
called to free allocated memory (see Release method at TrafficLight class).
●
int VL_Unit_get_TrafficLights_Id(int h, int id): returns the TrafficLight identified
by “id” inside the TrafficLights collection in the unit ”h”.
The parameter “h” is a handler of unit (Unit).
If there is no TrafficLights with such id, returns null.
When the traffic light is no longer needed, VL_TrafficLight_Release must be
called to free allocated memory (see Release method at TrafficLight class).
●
HistoricIncidences
C++:
HistoricIncidences get_HistoricIncidences()
C:
int VL_Unit_get_HistoricIncidences(int h)
Returns the incidences record of the unit.
In C, the parameter “h” is a handler of unit (Unit).
●
HistoricSummaries
C++:
HistoricSummaries get_HistoricSummaries()
C:
int VL_Unit_get_HistoricSummaries(int h)
Returns the summary record of the unit.
In C, the parameter “h” is a handler of unit (Unit).
Quercus Technologies
33