Package haizea :: Package core :: Package scheduler :: Module slottable :: Class KeyValueWrapper
[hide private]
[frames] | no frames]

Class KeyValueWrapper

source code


A wrapper around ResourceReservations so we can use the bisect module to manage ordered lists of reservations.

Instance Methods [hide private]
 
__init__(self, key, value)
Constructor
source code
 
__cmp__(self, other) source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, key, value)
(Constructor)

source code 

Constructor

Parameters:
  • key (DateTime) - Time under which the reservation should be indexed
  • value (ResourceReservation) - Resource reservation
Overrides: object.__init__