1# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo 2# Copyright (C) 2016-2019 German Aerospace Center (DLR) and others. 3# SUMOPy module 4# Copyright (C) 2012-2017 University of Bologna - DICAM 5# This program and the accompanying materials 6# are made available under the terms of the Eclipse Public License v2.0 7# which accompanies this distribution, and is available at 8# http://www.eclipse.org/legal/epl-v20.html 9# SPDX-License-Identifier: EPL-2.0 10 11# @file simulationbase.py 12# @author Joerg Schweizer 13# @date 14# @version $Id$ 15 16 17import numpy as np 18import agilepy.lib_base.classman as cm 19import agilepy.lib_base.arrayman as am 20import agilepy.lib_base.xmlman as xm 21from agilepy.lib_base.misc import random_choice, get_inversemap 22 23 24class SimobjMixin: 25 def prepare_sim(self, process): 26 return [] # [(steptime1,func1),(steptime2,func2),...] 27 28 def config_simresults(self, results): 29 # tripresults = res.Tripresults( 'tripresults', results, 30 # self, 31 # self.get_net().edges 32 # ) 33 # 34 # 35 #results.config(tripresults, groupnames = ['Trip results']) 36 pass 37 38 def process_results(self, results, process=None): 39 pass 40