public String getSCamUrlImage(final String telescope, final String sCamera) throws Exception { _log.info("\"" + telescope + "\" \"" + sCamera + "\" getSCamUrlImage"); try { return scam.getImageURL(telescope, sCamera); } catch (SCamTeleoperationException_Exception e) { _log.error(e.getMessage()); throw new Exception(); } }
public void setSCamContrast(String telescope, String sCamera, String value) throws Exception { _log.info("\"" + telescope + "\" \"" + sCamera + "\" \"" + value + "\" setSCamContrast"); try { scam.setContrast(telescope, sCamera, Long.parseLong(value)); } catch (SCamTeleoperationException_Exception e) { _log.error(e.getMessage()); errorInstance(); throw new Exception(); } catch (Exception e) { _log.error(e.getMessage()); errorInstance(); throw new Exception(); } }
public String getSCamContrast(String telescope, String sCamera) throws Exception { _log.info("\"" + telescope + "\" \"" + sCamera + "\" getSCamContrast"); try { return doubleFormat.format(scam.getContrast(telescope, sCamera)).replaceAll(",", ""); } catch (SCamTeleoperationException_Exception e) { _log.error(e.getMessage()); errorInstance(); throw new Exception(); } catch (Exception e) { _log.error(e.getMessage()); errorInstance(); throw new Exception(); } }
public void setSCamExposureTime(String telescope, String sCamera, String value) throws Exception { _log.info("\"" + telescope + "\" \"" + sCamera + "\" \"" + value + "\" setSCamExposureTime"); try { scam.setExposureTime(telescope, sCamera, Double.parseDouble(value)); } catch (SCamTeleoperationException_Exception e) { _log.error(e.getMessage()); errorInstance(); throw new Exception(); } catch (Exception e) { _log.error(e.getMessage()); errorInstance(); throw new Exception(); } }