1 & 2: you can piece this together from calls to traci.trafficlight.getRedYellowGreenState traci.trafficlight.getControlledLinks
traci calls are handled before vehicles start to move in the current step. This means the returned state (vehicle positions etc will be from the previous step (t - stepLength). Am Mi., 19. Juni 2019 um 03:37 Uhr schrieb Jane Cheung < [email protected]>: > As I understand, I could use HaltingNumber=traci.lanearea. > getLastStepHaltingNumber( detID ) to get the vehicle halting number when > the traffic light that controlled lane with E2 detector(detID) is red. > The "halting" is the meaning of "stopped. > Is that right? > > Other questions, 1) During the simulation, if the simulation time T is > known, how could I know which lanes controlled by different traffic lights > is red phase? > 2) During the simulation, if the land is > known, how could I know the time of red phase for one specified lane if > I use the adaptive traffic control model? > > > Additionally, there are some simple questions that I hope could get your > help: > What is the meaning of the "Last Step"? Does it means that if the time > that the TRACI is called is "t", the last step is "t-1"(if each step is 1 > second)? > > > Thanks for your help and patience! > _______________________________________________ > sumo-user mailing list > [email protected] > To change your delivery options, retrieve your password, or unsubscribe > from this list, visit > https://www.eclipse.org/mailman/listinfo/sumo-user >
_______________________________________________ sumo-user mailing list [email protected] To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/sumo-user
