Package Camelot :: Package camelot :: Package container :: Class IntervalsContainer |
[frames] | no frames]

# Class IntervalsContainer

source code

Containter to hold interval data

eg : representing the time frame of 8pm till 6am that someone was at work using an hourly precision :

intervals = IntervalsContainer(0, 24, [Interval(8, 18, 'work')])

Instance Methods
__init__(self, min, max, intervals) @param min: minimum value that the begin value of an interval is allowed to have @param max: maximum ... @param intervals: list of Interval classes | source code
__unicode__(self) | source code
Inherited from `object`: `__delattr__`, `__format__`, `__getattribute__`, `__hash__`, `__new__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__sizeof__`, `__str__`, `__subclasshook__`

Properties
Inherited from `object`: `__class__`

Method Details

### __init__(self, min, max, intervals) (Constructor) | source code
@param min: minimum value that the begin value of an interval is allowed to have @param max: maximum ... @param intervals: list of Interval classes Overrides: object.__init__