コード例 #1
1
 /** Shut down communication with the autosampler. */
 public void disconnect() {
   if (m_reader != null) {
     m_reader.quit();
     m_reader.interrupt();
   }
   if (m_sender != null) {
     m_sender.quit();
     m_sender.interrupt();
   }
   if (m_statusPoller != null) {
     m_statusPoller.quit();
     m_statusPoller.interrupt();
   }
   if (m_CryoSocket != null) {
     m_CryoSocket.disconnect();
     m_CryoSocket = null;
   }
 }
コード例 #2
0
 public boolean paused() {
   if (m_statusPoller != null) return m_statusPoller.paused();
   return false;
 }
コード例 #3
0
 public void pollStatus() {
   if (statusUpdate > 0) {
     m_statusPoller = new StatusPoller(statusUpdate);
     m_statusPoller.start();
   }
 }
コード例 #4
0
 public void pause(boolean b) {
   if (m_statusPoller != null) m_statusPoller.pause(b);
 }