Пример #1
0
  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();
    }
  }
Пример #2
0
  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();
    }
  }
Пример #3
0
  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();
    }
  }
Пример #4
0
  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();
    }
  }