Package sabx10 :: Package oxm :: Module parking
[hide private]
[frames] | no frames]

Module parking

source code

Parking place handling.

Classes [hide private]
  Parking
A Parking object sub-classes Point and adds a description to describe a parking place.
Functions [hide private]
Parking
_parse_parking_xml(xml_parking)
Take the Element for a parking place and turn it into a Parking object.
source code
(list,dict) of Parking
parse_parking(xml_tree)
Get all the parking place elements in the given Element tree and create a list of them with Parking objects.
source code
Parking
process_ride_parking(xml_ride, xml_parking_places)
Process the parking place reference for the give ride and generate a full Parking object for it.
source code
Variables [hide private]
  __package__ = 'sabx10.oxm'
Function Details [hide private]

_parse_parking_xml(xml_parking)

source code 

Take the Element for a parking place and turn it into a Parking object.

Parameters:
  • xml_parking (Element) - Element for a parking place
Returns: Parking
Parking object

parse_parking(xml_tree)

source code 

Get all the parking place elements in the given Element tree and create a list of them with Parking objects.

Parameters:
  • xml_tree (Element or ElementTree) - root of Element tree that has parking places in it
Returns: (list,dict) of Parking
parking places in a list and a dictionary

process_ride_parking(xml_ride, xml_parking_places)

source code 

Process the parking place reference for the give ride and generate a full Parking object for it.

Parameters:
  • xml_ride (Element) - root of Element tree for this ride
  • xml_parking_places (list of Element trees) - list of Element trees for parking places
Returns: Parking
Parking object for the ride