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