@Override public String[] getPositions() throws DeviceException { try { return controller.cagetLabels(chRange); } catch (Exception e) { throw new DeviceException(getName() + " exception in getPositions", e); } }
/** * 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; }
/** * 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; }