Home | Trees | Indices | Help |
|
---|
|
object --+ | Train
The class Train
represents trains which consist of a
number of passenger cars. The cars are numbered from one upwards
(starting from the head of the train). Each train has a maximum length
(in cars) which it must not exceed. A train may contain cars of various
types.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
MAXIMUM_LENGTH = 30
|
|
|||
Inherited from |
|
Creates a new train with the given description and no passenger cars in it.
|
Adds a new car to the end of the train, if possible.
|
Returns the car indicated by the given car number.
|
Tells how many (passenger) cars there are in this train.
|
Returns the description of the train.
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Mon Sep 12 17:54:04 2011 | http://epydoc.sourceforge.net |