Thank you Jakob.
This is a request to the community to please provide any examples of manipulating vtype behavior using TraCI based on some condition. I have a particular problem about controlling the lateral alignment, but an example would help me to write the appropriate code. My problem is explained below.
So, the condition that I want to specify is this: Check the class of the vehicle which is parallel to a particular car (ID = "EXT") in the neighboring lane. If the class is a "trailer" then change the lateral alignment of the "EXT" car, otherwise, keep the alignment at the default value.
Parallel is arbitrary so I want to specify that any part of the neighboring vehicle is within the range equal to length + 5 meters of "EXT" (or any other helpful rule).
I have found getLaneIndex(), setLatAlignment(), getLanePosition(), etc. functions in traci module that are helpful. Now I'm trying to use an if else statement to write this rule. But am not successful so far. Any ideas are welcome. Thanks in advance.