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

A module for building road networks.
 
@file    network.py
@author  Daniel Krajzewicz
@date    2013-10-10
@version $Id: network.py 23979 2017-04-20 05:54:02Z namdre $
 
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
       
os
shutil
subprocess
sumolib
tempfile

 
Classes
       
Connection
E1
Edge
Lane
Net
Node
Split

 
class Connection
     Methods defined here:
__init__(self, fromEdge, fromLane, toEdge, toLane)

 
class E1
     Methods defined here:
__init__(self, id, laneID, pos, freq, outputFile)

 
class Edge
     Methods defined here:
__init__(self, eid=None, fromNode=None, toNode=None, numLanes=None, maxSpeed=None, lanes=None, splits=None)
addSplit(self, distance, lanesToRight=None, lanesToLeft=None)
getConnections(self, net)
getDirection(self)

 
class Lane
     Methods defined here:
__init__(self, dirs=None, allowed=None, disallowed=None)

 
class Net
     Methods defined here:
__init__(self, defaultNode, defaultEdge)
addE1Detectors(self, id, laneID, pos, freq, outputFile)
addEdge(self, e)
addNode(self, n)
build(self, netName='net.net.xml')
buildDetectors(self, filename)
buildEdge(self, n1, n2)
connectNodes(self, node1, node2, bidi, centralReservation)
dir2connection(self, direction, edge, lane, seen)
getDefaultEdge(self, n1, n2)
getDirectionFromNode(self, n, dir)
getEdge(self, id)
getMatchingOutgoing(self, edge, direction)
getNode(self, id)

 
class Node
     Methods defined here:
__init__(self, nid, x, y, nodeType)
addCrossing(self, fromEdge, toEdge)
getNetworkCoordinates(self)

 
class Split
     Methods defined here:
__init__(self, distance, lanes)

 
Data
        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)