sumolib.net.generator.demand
index
/build/sumo-c71KiA/sumo-0.30.0+dfsg1/tools/sumolib/net/generator/demand.py

A module for building a demand.
 
@file    demand.py
@author  Daniel Krajzewicz
@date    2013-10-10
@version $Id: demand.py 23247 2017-03-07 13:46:58Z behrisch $
 
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2013 DLR (http://www.dlr.de/) and contributors
 
This file is part of SUMO.
SUMO is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.

 
Modules
       
math
os
random
subprocess
sumolib
tempfile

 
Classes
       
Demand
LinearChange
Stream
Vehicle
WaveComposition

 
class Demand
     Methods defined here:
__init__(self)
addStream(self, s)
build(self, b, e, netName='net.net.xml', routesName='input_routes.rou.xml', sampleFactor=None)

 
class LinearChange
     Methods defined here:
__init__(self, beginFlow, endFlow, beginTime, endTime)
depart(self, t)

 
class Stream
     Methods defined here:
__init__(self, sid, validFrom, validUntil, numberModel, departEdgeModel, arrivalEdgeModel, vTypeModel, via=None)
getFrom(self, what, i, number)
getVehicleDepartures(self, b, e, sampleFactor=None, seenRatio=None)
toVehicles(self, b, e, offset=0, sampleFactor=None, seenRatio=None)

 
class Vehicle
     Methods defined here:
__init__(self, id, depart, fromEdge, toEdge, vType, via=None)

 
class WaveComposition
     Methods defined here:
__init__(self, offset, curves)
depart(self, t)

 
Data
        PIVOT__PEAK = 10000
absolute_import = _Feature((2, 5, 0, 'alpha', 1), (3, 0, 0, 'alpha', 0), 16384)
print_function = _Feature((2, 6, 0, 'alpha', 2), (3, 0, 0, 'alpha', 0), 65536)