org.lsst.ccs.subsystems.fcs.simulation
Class SimuLatch

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

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

A simulated latch for the carousel. This latch is unlock when a filter is being moved from standby position to on line position by the auto-changer or vice versa.

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
SimuLatch()
           
 
Method Summary
 java.lang.String getPublishDataOutputName()
           
 boolean isInError()
           
 boolean isLocked()
           
 boolean isUnlocked()
           
 java.lang.String lock()
           
 void setLocked(boolean locked)
           
 java.lang.String toString()
           
 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, wait, wait, wait
 

Constructor Detail

SimuLatch

public SimuLatch()
Method Detail

lock

public java.lang.String lock()
Specified by:
lock in interface Latch

unlock

public java.lang.String unlock()
Specified by:
unlock in interface Latch

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isLocked

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

setLocked

public void setLocked(boolean locked)

getPublishDataOutputName

public java.lang.String getPublishDataOutputName()

isUnlocked

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

isInError

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


Copyright © 2012 LSST. All Rights Reserved.