コード例 #1
0
 @Override
 public String[] getPositions() throws DeviceException {
   try {
     return controller.cagetLabels(chRange);
   } catch (Exception e) {
     throw new DeviceException(getName() + " exception in getPositions", e);
   }
 }
コード例 #2
0
ファイル: Spin.java プロジェクト: jjkraken/gda-epics
 /**
  * gets the available positions from this device.
  *
  * @return available positions
  * @throws DeviceException
  */
 public String[] getPositions() throws DeviceException {
   String[] positionLabels = new String[positions.size()];
   try {
     positionLabels = controller.cagetLabels(enableChannel);
   } catch (Exception e) {
     if (e instanceof RuntimeException) throw (RuntimeException) e;
     throw new DeviceException(getName() + " exception in getPositions", e);
   }
   return positionLabels;
 }
コード例 #3
0
 /**
  * gets the available positions from this device.
  *
  * @return available positions
  * @throws DeviceException
  */
 public String[] getPassEnergies() throws DeviceException {
   String[] positionLabels = new String[0];
   try {
     positionLabels = EPICS_CONTROLLER.cagetLabels(getChannel(PASSENERGY));
   } catch (Exception e) {
     if (e instanceof RuntimeException) {
       throw (RuntimeException) e;
     }
     throw new DeviceException(" exception in getPositions", e);
   }
   return positionLabels;
 }