QuercusVL Programming Manual
●
DeleteTrafficLight
C++: bool DeleteTrafficLight( int index, int id )
C:
int VL_Configuration_Delete_TrafficLight( int h, int index, int id )
Deletes a traffic light from the unit's traffic light list, which is specified by one of the
following two parameters:
○
Index: position of the traffic light the list of traffic lights of the unit.
○
Id: traffic light's identifier.
Only one of them can be used; in the parameter not used, -1 must be indicated.
Returns true if deletion was successful, false otherwise.
In C the parameter “h” is a handler of
Configuration.
●
ApplyTrafficLight
C++: bool
ApplyTrafficLight(
ConfigurationTrafficLight
trafficLight,
VLConfigurationActionType action, int previousId )
C:
int VL_Configuration_Apply_TrafficLight( int h, int hTrafficLight, int action, int
previousID )
Joins a new traffic light into the unit's traffic light list, or modifies an existing one. The
action done will depend on the parameter “action” (see
3.61.
VLConfigurationActionType Type type).
If an existing traffic light is going to be modified, the old identifier must be specified (as
it may have been modified) with the parameter “previousId”. If it is a new traffic light
which is going to be joined, then use value -1.
Returns true if action was successful, false otherwise.
In C the parameter “h” is a handler of
Configuration
and hTrafficLight a handler of
ConfigurationTrafficLight.
●
NewOutputActuator
C++: ConfigurationOutputActuator NewOutputActuator()
C:
int VL_Configuration_New_OutputActuator( int h )
Creates an empty output actuator. (default values).
To add a new output actuator to the unit, this function must be used, to later on modify
the output actuator and add it to the system with the function ApplyOutputActuator of
Configuration class.
In C the parameter “h” is a handler of
Configuration.
Quercus Technologies
91