Path: blob/main/tests/complex/tutorial/city_mobil/data/constants.py
169708 views
# -*- coding: utf-8 -*-1# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo2# Copyright (C) 2008-2025 German Aerospace Center (DLR) and others.3# This program and the accompanying materials are made available under the4# terms of the Eclipse Public License 2.0 which is available at5# https://www.eclipse.org/legal/epl-2.0/6# This Source Code may also be made available under the following Secondary7# Licenses when the conditions for such availability set forth in the Eclipse8# Public License 2.0 are satisfied: GNU General Public License, version 29# or later which is available at10# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html11# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later1213# @file constants.py14# @author Michael Behrisch15# @author Daniel Krajzewicz16# @date 2008-07-211718from __future__ import absolute_import19import os20import sys2122INFINITY = 1e4002324PREFIX = "park"25DOUBLE_ROWS = 826ROW_DIST = 2927STOP_POS = ROW_DIST - 928SLOTS_PER_ROW = 1029SLOT_WIDTH = 530SLOT_LENGTH = 931SLOT_FOOT_LENGTH = 532CAR_CAPACITY = 333CYBER_CAPACITY = 2034BUS_CAPACITY = 3035TOTAL_CAPACITY = 6036CYBER_SPEED = 537CYBER_LENGTH = 938WAIT_PER_PERSON = 539OCCUPATION_PROBABILITY = 0.540BREAK_DELAY = 12004142SUMO_HOME = os.path.realpath(os.environ.get(43"SUMO_HOME", os.path.join(os.path.dirname(__file__), "..", "..", "..", "..")))44sys.path.append(os.path.join(SUMO_HOME, "tools"))45try:46from sumolib import checkBinary # noqa47except ImportError:48def checkBinary(name):49return name50NETCONVERT = checkBinary("netconvert")51SUMO = checkBinary("sumo")52SUMOGUI = checkBinary("sumo-gui")535455