Path: blob/main/tools/contributed/sumopy/coremodules/simulation/simulationbase.py
169689 views
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo1# Copyright (C) 2016-2025 German Aerospace Center (DLR) and others.2# SUMOPy module3# Copyright (C) 2012-2021 University of Bologna - DICAM4# This program and the accompanying materials are made available under the5# terms of the Eclipse Public License 2.0 which is available at6# https://www.eclipse.org/legal/epl-2.0/7# This Source Code may also be made available under the following Secondary8# Licenses when the conditions for such availability set forth in the Eclipse9# Public License 2.0 are satisfied: GNU General Public License, version 210# or later which is available at11# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html12# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later1314# @file simulationbase.py15# @author Joerg Schweizer16# @date 2012171819import numpy as np20import agilepy.lib_base.classman as cm21import agilepy.lib_base.arrayman as am22import agilepy.lib_base.xmlman as xm23from agilepy.lib_base.misc import random_choice, get_inversemap242526class SimobjMixin:27def prepare_sim(self, process):28return [] # [(steptime1,func1),(steptime2,func2),...]2930def config_simresults(self, results):31# tripresults = res.Tripresults( 'tripresults', results,32# self,33# self.get_net().edges34# )35#36#37#results.config(tripresults, groupnames = ['Trip results'])38pass3940def process_results(self, results, process=None):41pass4243def finish_sim(self):44pass454647