stella.ccd
Class WifsipMaster.CcdWatch

java.lang.Object
  extended by java.util.TimerTask
      extended by stella.ccd.WifsipMaster.CcdWatch
All Implemented Interfaces:
Runnable
Enclosing class:
WifsipMaster

private class WifsipMaster.CcdWatch
extends TimerTask

This class reads from the CCD the current values of temperature and pressure and compares them to set values. If out of bounds, an error is sent back. If exposure is underway, values are not queried.


Field Summary
private  CcdDriver ccd
           
private  Date error
           
private  List<String> maxkeys
           
private  List<Double> maxvals
           
private  List<String> minkeys
           
private  List<Double> minvals
           
private  boolean ready
           
 
Constructor Summary
private WifsipMaster.CcdWatch(CcdDriver cam, List<String> mink, List<Double> minv, List<String> maxk, List<Double> maxv)
           
 
Method Summary
private  List<Double> readKeys(Map<String,Object> info, List<String> k)
          Tries to read these keys from the ccd-info and parses the result to doubles.
 void run()
           
 
Methods inherited from class java.util.TimerTask
cancel, scheduledExecutionTime
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ccd

private CcdDriver ccd

minkeys

private List<String> minkeys

maxkeys

private List<String> maxkeys

minvals

private List<Double> minvals

maxvals

private List<Double> maxvals

ready

private boolean ready

error

private Date error
Constructor Detail

WifsipMaster.CcdWatch

private WifsipMaster.CcdWatch(CcdDriver cam,
                              List<String> mink,
                              List<Double> minv,
                              List<String> maxk,
                              List<Double> maxv)
Method Detail

readKeys

private List<Double> readKeys(Map<String,Object> info,
                              List<String> k)
Tries to read these keys from the ccd-info and parses the result to doubles. If a single key is missing or the value cannot be parsed, we return null to inidcate failure. If the keys are null, we also return null.


run

public void run()
Specified by:
run in interface Runnable
Specified by:
run in class TimerTask