<s> class Server ( object ) : <EOL> @ staticmethod <EOL> def name ( elem_s ) : <EOL> return elem_s . get ( '<STR_LIT:name>' , None ) <EOL> @ staticmethod <EOL> def address ( elem_s ) : <EOL> return elem_s . get ( '<STR_LIT>' , None ) <EOL> @ staticmethod <EOL> def components ( elem_s ) : <EOL> return elem_s . get ( '<STR_LIT>' , [ ] ) <EOL> @ staticmethod <EOL> def services ( elem_s ) : <EOL> return elem_s . get ( '<STR_LIT>' , [ ] ) <EOL> @ staticmethod <EOL> def num_components ( elem_s ) : <EOL> return len ( elem_s . get ( '<STR_LIT>' , [ ] ) ) <EOL> @ staticmethod <EOL> def num_services ( elem_s ) : <EOL> return len ( elem_s . get ( '<STR_LIT>' , [ ] ) ) <EOL> @ staticmethod <EOL> def interfaces ( elem_s ) : <EOL> return elem_s . get ( '<STR_LIT>' , dict ( ) ) <EOL> @ staticmethod <EOL> def routes ( elem_s ) : <EOL> return elem_s . get ( '<STR_LIT>' , dict ( ) ) <EOL> @ staticmethod <EOL> def num_routes ( elem_s ) : <EOL> return len ( elem_s . get ( '<STR_LIT>' , [ ] ) ) </s>
