sumolib.net.edge
index
/build/sumo-0pkf0q/sumo-0.26.0+dfsg1/tools/sumolib/net/edge.py

@file    edge.py
@author  Daniel Krajzewicz
@author  Laura Bieker
@author  Karol Stosiek
@author  Michael Behrisch
@author  Jakob Erdmann
@date    2011-11-28
@version $Id: edge.py 20433 2016-04-13 08:00:14Z behrisch $
 
This file contains a Python-representation of a single edge.
 
SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
Copyright (C) 2011-2016 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.

 
Classes
       
Edge

 
class Edge
    Edges from a sumo network
 
  Methods defined here:
__init__(self, id, fromN, toN, prio, function, name)
__repr__(self)
addLane(self, lane)
addOutgoing(self, conn)
allows(self, vClass)
true if this edge has a lane which allows the given vehicle class
getBoundingBox(self, includeJunctions=True)
getFromNode(self)
getFunction(self)
getID(self)
getIncoming(self)
getLane(self, idx)
getLaneNumber(self)
getLanes(self)
getLength(self)
getName(self)
getOutgoing(self)
getPriority(self)
getShape(self, includeJunctions=False)
getSpeed(self)
getTLS(self)
getToNode(self)
isSpecial(self)
is_fringe(self, connections=None)
true if this edge has no incoming or no outgoing connections (except turnarounds)
If connections is given, only those connections are considered
rebuildShape(self)
setShape(self, shape)
setTLS(self, tls)