'Make this an accepting state with the given action. If
there is already an action, choose the action with highest
priority.'

def set_action(self, action, priority):

    if (priority > self.action_priority):
        self.action = action
        self.action_priority = priority
