class SimpleMessageTranslator:

    def __init__(self):
        self.base_message_interface = BaseMessageInterface()

    def issue_directive(self, directive, play_sound=False):
        tokens = directive.split(':')

        if tokens[0] == 'all_off':
            self.base_message_interface.issue_all_off()

        elif tokens[0] == 'start_build':
            self.base_message_interface.issue_start_build()

        elif tokens[0] == 'update':
            self.base_message_interface.issue_update(tokens[1:])

        elif tokens[0] == 'update_segment':
            self.base_message_interface.issue_update_segment(tokens[1:])
 def __init__(self):
     self.base_message_interface = BaseMessageInterface()