Package bosco :: Module ranking :: Class AbstractScoreing
[hide private]
[frames] | no frames]

Class AbstractScoreing

source code

   object --+    
            |    
CachingObject --+
                |
               AbstractScoreing

Defines a strategy for scoring objects (runs, runners, teams). The scoreing strategy is tightly coupled to the objects it scores.

Computed scores can (and should!) be stored in a cache.

Instance Methods [hide private]
 
score(self, object)
Returns the score of the given objects.
source code

Inherited from CachingObject: __init__

Inherited from CachingObject (private): _from_cache, _to_cache

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

Class Variables [hide private]
  information = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

score(self, object)

source code 

Returns the score of the given objects. Throws UnscoreableException if the object can't be scored with this strategy. The returned score must implement __cmp__.