| |
- Aircraft
-
- Glider
- PassengerAircraft(Aircraft, PassengerVehicle)
- Angle
- exceptions.Exception
-
- RangeError
- PassengerVehicle
class Angle |
|
Encapsulates an Integer 0 <= angle < 360 |
|
Methods defined here:
- __add__(self, angle)
- __add__(angle:Angle or Integer) --> Angle object, sum of self and angle
Raises:
TypeError if angle argument is not an Integer nor an Angle
RangeError if an Integer angle argument is not in [0, 360[ range
- __init__(self, value=0)
- Angle([0 <= value:Integer = 0 < 360]) constructor.
- __str__(self)
- __str__() -> String representation of an Angle.
Example: str(Angle(20)) returns "<Angle:20>"
- getValue(self)
- getValue() -> Integer in [0,360[
Get the Angle value.
- setValue(self, value=0)
- setValue([0 <= value:Integer = 0 < 360]) ->
Set the Angle value.
The value is kept in a private variable __data
Raises:
TypeError if value is not an Integer
RangeError if value not in [0, 360[ range
|
|