-3

I want to know if a vehicle is still active in simulation. If I want to set some task to some vehicles, I want to choose those who are not going to be offline early. Is there some method isActive() to check the activity of vehicles in veins?

curveball
  • 4,320
  • 15
  • 39
  • 49

1 Answers1

0

TraCIScenarioManager manages only active vehicles. It has a method getManagedHosts for getting a list of all active (managed) vehicles.

Christoph Sommer
  • 6,893
  • 1
  • 17
  • 35