org.lsst.ccs.subsystems.fcs
Class FilterLatchModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.FilterLatchModule
All Implemented Interfaces:
java.io.Serializable, java.util.Observer, Latch

public class FilterLatchModule
extends org.lsst.ccs.framework.Module
implements Latch

This is a model for a latch. A latch is what holds a filter in the trucks of the autochanger. There is 2 latches : one on each side of the filter. The state of the latches are monitoring by digital sensors : one sensor to know if a filter is in the latch or not and 2 status sensors to know if the latch is locked or unlocked. If the 2 status sensors are inconsistent, the latch is in error.

Author:
virieux
See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.lsst.ccs.framework.Module
org.lsst.ccs.framework.Module.ValueUpdate
 
Field Summary
 
Fields inherited from class org.lsst.ccs.framework.Module
log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
FilterLatchModule()
           
 
Method Summary
 boolean isInError()
           
 boolean isLocked()
           
 boolean isUnlocked()
           
 java.lang.String lock()
           
 java.lang.String unlock()
           
 
Methods inherited from class org.lsst.ccs.framework.Module
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, initModule, listens, processUpdate, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, start, tick, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilterLatchModule

public FilterLatchModule()
Method Detail

isInError

public boolean isInError()
Specified by:
isInError in interface Latch

unlock

public java.lang.String unlock()
                        throws org.lsst.ccs.bus.BadCommandException,
                               org.lsst.ccs.bus.ErrorInCommandExecutionException
Specified by:
unlock in interface Latch
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException

lock

public java.lang.String lock()
                      throws org.lsst.ccs.bus.BadCommandException,
                             org.lsst.ccs.bus.ErrorInCommandExecutionException
Specified by:
lock in interface Latch
Throws:
org.lsst.ccs.bus.BadCommandException
org.lsst.ccs.bus.ErrorInCommandExecutionException

isLocked

public boolean isLocked()
Specified by:
isLocked in interface Latch

isUnlocked

public boolean isUnlocked()
Specified by:
isUnlocked in interface Latch


Copyright © 2012 LSST. All Rights Reserved.