PyShift Work Schedule
Work Schedule for Python
|
This class represents part of an entire rotation. More...
Public Member Functions | |
def | __init__ (self, Shift startingShift, int daysOn, int daysOff, rotation) |
Construct a segment of a rotation. More... | |
int | compareTo (self, other) |
Compare two rotation segments. More... | |
Public Attributes | |
startingShift | |
daysOn | |
daysOff | |
rotation | |
sequence | |
This class represents part of an entire rotation.
The segment starts with a shift and includes a count of the number of days on followed by the number of days off.
def rotation.RotationSegment.__init__ | ( | self, | |
Shift | startingShift, | ||
int | daysOn, | ||
int | daysOff, | ||
rotation | |||
) |
int rotation.RotationSegment.compareTo | ( | self, | |
other | |||
) |
Compare two rotation segments.
other | RotationSegment |