Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
eclipse
GitHub Repository: eclipse/sumo
Path: blob/main/tools/contributed/sumopy/coremodules/simulation/simulationbase.py
169689 views
1
# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.dev/sumo
2
# Copyright (C) 2016-2025 German Aerospace Center (DLR) and others.
3
# SUMOPy module
4
# Copyright (C) 2012-2021 University of Bologna - DICAM
5
# This program and the accompanying materials are made available under the
6
# terms of the Eclipse Public License 2.0 which is available at
7
# https://www.eclipse.org/legal/epl-2.0/
8
# This Source Code may also be made available under the following Secondary
9
# Licenses when the conditions for such availability set forth in the Eclipse
10
# Public License 2.0 are satisfied: GNU General Public License, version 2
11
# or later which is available at
12
# https://www.gnu.org/licenses/old-licenses/gpl-2.0-standalone.html
13
# SPDX-License-Identifier: EPL-2.0 OR GPL-2.0-or-later
14
15
# @file simulationbase.py
16
# @author Joerg Schweizer
17
# @date 2012
18
19
20
import numpy as np
21
import agilepy.lib_base.classman as cm
22
import agilepy.lib_base.arrayman as am
23
import agilepy.lib_base.xmlman as xm
24
from agilepy.lib_base.misc import random_choice, get_inversemap
25
26
27
class SimobjMixin:
28
def prepare_sim(self, process):
29
return [] # [(steptime1,func1),(steptime2,func2),...]
30
31
def config_simresults(self, results):
32
# tripresults = res.Tripresults( 'tripresults', results,
33
# self,
34
# self.get_net().edges
35
# )
36
#
37
#
38
#results.config(tripresults, groupnames = ['Trip results'])
39
pass
40
41
def process_results(self, results, process=None):
42
pass
43
44
def finish_sim(self):
45
pass
46
47