def next(self, input): if input == Input.stop_command_received: return Z00TrolleyStopped(self.communicator, self.uartObserver) elif input == Input.contact_switch_triggered: return Z13EndPositionReached(self.communicator, self.uartObserver) return None
def next(self, input): if input == Input.stop_command_received: return Z00TrolleyStopped(self.communicator, self.uartObserver) elif input == Input.clutch_destination_reached: return Z10ClutchDescendedWithCube(self.communicator, self.uartObserver) return None
def next(self, input): if input == Input.stop_command_received: return Z00TrolleyStopped(self.communicator, self.uartObserver) elif input == Input.cube_grabbed: return Z06CubeGrabbed(self.communicator, self.uartObserver) return None
def next(self, input): if input == Input.stop_command_received: return Z00TrolleyStopped(self.communicator, self.uartObserver) elif input == Input.target_recognized: return Z08TargetRecognized(self.communicator, self.uartObserver) return None
def next(self, input): if input == Input.stop_command_received: return Z00TrolleyStopped(self.communicator, self.uartObserver) elif input == Input.start_command_received: return Z03TrolleyStarted(self.communicator, self.uartObserver) return None
def next(self, input): if input == Input.stop_command_received: return Z00TrolleyStopped(self.communicator, self.uartObserver) elif input == Input.destination_reached: return Z04CubePositionReached(self.communicator, self.uartObserver) return None