There is currently no way to retrieve the original offset value that was part of the loaded program. Also, this value would not be meaningful after influencing the trafficlight with setPhaseDuration, setPhase or any other state-altering call. What you can do is retrieve the current phase index as well as the next switch time (getPhase, getNextSwitch) and then compute the offset based on all the phase durations and the current simulation time.
regards, Jakob Am Di., 3. März 2020 um 16:48 Uhr schrieb janehuang212 < [email protected]>: > Hi, > > I have searched the functions in traci but not seen any function regarding > getting offset value. When I try to use > `getCompleteRedYellowGreenDefiniation`, it returns the logic instance which > also has no offset info in it. Please advise how I should retrieve the > offset value in traci. Thanks! > > Regards, > Jane > > > > -- > Sent from: http://sumo-user-mailing-list.90755.n8.nabble.com/ > _______________________________________________ > 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
