Package svs_simulation :: Package simtime :: Module timelib :: Class SimTime
[show private | hide private]
[frames | no frames]

Class SimTime


Class representing a specific time.
Method Summary
  __init__(self, days, hours, minutes, seconds)
  __add__(self, newValue)
Adds specified time value to own value.
  __cmp__(self, otherTime)
Overloads comparison operator.
  __div__(self, rhs)
Overloads '/' operator.
  __mul__(self, rhs)
Overloads '*' operator when vector is on left hand side of operator.
  __rmul__(self, lhs)
Overloads '*' operator when vector is on right hand side of operator.
  __str__(self)
Returns string representation of self.
  __sub__(self, rhs)
Overloads '-' operator.
  decode(self, data)
Applies encoded data to self.
  encode(self)
Returns encoded representation of self.
  setHours(self, newValue)
Sets hours ensuring it is within valid bounds.
  setMinutes(self, newValue)
Sets minutes ensuring it is within valid bounds.
  setSeconds(self, newValue)
Sets seconds ensuring it is within valid bounds.
  toTuple(self)
Returns values as tuple, in the form: (days, hours, minutes, seconds).
  __totalise(self)
Calculates time as total seconds.

Method Details

__add__(self, newValue)
(Addition operator)

Adds specified time value to own value.

__cmp__(self, otherTime)
(Comparison operator)

Overloads comparison operator.

__div__(self, rhs)

Overloads '/' operator.

NOTE: not implemented, just returns self at present.

__mul__(self, rhs)

Overloads '*' operator when vector is on left hand side of operator.

NOTE: not implemented, just returns self at present.

__rmul__(self, lhs)

Overloads '*' operator when vector is on right hand side of operator.

NOTE: not implemented, just returns self at present.

__str__(self)
(Informal representation operator)

Returns string representation of self.

__sub__(self, rhs)
(Subtraction operator)

Overloads '-' operator.

NOTE: not implemented, just returns self at present.

decode(self, data)

Applies encoded data to self.

encode(self)

Returns encoded representation of self.

setHours(self, newValue)

Sets hours ensuring it is within valid bounds.

setMinutes(self, newValue)

Sets minutes ensuring it is within valid bounds.

setSeconds(self, newValue)

Sets seconds ensuring it is within valid bounds.

toTuple(self)

Returns values as tuple, in the form: (days, hours, minutes, seconds).

__totalise(self)

Calculates time as total seconds.

Generated by Epydoc 2.1 on Thu Oct 20 15:30:27 2005 http://epydoc.sf.net