public class AutochangerTwoLatches extends Object implements AlertRaiser, org.lsst.ccs.framework.SignalHandler, org.lsst.ccs.framework.HasLifecycle
| Modifier and Type | Field and Description |
|---|---|
protected org.lsst.ccs.services.DataProviderDictionaryService |
dataProviderDictionaryService |
protected String |
name |
protected String |
path |
alertSeparator, FCSLOG| Constructor and Description |
|---|
AutochangerTwoLatches(AutochangerLatch latchXminus,
AutochangerLatch latchXplus)
Build an Object AutochangerTwoLatches from 2 AutochangerLatch.
|
| Modifier and Type | Method and Description |
|---|---|
void |
build() |
void |
close()
Close latches
|
StatusDataPublishedByAutochangerTwoLatches |
createStatusDataPublishedByTwoLatches()
Creates an object to be published on the STATUS bus by AutochangerTwoLatches.
|
org.lsst.ccs.services.alert.AlertService |
getAlertService()
return alertService
|
FcsEnumerations.FilterPresenceStatus |
getFilterPresenceStatus()
return filterPresenceStatus
|
FcsEnumerations.LockStatus |
getLockStatus() |
org.lsst.ccs.Subsystem |
getSubsystem() |
void |
init() |
void |
initializeHardware()
initialize AC latches hardware after initialization.
|
boolean |
isClosed()
Return if both latches are CLOSED.
|
boolean |
isEmpty()
Returns true if there is no filter is latches.
|
boolean |
isFilterEngagedInError() |
boolean |
isHoldingFilter()
Return true if autochanger is holding a filter.
|
boolean |
isInError()
Returns true if one of the latches is in ERROR state.
|
boolean |
isInitialized()
Returns true if the 2 latches controllers are initialized.
|
boolean |
isOpened()
Return if both latches are OPENED.
|
void |
open()
Open the 2 latches.
|
void |
publishData() |
void |
updateState()
Update lockStatus from latchXminus state and latchXplus state.
|
void |
updateStateAndCheckSensors()
Checks sensors.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitclearAlarm, getAlertSeparator, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseAlarmOnlyIfNew, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyEveryTenMinutes, raiseAlertOnlyIfNew, raiseWarning, raiseWarning, raiseWarning, raiseWarning, raiseWarningOnlyEveryTenMinutes, raiseWarningOnlyIfNew@LookupName protected String name
@LookupPath protected String path
@LookupField(strategy=TREE) protected org.lsst.ccs.services.DataProviderDictionaryService dataProviderDictionaryService
public AutochangerTwoLatches(AutochangerLatch latchXminus, AutochangerLatch latchXplus)
latchXminus - latchXplus - public org.lsst.ccs.services.alert.AlertService getAlertService()
AlertRaisergetAlertService in interface AlertRaiserpublic org.lsst.ccs.Subsystem getSubsystem()
getSubsystem in interface AlertRaiserpublic void build()
build in interface org.lsst.ccs.framework.HasLifecyclepublic void init()
init in interface org.lsst.ccs.framework.HasLifecycle@Command(type=QUERY,
level=1,
description="Returns true if the 2 latches are initialized.")
public boolean isInitialized()
@Command(type=QUERY,
level=0,
description="return filterPresenceStatus")
public FcsEnumerations.FilterPresenceStatus getFilterPresenceStatus()
public FcsEnumerations.LockStatus getLockStatus()
@Command(type=QUERY,
level=1,
description="Returns true if both latches are CLOSED.")
public boolean isClosed()
@Command(type=QUERY,
level=1,
description="Returns true if both latches are OPENED.")
public boolean isOpened()
@Command(type=QUERY,
level=1,
description="Returns true if one of the latches is in ERROR state.")
public boolean isInError()
@Command(type=QUERY,
level=1,
description="Returns true if there is no filter is latches.")
public boolean isEmpty()
public boolean isFilterEngagedInError()
@Command(type=QUERY,
level=1,
description="Return true if autochanger is holding a filter.")
public boolean isHoldingFilter()
public void updateStateAndCheckSensors()
FcsHardwareException - if some latch sensors are in error or if latches
state is not equal on both side of the filter.FcsHardwareExceptionpublic void updateState()
public void close()
FcsHardwareExceptionpublic void open()
FcsHardwareException@Command(type=QUERY,
level=1,
description="Initialize AC latches hardware after initialization. To be executed if during boot process some hardware is missing.")
public void initializeHardware()
public StatusDataPublishedByAutochangerTwoLatches createStatusDataPublishedByTwoLatches()
public void publishData()
Copyright © 2023 LSST. All rights reserved.