def accept_request(self): self.ans_chan.setValue(cmd_text('request accepted', {'name': self.name}))
def confirm_reject(self): self.ans_chan.setValue(cmd_text('reject confirmed', {'name': self.name}))
def send_msg(self, msg_text): # continue if paused before self.req_chan.setValue(cmd_text('msg', {'name': self.name, 'msg_text': msg_text}))
def deny_beam(self, reason): self.ans_chan.setValue(cmd_text('beam denied', {'name': self.name, 'reason': reason}))
def continue_beam(self): # continue if paused before self.req_chan.setValue(cmd_text('continue beam', {'name': self.name}))
def pause_beam(self): # temporary pause beam self.req_chan.setValue(cmd_text('pause beam', {'name': self.name}))
def reject_beam(self): # say that no beam needed self.req_chan.setValue(cmd_text('reject beam', {'name': self.name}))
def request_beam(self, polarity, charge): # ack for beam self.req_chan.setValue(cmd_text('request beam', {'name': self.name, 'polarity': polarity, 'charge': charge}))
def confirm_pause(self): self.ans_chan.setValue(cmd_text('pause confirmed', {'name': self.name}))