Package sabx10 :: Package oxm :: Module ride :: Class Ride
[hide private]
[frames] | no frames]

Class Ride

source code

object --+
         |
        Ride

A Ride object describes a ride and keeps track of all relevant ride information. This information can vary depending on what created the ride. If it was created by parsing XML, then parking, turn list, and segment list are the id's of the relevant items. If this was created while processing a ride, then parking, turn list, and segment list are Parking, Turn, and Segment objects instead. The contents can therefore be infered from context.

Instance Methods [hide private]
 
__init__(self, id, description, parking, turns, segs)
Save the passed-in information.
source code

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

Instance Variables [hide private]
string description
description of ride
string id
id of ride
string or Parking parking
id of parking place for ride or Parking object
list of string or Segment segments
list of segment ids or Segment objects
list of string or Turn turns
list of turn ids or Turn objects
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, id, description, parking, turns, segs)
(Constructor)

source code 

Save the passed-in information.

Parameters:
  • id (string) - id of ride
  • description (string) - description of ride
  • parking (string or Parking) - id of parking place for ride or Parking object
  • turns (list of string or Turn) - list of turn ids or Turn objects
  • segs (list of string or Segment) - list of segment ids or Segment objects
Overrides: object.__init__