Package sabx10 :: Package oxm :: Module segment :: Class Segment
[hide private]
[frames] | no frames]

Class Segment

source code

object --+    
         |    
 geom.Line --+
             |
            Segment

A Segment object sub-classes Line and adds a host of extra data.

Instance Methods [hide private]
 
__init__(self, id, road, fromto, comments, lanes, shoulder, traffic, speed, waypoints)
Save the passed-in data.
source code

Inherited from geom.Line: calc_length, find_lowest_highest

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Instance Variables [hide private]
string comments
Extra information about this Segment
string fromto
SEGMENT_X to SEGMENT_Y
string id
id of the Segment
string lanes
number of lanes
string road
name of road for this Segment
string shoulder
width of shoulder
string speed
speed limit
string traffic
amount of traffic

Inherited from geom.Line: waypoints

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, road, fromto, comments, lanes, shoulder, traffic, speed, waypoints)
(Constructor)

source code 

Save the passed-in data.

Parameters:
  • id (string) - id of the Segment
  • road (string) - name of road for this Segment
  • fromto (string) - SEGMENT_X to SEGMENT_Y
  • comments (string) - Extra information about this Segment
  • lanes (string) - number of lanes
  • shoulder (string) - width of shoulder
  • traffic (string) - amount of traffic
  • speed (string) - speed limit
Overrides: object.__init__