class_docstr: PTVVissimSimulation is responsible for the management of the vissim simulation.
docstr: Tick to vissim simulation.
docstr_tok: ["Tick","to","vissim","simulation","."]
code: def tick(self):
      """
      Tick to vissim simulation.
      """
      # Updating simulator vehicles data.
      arr = (Simulator_Veh_Data * self._max_simulator_vehicles)(
          *self._get_simulator_veh_data()
      )
      self.ds_proxy.VISSIM_SetDriverVehicles(
          self._max_simulator_vehicles, byref(arr)
      )
  
      # Retrieving vissim traffic data.
      num_vehicles = c_int(0)
      traffic_data = POINTER(VISSIM_Veh_Data)()
      self.ds_proxy.VISSIM_GetTrafficVehicles(
          byref(num_vehicles), byref(traffic_data)
      )
  
      vehicles = {}
      for i in range(num_vehicles.value):
          vehicle_data = traffic_data[i]
  
          vehicles[vehicle_data.VehicleID] = VissimVehicle(
              vehicle_data.VehicleID,
              vehicle_data.VehicleType,
              vehicle_data.ModelFileName,
              vehicle_data.color,
              [
                  vehicle_data.Position_X,
                  vehicle_data.Position_Y,
                  vehicle_data.Position_Z,
              ],
              [
                  vehicle_data.Orient_Pitch,
                  vehicle_data.Orient_Heading,
                  0.0,
              ],
              vehicle_data.Speed,
              vehicle_data.TurningIndicator,
          )
  
      # Update data structures for the current time step.
      active_vehicles = set(self._vissim_vehicles.keys())
      current_vehicles = set(vehicles.keys())
  
      self.spawned_vehicles = current_vehicles.difference(
          active_vehicles
      )
      self.destroyed_vehicles = active_vehicles.difference(
          current_vehicles
      )
  
      self._vissim_vehicles = vehicles
  
imports: import enum
  import logging
  import math
  import os
  import carla
  from ctypes import *
  from .None import constants
label_desc: Use image node_id 8 for calling the PTVVissimSimulation obj's underlying member method code with example usage: obj.tick() without return types