Package bosco :: Module formatter :: Class AbstractSOLVRankingFormatter
[hide private]
[frames] | no frames]

Class AbstractSOLVRankingFormatter

source code

          object --+        
                   |        
   AbstractFormatter --+    
                       |    
AbstractRankingFormatter --+
                           |
                          AbstractSOLVRankingFormatter

Formats the Ranking for exporting to the SOLV result site.

Instance Methods [hide private]
 
__init__(self, ranking, reftime, encoding='utf-8', control_replacements=None, control_exclude=None, lineterminator='\n')
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_print_score(self, r) source code
 
_encode(self, s) source code
 
_control_code(self, control) source code
 
_writer(self) source code
 
_output(self) source code
 
__str__(self)
Returns: Formatted Ranking
source code

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

Class Variables [hide private]
  validation_codes = {Validator.OK: 'OK', Validator.NOT_COMPLETE...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, ranking, reftime, encoding='utf-8', control_replacements=None, control_exclude=None, lineterminator='\n')
(Constructor)

source code 

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

Parameters:
  • ranking - the ranking to format
Overrides: object.__init__

__str__(self)
(Informal representation operator)

source code 

str(x)

Returns:
Formatted Ranking
Overrides: object.__str__
(inherited documentation)

Class Variable Details [hide private]

validation_codes

Value:
{Validator.OK: 'OK', Validator.NOT_COMPLETED: '', Validator.MISSING_CO\
NTROLS: 'fehl', Validator.DID_NOT_FINISH: 'aufg', Validator.DISQUALIFI\
ED: 'disq', Validator.DID_NOT_START: 'n. gest'}