sumolib.scenario.pop2
index
/home/delphi/gcc/sumo/tools/sumolib/scenario/pop2.py

# Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
# Copyright (C) 2012-2018 German Aerospace Center (DLR) and others.
# This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v2.0
# which accompanies this distribution, and is available at
http://www.eclipse.org/legal/epl-v20.html
# SPDX-License-Identifier: EPL-2.0

 
Modules
       
sumolib.net.generator.demand
math
random
sumolib

 
Classes
       
ScenarioSet
ScenarioSet_BasicOutflow
ScenarioSet_BasicRiLSACorridor3
ScenarioSet_BasicRiLSANet
ScenarioSet_BasicRiLSANet2x2
ScenarioSet_CorrFlowsDistancesA
ScenarioSet_DemandStep
ScenarioSet_IterateFlowsA
ScenarioSet_IterateFlowsNA
ScenarioSet_NetFlowsDistancesA
ScenarioSet_OneSinDemand
ScenarioSet_RealWorld
ScenarioSet_RiLSA1LoadCurves
ScenarioSet_RiLSA1LoadCurvesBothTLS
ScenarioSet_RiLSA1LoadCurvesBothTLS24
ScenarioSet_RiLSA1LoadCurvesOutTLS
ScenarioSet_RiLSA1LoadCurvesOutTLS24
ScenarioSet_RiLSA1LoadCurvesSampled
ScenarioSet_RiLSA1Outflow
ScenarioSet_RiLSA1PTIteration
ScenarioSet_RiLSA1PedFlow
ScenarioSet_SinSinDemand
ScenarioSet_TurnIteration
ScenarioSet_TurnIterationINIT

 
class ScenarioSet
     Methods defined here:
__init__(self, name, params)
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getAverageDuration(self)
getFloat(self, name)
getInt(self, name)
getNumRuns(self)
getRunsMatrix(self)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_BasicOutflow(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
orientationX(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getFloat(self, name)
getInt(self, name)
iterate(self)
ticksSize(self)

 
class ScenarioSet_BasicRiLSACorridor3(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_BasicRiLSANet(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_BasicRiLSANet2x2(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_CorrFlowsDistancesA(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
orientationX(self)
ticksSize(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
getFloat(self, name)
getInt(self, name)
iterate(self)

 
class ScenarioSet_DemandStep(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
orientationX(self)
ticksSize(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
getFloat(self, name)
getInt(self, name)
iterate(self)

 
class ScenarioSet_IterateFlowsA(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_IterateFlowsNA(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_NetFlowsDistancesA(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
figsize(self)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
orientationX(self)
ticksSize(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
getFloat(self, name)
getInt(self, name)
iterate(self)

 
class ScenarioSet_OneSinDemand(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
genDemand(self, scenario, simSteps, amplitude, frequency)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Data and other attributes defined here:
MAIN_FLOW = 1000.0

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RealWorld(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
figsize(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1LoadCurves(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
runSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getFloat(self, name)
getInt(self, name)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1LoadCurvesBothTLS(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1LoadCurvesBothTLS24(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1LoadCurvesOutTLS(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1LoadCurvesOutTLS24(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adapt2TLS2(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1LoadCurvesSampled(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
Yields returning a built scenario and its description as key/value pairs
runSingle(self, RWScurves, iWE, iNS, iEW, iSN, uID=None)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getFloat(self, name)
getInt(self, name)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1Outflow(ScenarioSet_RiLSA1LoadCurvesSampled)
    
Method resolution order:
ScenarioSet_RiLSA1Outflow
ScenarioSet_RiLSA1LoadCurvesSampled
ScenarioSet

Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
runSingle(self, RWScurves, g1, g2, uID=None)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getFloat(self, name)
getInt(self, name)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1PTIteration(ScenarioSet_RiLSA1LoadCurvesSampled)
    
Method resolution order:
ScenarioSet_RiLSA1PTIteration
ScenarioSet_RiLSA1LoadCurvesSampled
ScenarioSet

Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
adjust(self, fig)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
halfX(self)
iterateScenarios(self)
orientationX(self)
runSingle(self, RWScurves, p1, p2, uID=None)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
figsize(self)
getFloat(self, name)
getInt(self, name)
iterate(self)
ticksSize(self)

 
class ScenarioSet_RiLSA1PedFlow(ScenarioSet_RiLSA1LoadCurvesSampled)
    
Method resolution order:
ScenarioSet_RiLSA1PedFlow
ScenarioSet_RiLSA1LoadCurvesSampled
ScenarioSet

Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAdditionalDivider(self)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)
runSingle(self, RWScurves, f1, f2, uID=None)

Methods inherited from ScenarioSet_RiLSA1LoadCurvesSampled:
halfX(self)

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getFloat(self, name)
getInt(self, name)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_SinSinDemand(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
genDemand(self, scenario, simSteps, offset, frequency)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Data and other attributes defined here:
AMPLITUDE = 300.0
MEAN = 700.0

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_TurnIteration(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)
Yields returning a built scenario and its description as key/value pairs

Data and other attributes defined here:
MAIN_FLOW = 800

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
class ScenarioSet_TurnIterationINIT(ScenarioSet)
     Methods defined here:
__init__(self, params)
adapt2TLS(self, sID, scenario, options, tls_algorithm)
getAverageDuration(self)
getNumRuns(self)
getRunsMatrix(self)
getXLabel(self)
getYLabel(self)
iterateScenarios(self)

Data and other attributes defined here:
MAIN_FLOW = 800

Methods inherited from ScenarioSet:
adaptOutputs(self, sID, scenario, options, tls_algorithm)
addTLSParameterFromFile(self, tlsProg, paramFile)
adjust(self, fig)
figsize(self)
getAdditionalDivider(self)
getFloat(self, name)
getInt(self, name)
halfX(self)
iterate(self)
orientationX(self)
ticksSize(self)

 
Functions
       
getAllScenarioSets()
getRWScurves()
getScenarioSet(name, params)
merge(defaultParams, setParams)

 
Data
        RWS = [[1, 0.5104, 0.5828, 0.5772, 0.6332, 0.748, 2.8719, 1.7177], [2, 0.3432, 0.3078, 0.3675, 0.336, 0.4566, 1.9838, 1.0125], [3, 0.2107, 0.2523, 0.2086, 0.2895, 0.2517, 1.3241, 0.8154], [4, 0.3703, 0.1997, 0.3053, 0.2064, 0.3579, 0.9965, 0.4875], [5, 0.9379, 0.4054, 0.5936, 0.457, 0.6685, 0.6633, 0.6375], [6, 2.5954, 1.3955, 1.9009, 1.5343, 2.2885, 0.9947, 1.2423], [7, 6.6675, 2.9516, 4.9363, 3.5946, 5.1519, 1.0119, 1.5891], [8, 8.9356, 5.3546, 7.2095, 4.5774, 7.6271, 1.4289, 2.7169], [9, 8.1931, 6.0357, 6.9139, 5.2376, 6.8091, 2.4236, 3.8612], [10, 6.3549, 4.9486, 6.0444, 4.9067, 5.7137, 3.9569, 5.7839], [11, 5.496, 4.4953, 5.3436, 5.5661, 5.2829, 5.4762, 6.406], [12, 5.0961, 4.778, 5.0059, 5.955, 5.2941, 5.9344, 7.0014], [13, 5.3599, 5.2839, 5.4039, 6.853, 5.9041, 6.4891, 7.3738], [14, 5.6462, 5.9352, 5.7807, 7.2908, 6.4795, 7.2301, 7.6242], [15, 5.7565, 6.6796, 6.1341, 8.336, 6.8031, 7.8309, 7.7892], [16, 6.0419, 7.4557, 7.0506, 9.0655, 7.0955, 7.4463, 7.3836], [17, 6.9183, 9.3616, 7.8898, 8.6483, 6.7089, 7.7562, 6.9353], [18, 6.6566, 10.19, 7.5263, 7.7115, 6.4494, 8.2159, 6.7839], [19, 5.8434, 8.5196, 6.9226, 6.4153, 5.942, 7.5234, 6.331], [20, 4.4669, 5.8307, 4.9389, 4.2742, 4.4143, 6.1206, 4.9072], ...]
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)