Pool

Inheritance:

Methods of Pool:

__init__
def __init__(self, free=None)

Undocumented function.

__repr__
def __repr__(self)

Undocumented function.

add
def add(self, item)

Add an item to the free list.

checkin
def checkin(self, item)

Put back a checked out item. Error if the item is not checked out.

checkout
def checkout(self)

Get an arbitrary item from the pool.

hasFree
def hasFree(self)

Returns true if there is at least one free item.

isFree
def isFree(self, item)

Returns true if this item is free for check out.

isUsed
def isUsed(self, item)

Returns true if this item has already been checked out.

remove
def remove(self, item)

Remove an item. Error is flagged if the item is not in the pool.

reset
def reset(self)

Resets the pool so all items are free.