# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
# Copyright (C) 2009-2026 German Aerospace Center (DLR) and others.
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0/
# This Source Code may also be made available under the following Secondary
# Licenses when the conditions for such availability set forth in the Eclipse
# Public License 2.0 are satisfied: GNU General Public License, version 2
# or later which is available at
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later

# @file    constants.py
# @author  generated by "rebuildConstants.py"
# @date    2026-03-02 13:39:15.374704

"""
This script contains TraCI constant definitions from <SUMO_HOME>/src/libsumo/TraCIConstants.h.
"""


#  ****************************************
#  VERSION
#  ****************************************
TRACI_VERSION = 22

#  ****************************************
#  COMMANDS
#  ****************************************
#  command: get version
CMD_GETVERSION = 0x00

#  command: load
CMD_LOAD = 0x01

#  command: execute move (half step)
CMD_EXECUTEMOVE = 0x7d

#  command: simulation step
CMD_SIMSTEP = 0x02

#  command: set connection priority (execution order)
CMD_SETORDER = 0x03

#  command: stop vehicle
CMD_STOP = 0x12

#  command: reroute to parking area
CMD_REROUTE_TO_PARKING = 0xc2

#  command: Resume from parking
CMD_RESUME = 0x19

#  command: set lane
CMD_CHANGELANE = 0x13

#  command: slow down
CMD_SLOWDOWN = 0x14

#  command: set sublane (vehicle)
CMD_CHANGESUBLANE = 0x15

#  command: open gap
CMD_OPENGAP = 0x16

#  command: replace vehicle stop and update route
CMD_REPLACE_STOP = 0x17

#  command: insert vehicle stop and update route
CMD_INSERT_STOP = 0x18

#  command: retrieve information about the current taxi fleet and their status
VAR_TAXI_FLEET = 0x20

#  command: send dispatch request for the given taxi
CMD_TAXI_DISPATCH = 0x21

#  command: change target
CMD_CHANGETARGET = 0x31

#  command: close sumo
CMD_CLOSE = 0x7F

#  command: add subscription filter
CMD_ADD_SUBSCRIPTION_FILTER = 0x7e


#  command: subscribe induction loop (e1) context
CMD_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 0x80
#  response: subscribe induction loop (e1) context
RESPONSE_SUBSCRIBE_INDUCTIONLOOP_CONTEXT = 0x90
#  command: get induction loop (e1) variable
CMD_GET_INDUCTIONLOOP_VARIABLE = 0xa0
#  response: get induction loop (e1) variable
RESPONSE_GET_INDUCTIONLOOP_VARIABLE = 0xb0
#  command: set induction loop (e1) variable, not used yet
CMD_SET_INDUCTIONLOOP_VARIABLE = 0xc0
#  command: subscribe induction loop (e1) variable
CMD_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 0xd0
#  response: subscribe induction loop (e1) variable
RESPONSE_SUBSCRIBE_INDUCTIONLOOP_VARIABLE = 0xe0

#  command: subscribe multi-entry/multi-exit detector (e3) context
CMD_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 0x81
#  response: subscribe multi-entry/multi-exit detector (e3) context
RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_CONTEXT = 0x91
#  command: get multi-entry/multi-exit detector (e3) variable
CMD_GET_MULTIENTRYEXIT_VARIABLE = 0xa1
#  response: get multi-entry/multi-exit detector (e3) variable
RESPONSE_GET_MULTIENTRYEXIT_VARIABLE = 0xb1
#  command: set multi-entry/multi-exit detector (e3) variable, not used yet
CMD_SET_MULTIENTRYEXIT_VARIABLE = 0xc1
#  command: subscribe multi-entry/multi-exit detector (e3) variable
CMD_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 0xd1
#  response: subscribe multi-entry/multi-exit detector (e3) variable
RESPONSE_SUBSCRIBE_MULTIENTRYEXIT_VARIABLE = 0xe1

#  command: subscribe traffic lights context
CMD_SUBSCRIBE_TL_CONTEXT = 0x82
#  response: subscribe traffic lights context
RESPONSE_SUBSCRIBE_TL_CONTEXT = 0x92
#  command: get traffic lights variable
CMD_GET_TL_VARIABLE = 0xa2
#  response: get traffic lights variable
RESPONSE_GET_TL_VARIABLE = 0xb2
#  command: set traffic lights variable
CMD_SET_TL_VARIABLE = 0xc2
#  command: subscribe traffic lights variable
CMD_SUBSCRIBE_TL_VARIABLE = 0xd2
#  response: subscribe traffic lights variable
RESPONSE_SUBSCRIBE_TL_VARIABLE = 0xe2

#  command: subscribe lane context
CMD_SUBSCRIBE_LANE_CONTEXT = 0x83
#  response: subscribe lane context
RESPONSE_SUBSCRIBE_LANE_CONTEXT = 0x93
#  command: get lane variable
CMD_GET_LANE_VARIABLE = 0xa3
#  response: get lane variable
RESPONSE_GET_LANE_VARIABLE = 0xb3
#  command: set lane variable
CMD_SET_LANE_VARIABLE = 0xc3
#  command: subscribe lane variable
CMD_SUBSCRIBE_LANE_VARIABLE = 0xd3
#  response: subscribe lane variable
RESPONSE_SUBSCRIBE_LANE_VARIABLE = 0xe3

#  command: subscribe vehicle context
CMD_SUBSCRIBE_VEHICLE_CONTEXT = 0x84
#  response: subscribe vehicle context
RESPONSE_SUBSCRIBE_VEHICLE_CONTEXT = 0x94
#  command: get vehicle variable
CMD_GET_VEHICLE_VARIABLE = 0xa4
#  response: get vehicle variable
RESPONSE_GET_VEHICLE_VARIABLE = 0xb4
#  command: set vehicle variable
CMD_SET_VEHICLE_VARIABLE = 0xc4
#  command: subscribe vehicle variable
CMD_SUBSCRIBE_VEHICLE_VARIABLE = 0xd4
#  response: subscribe vehicle variable
RESPONSE_SUBSCRIBE_VEHICLE_VARIABLE = 0xe4

#  command: subscribe vehicle type context
CMD_SUBSCRIBE_VEHICLETYPE_CONTEXT = 0x85
#  response: subscribe vehicle type context
RESPONSE_SUBSCRIBE_VEHICLETYPE_CONTEXT = 0x95
#  command: get vehicle type variable
CMD_GET_VEHICLETYPE_VARIABLE = 0xa5
#  response: get vehicle type variable
RESPONSE_GET_VEHICLETYPE_VARIABLE = 0xb5
#  command: set vehicle type variable
CMD_SET_VEHICLETYPE_VARIABLE = 0xc5
#  command: subscribe vehicle type variable
CMD_SUBSCRIBE_VEHICLETYPE_VARIABLE = 0xd5
#  response: subscribe vehicle type variable
RESPONSE_SUBSCRIBE_VEHICLETYPE_VARIABLE = 0xe5

#  command: subscribe route context
CMD_SUBSCRIBE_ROUTE_CONTEXT = 0x86
#  response: subscribe route context
RESPONSE_SUBSCRIBE_ROUTE_CONTEXT = 0x96
#  command: get route variable
CMD_GET_ROUTE_VARIABLE = 0xa6
#  response: get route variable
RESPONSE_GET_ROUTE_VARIABLE = 0xb6
#  command: set route variable
CMD_SET_ROUTE_VARIABLE = 0xc6
#  command: subscribe route variable
CMD_SUBSCRIBE_ROUTE_VARIABLE = 0xd6
#  response: subscribe route variable
RESPONSE_SUBSCRIBE_ROUTE_VARIABLE = 0xe6

#  command: subscribe poi context
CMD_SUBSCRIBE_POI_CONTEXT = 0x87
#  response: subscribe poi context
RESPONSE_SUBSCRIBE_POI_CONTEXT = 0x97
#  command: get poi variable
CMD_GET_POI_VARIABLE = 0xa7
#  response: get poi variable
RESPONSE_GET_POI_VARIABLE = 0xb7
#  command: set poi variable
CMD_SET_POI_VARIABLE = 0xc7
#  command: subscribe poi variable
CMD_SUBSCRIBE_POI_VARIABLE = 0xd7
#  response: subscribe poi variable
RESPONSE_SUBSCRIBE_POI_VARIABLE = 0xe7

#  command: subscribe polygon context
CMD_SUBSCRIBE_POLYGON_CONTEXT = 0x88
#  response: subscribe polygon context
RESPONSE_SUBSCRIBE_POLYGON_CONTEXT = 0x98
#  command: get polygon variable
CMD_GET_POLYGON_VARIABLE = 0xa8
#  response: get polygon variable
RESPONSE_GET_POLYGON_VARIABLE = 0xb8
#  command: set polygon variable
CMD_SET_POLYGON_VARIABLE = 0xc8
#  command: subscribe polygon variable
CMD_SUBSCRIBE_POLYGON_VARIABLE = 0xd8
#  response: subscribe polygon variable
RESPONSE_SUBSCRIBE_POLYGON_VARIABLE = 0xe8

#  command: subscribe junction context
CMD_SUBSCRIBE_JUNCTION_CONTEXT = 0x89
#  response: subscribe junction context
RESPONSE_SUBSCRIBE_JUNCTION_CONTEXT = 0x99
#  command: get junction variable
CMD_GET_JUNCTION_VARIABLE = 0xa9
#  response: get junction variable
RESPONSE_GET_JUNCTION_VARIABLE = 0xb9
#  command: set junction variable
CMD_SET_JUNCTION_VARIABLE = 0xc9
#  command: subscribe junction variable
CMD_SUBSCRIBE_JUNCTION_VARIABLE = 0xd9
#  response: subscribe junction variable
RESPONSE_SUBSCRIBE_JUNCTION_VARIABLE = 0xe9

#  command: subscribe edge context
CMD_SUBSCRIBE_EDGE_CONTEXT = 0x8a
#  response: subscribe edge context
RESPONSE_SUBSCRIBE_EDGE_CONTEXT = 0x9a
#  command: get edge variable
CMD_GET_EDGE_VARIABLE = 0xaa
#  response: get edge variable
RESPONSE_GET_EDGE_VARIABLE = 0xba
#  command: set edge variable
CMD_SET_EDGE_VARIABLE = 0xca
#  command: subscribe edge variable
CMD_SUBSCRIBE_EDGE_VARIABLE = 0xda
#  response: subscribe edge variable
RESPONSE_SUBSCRIBE_EDGE_VARIABLE = 0xea

#  command: subscribe simulation context
CMD_SUBSCRIBE_SIM_CONTEXT = 0x8b
#  response: subscribe simulation context
RESPONSE_SUBSCRIBE_SIM_CONTEXT = 0x9b
#  command: get simulation variable
CMD_GET_SIM_VARIABLE = 0xab
#  response: get simulation variable
RESPONSE_GET_SIM_VARIABLE = 0xbb
#  command: set simulation variable
CMD_SET_SIM_VARIABLE = 0xcb
#  command: subscribe simulation variable
CMD_SUBSCRIBE_SIM_VARIABLE = 0xdb
#  response: subscribe simulation variable
RESPONSE_SUBSCRIBE_SIM_VARIABLE = 0xeb

#  command: subscribe GUI context
CMD_SUBSCRIBE_GUI_CONTEXT = 0x8c
#  response: subscribe GUI context
RESPONSE_SUBSCRIBE_GUI_CONTEXT = 0x9c
#  command: get GUI variable
CMD_GET_GUI_VARIABLE = 0xac
#  response: get GUI variable
RESPONSE_GET_GUI_VARIABLE = 0xbc
#  command: set GUI variable
CMD_SET_GUI_VARIABLE = 0xcc
#  command: subscribe GUI variable
CMD_SUBSCRIBE_GUI_VARIABLE = 0xdc
#  response: subscribe GUI variable
RESPONSE_SUBSCRIBE_GUI_VARIABLE = 0xec

#  command: subscribe lane area detector (e2) context
CMD_SUBSCRIBE_LANEAREA_CONTEXT = 0x8d
#  response: subscribe lane area detector (e2) context
RESPONSE_SUBSCRIBE_LANEAREA_CONTEXT = 0x9d
#  command: get lane area detector (e2) variable
CMD_GET_LANEAREA_VARIABLE = 0xad
#  response: get lane area detector (e2) variable
RESPONSE_GET_LANEAREA_VARIABLE = 0xbd
#  command: set lane area detector (e2) variable, not used yet
CMD_SET_LANEAREA_VARIABLE = 0xcd
#  command: subscribe lane area detector (e2) variable
CMD_SUBSCRIBE_LANEAREA_VARIABLE = 0xdd
#  response: subscribe lane area detector (e2) variable
RESPONSE_SUBSCRIBE_LANEAREA_VARIABLE = 0xed

#  command: subscribe person context
CMD_SUBSCRIBE_PERSON_CONTEXT = 0x8e
#  response: subscribe person context
RESPONSE_SUBSCRIBE_PERSON_CONTEXT = 0x9e
#  command: get person variable
CMD_GET_PERSON_VARIABLE = 0xae
#  response: get person variable
RESPONSE_GET_PERSON_VARIABLE = 0xbe
#  command: set person variable
CMD_SET_PERSON_VARIABLE = 0xce
#  command: subscribe person variable
CMD_SUBSCRIBE_PERSON_VARIABLE = 0xde
#  response: subscribe person variable
RESPONSE_SUBSCRIBE_PERSON_VARIABLE = 0xee

#  command: subscribe busstop context
CMD_SUBSCRIBE_BUSSTOP_CONTEXT = 0x8f
#  response: subscribe busstop context
RESPONSE_SUBSCRIBE_BUSSTOP_CONTEXT = 0x9f
#  command: get busstop variable
CMD_GET_BUSSTOP_VARIABLE = 0xaf
#  response: get busstop variable
RESPONSE_GET_BUSSTOP_VARIABLE = 0xbf
#  command: set busstop variable, not used yet
CMD_SET_BUSSTOP_VARIABLE = 0xcf
#  command: subscribe busstop variable
CMD_SUBSCRIBE_BUSSTOP_VARIABLE = 0xdf
#  response: subscribe busstop variable
RESPONSE_SUBSCRIBE_BUSSTOP_VARIABLE = 0xef

#  command: subscribe parkingarea context
CMD_SUBSCRIBE_PARKINGAREA_CONTEXT = 0x04
#  response: subscribe parkingarea context
RESPONSE_SUBSCRIBE_PARKINGAREA_CONTEXT = 0x14
#  command: get parkingarea variable
CMD_GET_PARKINGAREA_VARIABLE = 0x24
#  response: get parkingarea variable
RESPONSE_GET_PARKINGAREA_VARIABLE = 0x34
#  command: set parkingarea variable
CMD_SET_PARKINGAREA_VARIABLE = 0x44
#  command: subscribe parkingarea variable
CMD_SUBSCRIBE_PARKINGAREA_VARIABLE = 0x54
#  response: subscribe parkingarea variable
RESPONSE_SUBSCRIBE_PARKINGAREA_VARIABLE = 0x64

#  command: subscribe chargingstation context
CMD_SUBSCRIBE_CHARGINGSTATION_CONTEXT = 0x05
#  response: subscribe chargingstation context
RESPONSE_SUBSCRIBE_CHARGINGSTATION_CONTEXT = 0x15
#  command: get chargingstation variable
CMD_GET_CHARGINGSTATION_VARIABLE = 0x25
#  response: get chargingstation variable
RESPONSE_GET_CHARGINGSTATION_VARIABLE = 0x35
#  command: set chargingstation variable
CMD_SET_CHARGINGSTATION_VARIABLE = 0x45
#  command: subscribe chargingstation variable
CMD_SUBSCRIBE_CHARGINGSTATION_VARIABLE = 0x55
#  response: subscribe chargingstation variable
RESPONSE_SUBSCRIBE_CHARGINGSTATION_VARIABLE = 0x65

#  command: subscribe routeprobe context
CMD_SUBSCRIBE_ROUTEPROBE_CONTEXT = 0x06
#  response: subscribe routeprobe context
RESPONSE_SUBSCRIBE_ROUTEPROBE_CONTEXT = 0x16
#  command: get routeprobe variable
CMD_GET_ROUTEPROBE_VARIABLE = 0x26
#  response: get routeprobe variable
RESPONSE_GET_ROUTEPROBE_VARIABLE = 0x36
#  command: set routeprobe variable
CMD_SET_ROUTEPROBE_VARIABLE = 0x46
#  command: subscribe routeprobe variable
CMD_SUBSCRIBE_ROUTEPROBE_VARIABLE = 0x56
#  response: subscribe routeprobe variable
RESPONSE_SUBSCRIBE_ROUTEPROBE_VARIABLE = 0x66

#  command: subscribe calibrator context
CMD_SUBSCRIBE_CALIBRATOR_CONTEXT = 0x07
#  response: subscribe calibrator context
RESPONSE_SUBSCRIBE_CALIBRATOR_CONTEXT = 0x17
#  command: get calibrator variable
CMD_GET_CALIBRATOR_VARIABLE = 0x27
#  response: get calibrator variable
RESPONSE_GET_CALIBRATOR_VARIABLE = 0x37
#  command: set calibrator variable
CMD_SET_CALIBRATOR_VARIABLE = 0x47
#  command: subscribe calibrator variable
CMD_SUBSCRIBE_CALIBRATOR_VARIABLE = 0x57
#  response: subscribe calibrator variable
RESPONSE_SUBSCRIBE_CALIBRATOR_VARIABLE = 0x67

#  command: subscribe rerouter context
CMD_SUBSCRIBE_REROUTER_CONTEXT = 0x08
#  response: subscribe rerouter context
RESPONSE_SUBSCRIBE_REROUTER_CONTEXT = 0x18
#  command: get rerouter variable
CMD_GET_REROUTER_VARIABLE = 0x28
#  response: get rerouter variable
RESPONSE_GET_REROUTER_VARIABLE = 0x38
#  command: set rerouter variable
CMD_SET_REROUTER_VARIABLE = 0x48
#  command: subscribe rerouter variable
CMD_SUBSCRIBE_REROUTER_VARIABLE = 0x58
#  response: subscribe rerouter variable
RESPONSE_SUBSCRIBE_REROUTER_VARIABLE = 0x68

#  command: subscribe variablespeedsign context
CMD_SUBSCRIBE_VARIABLESPEEDSIGN_CONTEXT = 0x09
#  response: subscribe variablespeedsign context
RESPONSE_SUBSCRIBE_VARIABLESPEEDSIGN_CONTEXT = 0x19
#  command: get variablespeedsign variable
CMD_GET_VARIABLESPEEDSIGN_VARIABLE = 0x29
#  response: get variablespeedsign variable
RESPONSE_GET_VARIABLESPEEDSIGN_VARIABLE = 0x39
#  command: set variablespeedsign variable
CMD_SET_VARIABLESPEEDSIGN_VARIABLE = 0x49
#  command: subscribe variablespeedsign variable
CMD_SUBSCRIBE_VARIABLESPEEDSIGN_VARIABLE = 0x59
#  response: subscribe variablespeedsign variable
RESPONSE_SUBSCRIBE_VARIABLESPEEDSIGN_VARIABLE = 0x69

#  command: subscribe meandata context
CMD_SUBSCRIBE_MEANDATA_CONTEXT = 0x0a
#  response: subscribe meandata context
RESPONSE_SUBSCRIBE_MEANDATA_CONTEXT = 0x1a
#  command: get meandata variable
CMD_GET_MEANDATA_VARIABLE = 0x2a
#  response: get meandata variable
RESPONSE_GET_MEANDATA_VARIABLE = 0x3a
#  command: set meandata variable, not used yet
CMD_SET_MEANDATA_VARIABLE = 0x4a
#  command: subscribe meandata variable
CMD_SUBSCRIBE_MEANDATA_VARIABLE = 0x5a
#  response: subscribe meandata variable
RESPONSE_SUBSCRIBE_MEANDATA_VARIABLE = 0x6a

#  command: subscribe overheadwire context
CMD_SUBSCRIBE_OVERHEADWIRE_CONTEXT = 0x0b
#  response: subscribe overheadwire context
RESPONSE_SUBSCRIBE_OVERHEADWIRE_CONTEXT = 0x1b
#  command: get overheadwire variable
CMD_GET_OVERHEADWIRE_VARIABLE = 0x2b
#  response: get overheadwire variable
RESPONSE_GET_OVERHEADWIRE_VARIABLE = 0x3b
#  command: set overheadwire variable
CMD_SET_OVERHEADWIRE_VARIABLE = 0x4b
#  command: subscribe overheadwire variable
CMD_SUBSCRIBE_OVERHEADWIRE_VARIABLE = 0x5b
#  response: subscribe overheadwire variable
RESPONSE_SUBSCRIBE_OVERHEADWIRE_VARIABLE = 0x6b


#  ****************************************
#  POSITION REPRESENTATIONS
#  ****************************************
#  Position in geo-coordinates
POSITION_LON_LAT = 0x00
#  2D cartesian coordinates
POSITION_2D = 0x01
#  Position in geo-coordinates with altitude
POSITION_LON_LAT_ALT = 0x02
#  3D cartesian coordinates
POSITION_3D = 0x03
#  Position on road map
POSITION_ROADMAP = 0x04


#  ****************************************
#  DATA TYPES
#  ****************************************
#  Polygon (2*n doubles)
TYPE_POLYGON = 0x06
#  unsigned byte
TYPE_UBYTE = 0x07
#  signed byte
TYPE_BYTE = 0x08
#  32 bit signed integer
TYPE_INTEGER = 0x09
#  double precision float
TYPE_DOUBLE = 0x0B
#  8 bit ASCII string
TYPE_STRING = 0x0C
#  list of strings
TYPE_STRINGLIST = 0x0E
#  compound object
TYPE_COMPOUND = 0x0F
#  list of double precision floats
TYPE_DOUBLELIST = 0x10
#  color (four ubytes)
TYPE_COLOR = 0x11


#  ****************************************
#  RESULT TYPES
#  ****************************************
#  result type: Ok
RTYPE_OK = 0x00
#  result type: not implemented
RTYPE_NOTIMPLEMENTED = 0x01
#  result type: error
RTYPE_ERR = 0xFF

#  ****************************************
#  special return or parameter values
#  ****************************************
#  return value for invalid queries (especially vehicle is not on the road), see Position::INVALID
INVALID_DOUBLE_VALUE = -1073741824.0
#  return value for invalid queries (especially vehicle is not on the road), see Position::INVALID
INVALID_INT_VALUE = -1073741824
#  maximum value for client ordering (2 ^ 30)
MAX_ORDER = 1073741824
#  default number of connection attempts
DEFAULT_NUM_RETRIES = 60


#  ****************************************
#  DIFFERENT DISTANCE REQUESTS
#  ****************************************
#  air distance
REQUEST_AIRDIST = 0x00
#  driving distance
REQUEST_DRIVINGDIST = 0x01


#  ****************************************
#  VEHICLE REMOVAL REASONS
#  ****************************************
#  vehicle started teleport
REMOVE_TELEPORT = 0x00
#  vehicle removed while parking
REMOVE_PARKING = 0x01
#  vehicle arrived
REMOVE_ARRIVED = 0x02
#  vehicle was vaporized
REMOVE_VAPORIZED = 0x03
#  vehicle finished route during teleport
REMOVE_TELEPORT_ARRIVED = 0x04

#  ****************************************
#  VEHICLE MOVE REASONS
#  ****************************************
#  infer reason from move distance
MOVE_AUTOMATIC = 0x00
#  vehicle teleports to another location
MOVE_TELEPORT = 0x01
#  vehicle moved normally
MOVE_NORMAL = 0x02

#  ****************************************
#  PERSON/CONTAINER STAGES
#  ****************************************
#  person / container stopping
STAGE_WAITING_FOR_DEPART = 0x00
#  person / container stopping
STAGE_WAITING = 0x01
#  person walking
STAGE_WALKING = 0x02
#  person riding / container being transported
STAGE_DRIVING = 0x03
#  person accessing stopping place
STAGE_ACCESS = 0x04
#  stage for encoding abstract travel demand
STAGE_TRIP = 0x05
#  person / container transhiping
STAGE_TRANSHIP = 0x06

#  ****************************************
#  Stop Flags
#  ****************************************
STOP_DEFAULT = 0x00
STOP_PARKING = 0x01
STOP_TRIGGERED = 0x02
STOP_CONTAINER_TRIGGERED = 0x04
STOP_BUS_STOP = 0x08
STOP_CONTAINER_STOP = 0x10
STOP_CHARGING_STATION = 0x20
STOP_PARKING_AREA = 0x40
STOP_OVERHEAD_WIRE = 0x80

#  ****************************************
#  Departure Flags (corresponding value from DepartDefinition, DepartLaneDefinition with a minus)
#  ****************************************
DEPARTFLAG_TRIGGERED = -0x01
DEPARTFLAG_CONTAINER_TRIGGERED = -0x02
DEPARTFLAG_NOW = -0x03
DEPARTFLAG_SPLIT = -0x04
DEPARTFLAG_BEGIN = -0x05

DEPARTFLAG_SPEED_RANDOM = -0x02
DEPARTFLAG_SPEED_MAX = -0x03

DEPARTFLAG_LANE_RANDOM = -0x02
DEPARTFLAG_LANE_FREE = -0x03
DEPARTFLAG_LANE_ALLOWED_FREE = -0x04
DEPARTFLAG_LANE_BEST_FREE = -0x05
DEPARTFLAG_LANE_FIRST_ALLOWED = -0x06

DEPARTFLAG_POS_RANDOM = -0x02
DEPARTFLAG_POS_FREE = -0x03
DEPARTFLAG_POS_BASE = -0x04
DEPARTFLAG_POS_LAST = -0x05
DEPARTFLAG_POS_RANDOM_FREE = -0x06

ARRIVALFLAG_LANE_CURRENT = -0x02
ARRIVALFLAG_SPEED_CURRENT = -0x02

ARRIVALFLAG_POS_RANDOM = -0x02
ARRIVALFLAG_POS_MAX = -0x03

#  ****************************************
#  Routing modes
#  ****************************************
#  use custom weights if available, fall back to loaded weights and then to free-flow speed
ROUTING_MODE_DEFAULT = 0x00
#  use aggregated travel times from device.rerouting
ROUTING_MODE_AGGREGATED = 0x01
#  use loaded efforts
ROUTING_MODE_EFFORT = 0x02
#  use combined costs
ROUTING_MODE_COMBINED = 0x03
#  use aggregated travel times from device.rerouting enriched with custom weights
ROUTING_MODE_AGGREGATED_CUSTOM = 0x04
#  when this bit is set, routing does not consider temporary permission changes (i.e. from rerouters)
#  note: can be combined with either one of the other modes (bitwise)
ROUTING_MODE_IGNORE_TRANSIENT_PERMISSIONS = 0x08

#  ****************************************
#  Traffic light types
#  ****************************************
TRAFFICLIGHT_TYPE_STATIC = 0x00
TRAFFICLIGHT_TYPE_ACTUATED = 0x03
TRAFFICLIGHT_TYPE_NEMA = 0x04
TRAFFICLIGHT_TYPE_DELAYBASED = 0x05

#  ****************************************
#  Lane change directions
#  ****************************************
LANECHANGE_LEFT = 0x01
LANECHANGE_RIGHT = -0x01

#  ****************************************
#  FILTER TYPES (for context subscription filters)
#  ****************************************

#  Reset all filters
FILTER_TYPE_NONE = 0x00

#  Filter by list of lanes relative to ego vehicle
FILTER_TYPE_LANES = 0x01

#  Exclude vehicles on opposite (and other) lanes from context subscription result
FILTER_TYPE_NOOPPOSITE = 0x02

#  Specify maximal downstream distance for vehicles in context subscription result
FILTER_TYPE_DOWNSTREAM_DIST = 0x03

#  Specify maximal upstream distance for vehicles in context subscription result
FILTER_TYPE_UPSTREAM_DIST = 0x04

#  Only return leader and follower on the specified lanes in context subscription result
FILTER_TYPE_LEAD_FOLLOW = 0x05

#  Only return foes on upcoming junctions in context subscription result
FILTER_TYPE_TURN = 0x07

#  Only return vehicles of the given vClass in context subscription result
FILTER_TYPE_VCLASS = 0x08

#  Only return vehicles of the given vType in context subscription result
FILTER_TYPE_VTYPE = 0x09

#  Only return vehicles within field of vision in context subscription result
FILTER_TYPE_FIELD_OF_VISION = 0x0A

#  Only return vehicles within the given lateral distance in context subscription result
FILTER_TYPE_LATERAL_DIST = 0x0B

#  ****************************************
#  VARIABLE TYPES (for CMD_GET_*_VARIABLE)
#  ****************************************
#  list of instances' ids (get: all)
TRACI_ID_LIST = 0x00

#  count of instances (get: all)
ID_COUNT = 0x01

#  subscribe object variables (get: all)
AUTOMATIC_VARIABLES_SUBSCRIPTION = 0x02

#  subscribe context variables (get: all)
AUTOMATIC_CONTEXT_SUBSCRIPTION = 0x03

#  generic attributes (get/set: all)
GENERIC_ATTRIBUTE = 0x03

#  last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
LAST_STEP_VEHICLE_NUMBER = 0x10

#  last step vehicle number (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
LAST_STEP_MEAN_SPEED = 0x11

#  last step vehicle list (get: induction loops, multi-entry/multi-exit detector, lanes, edges)
LAST_STEP_VEHICLE_ID_LIST = 0x12

#  last step occupancy (get: e1, e2, lanes, edges)
LAST_STEP_OCCUPANCY = 0x13

#  last step vehicle halting number (get: e2, e3, lanes, edges)
LAST_STEP_VEHICLE_HALTING_NUMBER = 0x14

#  upstream junction (edges)
FROM_JUNCTION = 0x7b

#  downstream junction (edges)
TO_JUNCTION = 0x7c

#  incoming edges (junction)
INCOMING_EDGES = 0x7b

#  outgoing edges (junction)
OUTGOING_EDGES = 0x7c

#  get bidi object (edges, lanes)
VAR_BIDI = 0x7f

#  last step mean vehicle length (get: induction loops, lanes, edges)
LAST_STEP_LENGTH = 0x15

#  last step time since last detection (get: induction loops)
LAST_STEP_TIME_SINCE_DETECTION = 0x16

#  entry times (get: inductionloop)
LAST_STEP_VEHICLE_DATA = 0x17

#  get aggregated occupancy (get: inductionloop, e2)
VAR_INTERVAL_OCCUPANCY = 0x23

#  get aggregated speed (get: inductionloop, e2)
VAR_INTERVAL_SPEED = 0x24

#  get aggregated vehicle count (get: inductionloop, e2)
VAR_INTERVAL_NUMBER = 0x25

#  get aggregated vehicle ids (get: inductionloop)
VAR_INTERVAL_IDS = 0x26

#  get aggregated vehicle ids (get: inductionloop)
VAR_INTERVAL_TIMELOSS = 0x34

#  get aggregated speed of last written interval (get: inductionloop, e2)
VAR_LAST_INTERVAL_OCCUPANCY = 0x27

#  get aggregated occupancy of last written interval (get: inductionloop, e2)
VAR_LAST_INTERVAL_SPEED = 0x28

#  get aggregated vehicle count of last written interval (get: inductionloop, e2)
VAR_LAST_INTERVAL_NUMBER = 0x29

#  get aggregated vehicle ids of last written interval (get: inductionloop)
VAR_LAST_INTERVAL_IDS = 0x2a

#  last step jam length in vehicles (get: e2)
JAM_LENGTH_VEHICLE = 0x18

#  last step jam length in meters (get: e2)
JAM_LENGTH_METERS = 0x19

#  get aggregated jam length (e2)
VAR_INTERVAL_MAX_JAM_LENGTH_METERS = 0x32

#  get prior aggregated jam length (e2)
VAR_LAST_INTERVAL_MAX_JAM_LENGTH_METERS = 0x33

#  last interval travel time (get: e3)
VAR_LAST_INTERVAL_TRAVELTIME = 0x58

#  last step vehicle halting number (get: e3)
VAR_LAST_INTERVAL_MEAN_HALTING_NUMBER = 0x20

#  last interval vehicle count(get: e3)
VAR_LAST_INTERVAL_VEHICLE_NUMBER = 0x21

#  last interval vehicle count(get: e2, e3)
VAR_LAST_INTERVAL_TIMELOSS = 0x35

#  last interval vehicle count(set, get: e1, e2)
VAR_VIRTUAL_DETECTION = 0x22

#  last step person list (get: edges, vehicles)
LAST_STEP_PERSON_ID_LIST = 0x1a

#  full name (get: edges, simulation, trafficlight)
VAR_NAME = 0x1b

#  carFollowModel function followSpeed (get: vehicle)
VAR_FOLLOW_SPEED = 0x1c

#  carFollowModel function stopSpeed (get: vehicle)
VAR_STOP_SPEED = 0x1d

#  carFollowModel function getSecureGap (get: vehicle)
VAR_SECURE_GAP = 0x1e

#  estimated (depart) delay for next stop (get: vehicle)
VAR_STOP_DELAY = 0x1f

#  estimated arrival delay for next stop (get: vehicle)
VAR_STOP_ARRIVALDELAY = 0x22

#  collected timeLoss since departure (get: vehicle, e3)
VAR_TIMELOSS = 0x8c

#   begin time(get: calibrator)
VAR_BEGIN = 0x1c

#   end time(get: calibrator, simulation)
VAR_END = 0x1d

#  vtype list (get: calibrator)
VAR_VTYPES = 0x1e

#   vehicles per hour (get: calibrator)
VAR_VEHSPERHOUR = 0x13

#  passed vehicle count (get: calibrator)
VAR_PASSED = 0x14

#  inserted vehicle count (get: calibrator)
VAR_INSERTED = 0x15

#  removed vehicle count (get: calibrator)
VAR_REMOVED = 0x16

#  routeProbe id (get: calibrator)
VAR_ROUTE_PROBE = 0x17

#  routeProbe id (get: calibrator)
CMD_SET_FLOW = 0x18

#  traffic light states, encoded as rRgGyYoO tuple (get: traffic lights)
TL_RED_YELLOW_GREEN_STATE = 0x20

#  index of the phase (set: traffic lights)
TL_PHASE_INDEX = 0x22

#  traffic light program (set: traffic lights)
TL_PROGRAM = 0x23

#  phase duration (set: traffic lights)
TL_PHASE_DURATION = 0x24

#  vehicles that block passing the given signal (get: traffic lights)
TL_BLOCKING_VEHICLES = 0x25

#  controlled lanes (get: traffic lights)
TL_CONTROLLED_LANES = 0x26

#  controlled links (get: traffic lights)
TL_CONTROLLED_LINKS = 0x27

#  index of the current phase (get: traffic lights)
TL_CURRENT_PHASE = 0x28

#  name of the current program (get: traffic lights)
TL_CURRENT_PROGRAM = 0x29

#  vehicles that also wish to pass the given signal (get: traffic lights)
TL_RIVAL_VEHICLES = 0x30

#  vehicles that also wish to pass the given signal and have higher priority (get: traffic lights)
TL_PRIORITY_VEHICLES = 0x31

#  controlled junctions (get: traffic lights)
TL_CONTROLLED_JUNCTIONS = 0x2a

#  complete definition (get: traffic lights)
TL_COMPLETE_DEFINITION_RYG = 0x2b

#  complete program (set: traffic lights)
TL_COMPLETE_PROGRAM_RYG = 0x2c

#  assumed time to next switch (get: traffic lights)
TL_NEXT_SWITCH = 0x2d

#  add/get rail signal constraints
TL_CONSTRAINT = 0x2f

#  switch order of trains encoded in rail signal constraints (set: traffic lights)
TL_CONSTRAINT_SWAP = 0x32

#  add/get rail signal constraints by foeSignal (get: traffic lights)
TL_CONSTRAINT_BYFOE = 0x34

#  add/get rail signal constraints by foeSignal (set: traffic lights)
TL_CONSTRAINT_REMOVE = 0x35

#  update rail signal constraints by vehID (set: traffic lights)
TL_CONSTRAINT_UPDATE = 0x36

#  add rail signal constraint (set: traffic lights)
TL_CONSTRAINT_ADD = 0x37

#  retrieve duration spent in the current phase (get: traffic lights)
TL_SPENT_DURATION = 0x38

#  outgoing link number (get: lanes)
LANE_LINK_NUMBER = 0x30

#  id of parent edge (get: lanes)
LANE_EDGE_ID = 0x31

#  outgoing link definitions (get: lanes)
LANE_LINKS = 0x33

#  list of allowed vehicle classes (get&set: lanes)
LANE_ALLOWED = 0x34

#  list of not allowed vehicle classes (get&set: lanes)
LANE_DISALLOWED = 0x35

#  list of allowed vehicle classes for lane changes (get&set: lanes)
LANE_CHANGES = 0x3c

#  list of foe lanes (get: lane, vehicle)
VAR_FOES = 0x37

#  slope (get: edge, lane, vehicle, person)
VAR_SLOPE = 0x36

#  speed (get: vehicle)
VAR_SPEED = 0x40

#  adapt previous speed (set: vehicle)
VAR_PREV_SPEED = 0x3c

#  friction coefficient (set&get: lanes, set: edges)
VAR_FRICTION = 0x3d

#  lateral speed (get: vehicle)
VAR_SPEED_LAT = 0x32

#  maximum allowed/possible speed (get: vehicle types, lanes, set: edges, lanes)
VAR_MAXSPEED = 0x41

#  position (2D) (get: vehicle, poi, inductionloop, lane area detector, multi-entry/multi-exit detector; set: poi)
VAR_POSITION = 0x42

#  position (2D) (get: multi-entry/multi-exit detector)
VAR_EXIT_POSITIONS = 0x43

#  position (3D) (get: vehicle, poi, set: poi)
VAR_POSITION3D = 0x39

#  angle (get: vehicle, edge, lane, poi, gui; set: poi, gui)
VAR_ANGLE = 0x43

#  length (get: vehicle types, lanes, lane area detector, set: lanes)
VAR_LENGTH = 0x44

#  color (get: vehicles, vehicle types, polygons, pois)
VAR_COLOR = 0x45

#  max. acceleration (get: vehicles, vehicle types)
VAR_ACCEL = 0x46

#  max. comfortable deceleration (get: vehicles, vehicle types)
VAR_DECEL = 0x47

#  max. (physically possible) deceleration (get: vehicles, vehicle types)
VAR_EMERGENCY_DECEL = 0x7b

#  apparent deceleration (get: vehicles, vehicle types)
VAR_APPARENT_DECEL = 0x7c

#  action step length (get: vehicles, vehicle types)
VAR_ACTIONSTEPLENGTH = 0x7d

#  last action time (get: vehicles)
VAR_LASTACTIONTIME = 0x7f

#  driver's desired headway (get: vehicle types)
VAR_TAU = 0x48

#  vehicle class (get: vehicle types)
VAR_VEHICLECLASS = 0x49

#  emission class (get: vehicle types)
VAR_EMISSIONCLASS = 0x4a

#  shape class (get: vehicle types)
VAR_SHAPECLASS = 0x4b

#  minimum gap (get: vehicle types)
VAR_MINGAP = 0x4c

#  width (get: vehicle types, lanes, polygons, poi)
VAR_WIDTH = 0x4d

#  shape (get: polygons)
VAR_SHAPE = 0x4e

#  type id (get: vehicles, polygons, pois)
VAR_TYPE = 0x4f

#  road id (get: vehicles)
VAR_ROAD_ID = 0x50

#  lane id (get: vehicles, inductionloop, lane area detector)
VAR_LANE_ID = 0x51

#  lane index (get: vehicle, edge)
VAR_LANE_INDEX = 0x52

#  segment id (get: vehicle)
VAR_SEGMENT_ID = 0xa1

#  segment index (get: vehicle)
VAR_SEGMENT_INDEX = 0xa2

#  route id (get & set: vehicles)
VAR_ROUTE_ID = 0x53

#  edges (get: routes, vehicles)
VAR_EDGES = 0x54

#  filled? (set: vehicles)
VAR_STOP_PARAMETER = 0x55

#  lanes (get: variablespeedsign, multi-entry/multi-exit detector)
VAR_LANES = 0x30

#  exit lanes (get: multi-entry/multi-exit detector)
VAR_EXIT_LANES = 0x31

#  update bestLanes (set: vehicle)
VAR_UPDATE_BESTLANES = 0x6a

#  filled? (get: polygons)
VAR_FILL = 0x55

#  get/set image file (poi, poly, vehicle, person, simulation)
VAR_IMAGEFILE = 0x93

#  position (1D along lane) (get: vehicle)
VAR_LANEPOSITION = 0x56

#  route (set: vehicles)
VAR_ROUTE = 0x57

#  travel time information (get&set: vehicle)
VAR_EDGE_TRAVELTIME = 0x58

#  effort information (get&set: vehicle)
VAR_EDGE_EFFORT = 0x59

#  last step travel time (get: edge, lane, e3)
VAR_CURRENT_TRAVELTIME = 0x5a

#  signals state (get/set: vehicle)
VAR_SIGNALS = 0x5b

#  vehicle: new lane/position along (set: vehicle)
VAR_MOVE_TO = 0x5c

#  polygon: add dynamics (set: polygon)
VAR_ADD_DYNAMICS = 0x5c

#  vehicle: highlight (set: vehicle, poi)
VAR_HIGHLIGHT = 0x6c

#  driver imperfection (set: vehicle)
VAR_IMPERFECTION = 0x5d

#  speed factor (set: vehicle)
VAR_SPEED_FACTOR = 0x5e

#  speed deviation (set: vehicle)
VAR_SPEED_DEVIATION = 0x5f

#  routing mode (get/set: vehicle)
VAR_ROUTING_MODE = 0x89

#  speed without TraCI influence (get: vehicle)
VAR_SPEED_WITHOUT_TRACI = 0xb1

#  best lanes (get: vehicle)
VAR_BEST_LANES = 0xb2

#  how speed is set (set: vehicle)
VAR_SPEEDSETMODE = 0xb3

#  move vehicle to explicit (remote controlled) position (set: vehicle)
MOVE_TO_XY = 0xb4

#  is the vehicle stopped, and if so parked and/or triggered?
#  value = stopped + 2 * parking + 4 * triggered
VAR_STOPSTATE = 0xb5

#  how lane changing is performed (get/set: vehicle)
VAR_LANECHANGE_MODE = 0xb6

#  maximum speed regarding max speed on the current lane and speed factor (get: vehicle)
VAR_ALLOWED_SPEED = 0xb7

#  position (1D lateral position relative to center of the current lane) (get: vehicle)
VAR_LANEPOSITION_LAT = 0xb8

#  get/set prefered lateral alignment within the lane (vehicle)
VAR_LATALIGNMENT = 0xb9

#  get/set maximum lateral speed (vehicle, vtypes)
VAR_MAXSPEED_LAT = 0xba

#  get/set minimum lateral gap (vehicle, vtypes)
VAR_MINGAP_LAT = 0xbb

#  get/set vehicle height (vehicle, vtypes, poi)
VAR_HEIGHT = 0xbc

#  get/set mass (vehicle, vtype)
VAR_MASS = 0xc8

#  get/set vehicle line
VAR_LINE = 0xbd

#  get/set vehicle via
VAR_VIA = 0xbe

#  get (lane change relevant) neighboring vehicles (vehicles)
VAR_NEIGHBORS = 0xbf

#  current CO2 emission of a node (get: vehicle, lane, edge)
VAR_CO2EMISSION = 0x60

#  current CO emission of a node (get: vehicle, lane, edge)
VAR_COEMISSION = 0x61

#  current HC emission of a node (get: vehicle, lane, edge)
VAR_HCEMISSION = 0x62

#  current PMx emission of a node (get: vehicle, lane, edge)
VAR_PMXEMISSION = 0x63

#  current NOx emission of a node (get: vehicle, lane, edge)
VAR_NOXEMISSION = 0x64

#  current fuel consumption of a node (get: vehicle, lane, edge)
VAR_FUELCONSUMPTION = 0x65

#  current noise emission of a node (get: vehicle, lane, edge)
VAR_NOISEEMISSION = 0x66

#  current person number (get: vehicle, trafficlight)
VAR_PERSON_NUMBER = 0x67

#  person capacity (vehicle, vehicle type)
VAR_PERSON_CAPACITY = 0x38

#  departure time (vehicle, person)
VAR_DEPARTURE = 0x3a

#  departure delay (vehicle, person)
VAR_DEPART_DELAY = 0x3b

#  boarding time (get: vehicle type, vehicle, person)
VAR_BOARDING_DURATION = 0x2f

#  impatience (get,set: vehicle type, vehicle, person)
VAR_IMPATIENCE = 0x26

VAR_BUS_STOP_ID_LIST = 0x9f

#  number of persons waiting at a defined bus stop (get: simulation)
VAR_BUS_STOP_WAITING = 0x67

#  ids of persons waiting at a defined bus stop (get: simulation)
VAR_BUS_STOP_WAITING_IDS = 0xef

#  current leader together with gap (get: vehicle)
VAR_LEADER = 0x68

#  current leader together with gap (get: vehicle)
VAR_FOLLOWER = 0x78

#  edge index in current route (get: vehicle)
VAR_ROUTE_INDEX = 0x69

#  current waiting time (get: vehicle, lane)
VAR_WAITING_TIME = 0x7a

#  current waiting time (get: vehicle)
VAR_ACCUMULATED_WAITING_TIME = 0x87

#  upcoming traffic lights (get: vehicle)
VAR_NEXT_TLS = 0x70

#  upcoming stops (get: vehicle)
VAR_NEXT_STOPS = 0x73

#  upcoming stops with selection (get: vehicle)
VAR_NEXT_STOPS2 = 0x74

#  upcoming links(get: vehicle)
VAR_NEXT_LINKS = 0x33

#  current acceleration (get,set: vehicle)
VAR_ACCELERATION = 0x72

#  arrival position (get,set: vehicle)
VAR_ARRIVALPOS = 0x75

#  arrival lane (get,set: vehicle)
VAR_ARRIVALLANE = 0x76

#  arrival speed (get,set: vehicle)
VAR_ARRIVALSPEED = 0x77

#  add log message (set: simulation)
CMD_MESSAGE = 0x65

#  current time in seconds (get: simulation)
VAR_TIME = 0x66

#  current time step (get: simulation)
VAR_TIME_STEP = 0x70

#  current electricity consumption of a node (get: vehicle, lane, edge)
VAR_ELECTRICITYCONSUMPTION = 0x71

#  number of loaded vehicles (get: simulation)
VAR_LOADED_VEHICLES_NUMBER = 0x71

#  loaded vehicle ids (get: simulation)
VAR_LOADED_VEHICLES_IDS = 0x72

#  number of departed vehicle (get: simulation)
VAR_DEPARTED_VEHICLES_NUMBER = 0x73

#  departed vehicle ids (get: simulation)
VAR_DEPARTED_VEHICLES_IDS = 0x74

#  number of vehicles starting to teleport (get: simulation)
VAR_TELEPORT_STARTING_VEHICLES_NUMBER = 0x75

#  ids of vehicles starting to teleport (get: simulation)
VAR_TELEPORT_STARTING_VEHICLES_IDS = 0x76

#  number of vehicles ending to teleport (get: simulation)
VAR_TELEPORT_ENDING_VEHICLES_NUMBER = 0x77

#  ids of vehicles ending to teleport (get: simulation)
VAR_TELEPORT_ENDING_VEHICLES_IDS = 0x78

#  number of arrived vehicles (get: simulation)
VAR_ARRIVED_VEHICLES_NUMBER = 0x79

#  ids of arrived vehicles (get: simulation)
VAR_ARRIVED_VEHICLES_IDS = 0x7a

#  delta t (get: simulation)
VAR_DELTA_T = 0x7b

#  bounding box (get: simulation)
VAR_NET_BOUNDING_BOX = 0x7c

#  minimum number of expected vehicles (get: simulation)
VAR_MIN_EXPECTED_VEHICLES = 0x7d

#  number of departed persons (get: simulation)
VAR_DEPARTED_PERSONS_NUMBER = 0x24

#  departed person ids (get: simulation)
VAR_DEPARTED_PERSONS_IDS = 0x25

#  number of arrived persons (get: simulation)
VAR_ARRIVED_PERSONS_NUMBER = 0x26

#  ids of arrived persons (get: simulation)
VAR_ARRIVED_PERSONS_IDS = 0x27

#  number of vehicles starting to park (get: simulation)
VAR_STOP_STARTING_VEHICLES_NUMBER = 0x68

#  ids of vehicles starting to park (get: simulation)
VAR_STOP_STARTING_VEHICLES_IDS = 0x69

#  number of vehicles ending to park (get: simulation)
VAR_STOP_ENDING_VEHICLES_NUMBER = 0x6a

#  ids of vehicles ending to park (get: simulation)
VAR_STOP_ENDING_VEHICLES_IDS = 0x6b

#  number of vehicles starting to park (get: simulation)
VAR_PARKING_STARTING_VEHICLES_NUMBER = 0x6c

#  ids of vehicles starting to park (get: simulation)
VAR_PARKING_STARTING_VEHICLES_IDS = 0x6d

#  number of vehicles maneuvering (get: simulation)
VAR_PARKING_MANEUVERING_VEHICLES_NUMBER = 0x3a

#  ids of vehicles maneuvering (get: simulation)
VAR_PARKING_MANEUVERING_VEHICLES_IDS = 0x3b

#  number of vehicles ending to park (get: simulation)
VAR_PARKING_ENDING_VEHICLES_NUMBER = 0x6e

#  ids of vehicles ending to park (get: simulation)
VAR_PARKING_ENDING_VEHICLES_IDS = 0x6f

#  number of vehicles involved in a collision (get: simulation)
VAR_COLLIDING_VEHICLES_NUMBER = 0x80

#  ids of vehicles involved in a collision (get: simulation)
VAR_COLLIDING_VEHICLES_IDS = 0x81

#  number of vehicles involved in a collision (get: simulation)
VAR_EMERGENCYSTOPPING_VEHICLES_NUMBER = 0x89

#  ids of vehicles involved in a collision (get: simulation)
VAR_EMERGENCYSTOPPING_VEHICLES_IDS = 0x8a

#  scale traffic (set, get: simulation, vehicle)
VAR_SCALE = 0x8e

#  clears the simulation of all not inserted vehicles (set: simulation)
CMD_CLEAR_PENDING_VEHICLES = 0x94

#  retrieve number of not inserted  vehicles (get: simulation, edge, lane)
VAR_PENDING_VEHICLES = 0x94

#  retrieve global option value (get: simulation)
VAR_OPTION = 0x32

#  triggers saving simulation state (set: simulation)
CMD_SAVE_SIMSTATE = 0x95

#  triggers saving simulation state (set: simulation)
CMD_LOAD_SIMSTATE = 0x96

#  retrieve detail data for each collision
VAR_COLLISIONS = 0x23

#  return loaded vehicles regardless of visibility (excluding arrived)
VAR_LOADED_LIST = 0x24

#  return teleporting vehicles
VAR_TELEPORTING_LIST = 0x25

#  sets/retrieves abstract parameter
VAR_PARAMETER = 0x7e

#  retrieves abstract parameter and returns (key, value) tuple
VAR_PARAMETER_WITH_KEY = 0x3e

#  add an instance (poi, polygon, vehicle, person, route, gui)
ADD = 0x80

#  remove an instance (poi, polygon, vehicle, person, gui, route)
REMOVE = 0x81

#  copy an instance (vehicle type, other TBD.)
COPY = 0x88

#  convert coordinates
POSITION_CONVERSION = 0x82

#  distance between points or vehicles
DISTANCE_REQUEST = 0x83

#  the current driving distance
VAR_DISTANCE = 0x84

#  add a fully specified instance (vehicle)
ADD_FULL = 0x85

#  find a car based route
FIND_ROUTE = 0x86

#  find an intermodal route
FIND_INTERMODAL_ROUTE = 0x87

#  force rerouting based on travel time (vehicles)
CMD_REROUTE_TRAVELTIME = 0x90

#  force rerouting based on effort (vehicles)
CMD_REROUTE_EFFORT = 0x91

#  validates current route (vehicles)
VAR_ROUTE_VALID = 0x92

#  retrieve distance along linear reference system (vehicle, edge)
VAR_REFERENCE_DISTANCE = 0x95

#  retrieve information regarding the current person/container stage
VAR_STAGE = 0xc0

#  retrieve information regarding the next edge including crossings and walkingAreas (pedestrians only)
VAR_NEXT_EDGE = 0xc1

#  retrieve information regarding the number of remaining stages
VAR_STAGES_REMAINING = 0xc2

#  retrieve the current vehicle id for the driving stage (person, container)
VAR_VEHICLE = 0xc3

#  append a person stage (person)
APPEND_STAGE = 0xc4

#  replace a person stage (person)
REPLACE_STAGE = 0xcd

#  append a person stage (person)
REMOVE_STAGE = 0xc5

#  retrieve taxi reservation (person)
VAR_TAXI_RESERVATIONS = 0xc6

#  manipulate taxi reservation (person)
SPLIT_TAXI_RESERVATIONS = 0xc7

#  sample last route (routeprobe)
VAR_SAMPLE_LAST = 0x20

#  sample current route (routeprobe)
VAR_SAMPLE_CURRENT = 0x21

#  zoom
VAR_VIEW_ZOOM = 0xa0

#  view position
VAR_VIEW_OFFSET = 0xa1

#  view schema
VAR_VIEW_SCHEMA = 0xa2

#  view by boundary
VAR_VIEW_BOUNDARY = 0xa3

#  select/deselect object (gui)
VAR_SELECT = 0xa4

#  screenshot
VAR_SCREENSHOT = 0xa5

#  track vehicle
VAR_TRACK_VEHICLE = 0xa6

#  presence of view
VAR_HAS_VIEW = 0xa7

#  charging station power
VAR_CS_POWER = 0x97

#  charging station power
VAR_CS_EFFICIENCY = 0x98

#  charging station power
VAR_CS_CHARGE_IN_TRANSIT = 0x99

#  charging station power
VAR_CS_CHARGE_DELAY = 0x9a

#  parking area access permissions
VAR_ACCESS_BADGE = 0x9b

#  charging station total power
VAR_CS_TOTAL_POWER = 0x9c

# @name currently wanted lane-change action
# @{
# @brief No action desired
LCA_NONE = 0
# @brief Needs to stay on the current lane
LCA_STAY = 1 << 0
# @brief Wants go to the left
LCA_LEFT = 1 << 1
# @brief Wants go to the right
LCA_RIGHT = 1 << 2
# @brief The action is needed to follow the route (navigational lc)
LCA_STRATEGIC = 1 << 3
# @brief The action is done to help someone else
LCA_COOPERATIVE = 1 << 4
# @brief The action is due to the wish to be faster (tactical lc)
LCA_SPEEDGAIN = 1 << 5
# @brief The action is due to the default of keeping right "Rechtsfahrgebot"
LCA_KEEPRIGHT = 1 << 6
# @brief The action is due to a TraCI request
LCA_TRACI = 1 << 7
# @brief The action is urgent (to be defined by lc-model)
LCA_URGENT = 1 << 8
# @brief The action has not been determined
LCA_UNKNOWN = 1 << 30
# @}

# @name External state
# @{
# @brief The vehicle is blocked by left leader
LCA_BLOCKED_BY_LEFT_LEADER = 1 << 9
# @brief The vehicle is blocked by left follower
LCA_BLOCKED_BY_LEFT_FOLLOWER = 1 << 10
# @brief The vehicle is blocked by right leader
LCA_BLOCKED_BY_RIGHT_LEADER = 1 << 11
# @brief The vehicle is blocked by right follower
LCA_BLOCKED_BY_RIGHT_FOLLOWER = 1 << 12
# @brief The vehicle is blocked being overlapping
LCA_OVERLAPPING = 1 << 13
# @brief The vehicle does not have enough space to complete a continuous change before the next turn
LCA_INSUFFICIENT_SPACE = 1 << 14
# @brief used by the sublane model
LCA_SUBLANE = 1 << 15
# @brief Vehicle is too slow to complete a continuous lane change (in case that maxSpeedLatStanding==0)
LCA_INSUFFICIENT_SPEED = 1 << 28
# @brief lane can change
LCA_WANTS_LANECHANGE = LCA_LEFT | LCA_RIGHT
# @brief lane can change or stay
LCA_WANTS_LANECHANGE_OR_STAY = LCA_WANTS_LANECHANGE | LCA_STAY
# @brief blocked left
LCA_BLOCKED_LEFT = LCA_BLOCKED_BY_LEFT_LEADER | LCA_BLOCKED_BY_LEFT_FOLLOWER
# @brief blocked right
LCA_BLOCKED_RIGHT = LCA_BLOCKED_BY_RIGHT_LEADER | LCA_BLOCKED_BY_RIGHT_FOLLOWER
# @brief blocked by leader
LCA_BLOCKED_BY_LEADER = LCA_BLOCKED_BY_LEFT_LEADER | LCA_BLOCKED_BY_RIGHT_LEADER
# @brief blocker by follower
LCA_BLOCKED_BY_FOLLOWER = LCA_BLOCKED_BY_LEFT_FOLLOWER | LCA_BLOCKED_BY_RIGHT_FOLLOWER
# @brief blocked in all directions
LCA_BLOCKED = LCA_BLOCKED_LEFT | LCA_BLOCKED_RIGHT | LCA_INSUFFICIENT_SPACE | LCA_INSUFFICIENT_SPEED
# @brief reasons of lane change
LCA_CHANGE_REASONS = (LCA_STRATEGIC | LCA_COOPERATIVE | LCA_SPEEDGAIN | LCA_KEEPRIGHT | LCA_SUBLANE | LCA_TRACI)
#  LCA_BLOCKED_BY_CURRENT_LEADER = 1 << 28
#  LCA_BLOCKED_BY_CURRENT_FOLLOWER = 1 << 29
# @}

# @name originally model specific states (migrated here since
#       they were duplicated in all current models)
# @{
LCA_AMBLOCKINGLEADER = 1 << 16
LCA_AMBLOCKINGFOLLOWER = 1 << 17
LCA_MRIGHT = 1 << 18
LCA_MLEFT = 1 << 19
#  !!! never set LCA_UNBLOCK = 1 << 20,
LCA_AMBLOCKINGFOLLOWER_DONTBRAKE = 1 << 21
#  !!! never used LCA_AMBLOCKINGSECONDFOLLOWER = 1 << 22,
LCA_CHANGE_TO_HELP = 1 << 23
#  !!! never read LCA_KEEP1 = 1 << 24,
#  !!! never used LCA_KEEP2 = 1 << 25,
LCA_AMBACKBLOCKER = 1 << 26
LCA_AMBACKBLOCKER_STANDING = 1 << 27
# @}
