charly.server.devices
Class ChGpibDeviceImpl.ChSrqService

java.lang.Object
  extended byjava.lang.Thread
      extended bycharly.server.devices.ChGpibDeviceImpl.ChSrqService
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ChGpibDeviceImpl

class ChGpibDeviceImpl.ChSrqService
extends java.lang.Thread


Field Summary
(package private)  java.util.Map dvcs
          maps elems of Integer representing the dvcAddr to elems of ChGpibDeviceImpl.ChClientGpibInfo
(package private)  int timeDist
          timeDist is the distance in ms between two checks of the SRQ-line.
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
(package private) ChGpibDeviceImpl.ChSrqService(java.lang.String name, int timeDist)
          timeDist is the distance in ms between two checks of the SRQ-line.
 
Method Summary
(package private)  void checkSrq(int dvcAddr, ChGpibDeviceImpl.ChClientGpibInfo info)
           
 void run()
          For the devices to be checked, this method makes a serial poll to check whether an SRQ occured.
(package private)  void uncheckSrq(int dvcAddr, ChGpibDeviceImpl.ChClientGpibInfo info)
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

timeDist

int timeDist
timeDist is the distance in ms between two checks of the SRQ-line.


dvcs

java.util.Map dvcs
maps elems of Integer representing the dvcAddr to elems of ChGpibDeviceImpl.ChClientGpibInfo

Constructor Detail

ChGpibDeviceImpl.ChSrqService

ChGpibDeviceImpl.ChSrqService(java.lang.String name,
                              int timeDist)
timeDist is the distance in ms between two checks of the SRQ-line.

Method Detail

checkSrq

void checkSrq(int dvcAddr,
              ChGpibDeviceImpl.ChClientGpibInfo info)

uncheckSrq

void uncheckSrq(int dvcAddr,
                ChGpibDeviceImpl.ChClientGpibInfo info)

run

public void run()
For the devices to be checked, this method makes a serial poll to check whether an SRQ occured. It also removes devices that are asked for a SRQ-check by a stopped or aborted task from the list of devices to be checked.