Package horizons :: Package world :: Module providerhandler :: Class ProviderHandler
[hide private]
[frames] | no frames]

Class ProviderHandler

source code

object --+    
         |    
      list --+
             |
            ProviderHandler

Class to keep track of providers of an area, especially an island. It acts as a data structure for quick retrieval of special properties, that only resource providers have.

Precondition: Provider never change their provided resources.

Instance Methods [hide private]
new empty list
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
append(self, provider)
append object to end
source code
 
remove(self, provider)
remove first occurrence of value.
source code

Inherited from list: __add__, __contains__, __delitem__, __delslice__, __eq__, __ge__, __getattribute__, __getitem__, __getslice__, __gt__, __iadd__, __imul__, __iter__, __le__, __len__, __lt__, __mul__, __ne__, __new__, __repr__, __reversed__, __rmul__, __setitem__, __setslice__, __sizeof__, count, extend, index, insert, pop, reverse, sort

Inherited from object: __delattr__, __format__, __reduce__, __reduce_ex__, __setattr__, __str__, __subclasshook__

Class Variables [hide private]

Inherited from list: __hash__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Returns: new empty list
Overrides: object.__init__
(inherited documentation)

append(self, provider)

source code 

append object to end

Overrides: list.append
(inherited documentation)

remove(self, provider)

source code 

remove first occurrence of value. Raises ValueError if the value is not present.

Overrides: list.remove
(inherited documentation)