public class CarouselSocket extends MobileItemModule implements org.lsst.ccs.framework.ClearAlertHandler
org.lsst.ccs.framework.Module.ValueUpdatecurrentAction, FCSLOG, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, stopRequired| Constructor and Description |
|---|
CarouselSocket(String moduleName,
int aTickMillis,
CarouselClampModule clampXminus,
CarouselClampModule clampXplus,
double position,
double standbyPosition) |
| Modifier and Type | Method and Description |
|---|---|
void |
abortAction(FcsEnumerations.MobileItemAction action,
long delay) |
org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode |
canClearAlert(org.lsst.ccs.bus.data.Alert alert) |
StatusDataPublishedByCarouselSocket |
createStatusDataPublishedByCarouselSocket()
Create an object to be published on the STATUS bus by a CarouselSocket.
|
double |
getActualPosition()
Return the actual position of this socket.
|
double |
getCarouselPosition()
Return the absolute position of the Carousel.
|
FcsEnumerations.FilterClampState |
getClampsState()
Returns the state of the clamps.
|
CarouselClampModule |
getClampXminus() |
CarouselClampModule |
getClampXplus() |
Filter |
getFilter() |
double |
getPositionOnCarousel() |
double |
getStandbyPosition() |
void |
initModule()
***********************************************************************************************
|
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isAtStandby()
Return true if this socket is at HALTED at STANDBY position.
|
boolean |
isAutochangerHoldingFilter()
Checking if autochanger is holding the filter is delegated to autochangerHandler.
|
boolean |
isClampedOnFilter() |
boolean |
isEmpty() |
boolean |
isHardwareReady() |
boolean |
isReadyToClamp() |
boolean |
isUnclampedEmpty() |
boolean |
isUnclampedOnFilter() |
void |
postAction(FcsEnumerations.MobileItemAction action) |
void |
publishData() |
void |
putFilterOnSocket(Filter filter)
This is only a software operation.
|
void |
quickStopAction(FcsEnumerations.MobileItemAction action,
long delay) |
String |
releaseClamps()
Releases the 2 clamps of the socket.
|
void |
removeFilter()
Software removing.
|
void |
setClampXminus(CarouselClampModule clampXminus) |
void |
setClampXplus(CarouselClampModule clampXplus) |
void |
startAction(FcsEnumerations.MobileItemAction action) |
void |
tick() |
String |
toString() |
String |
unlockClamps()
This method unclamp the 2 clamps at standby positionOnCarousel.
|
void |
updateClampsStateWithSensors() |
void |
updateClampsStateWithSensors(PDOStorage pdoStorage) |
void |
updateClampsStateWithSensorsFromSDO()
Deprecated.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
abort, abort, checkHardware, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetComponentTree, getEnvironment, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, postStart, processUpdate, sendSignal, sendSignalWithTimeLimit, setEnvironment, setName, setNObserverThreads, setObservables, setTickMillis, startTicking, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitchange, getCheckedValueFromConfiguration, getChildren, getComponentByName, getFullPath, getParent, getParentObject, injectResources, listChildren, notifyChange, notifyChangeWithoutPreliminaryChecks, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic CarouselSocket(String moduleName, int aTickMillis, CarouselClampModule clampXminus, CarouselClampModule clampXplus, double position, double standbyPosition)
public CarouselClampModule getClampXminus()
public void setClampXminus(CarouselClampModule clampXminus)
public CarouselClampModule getClampXplus()
public void setClampXplus(CarouselClampModule clampXplus)
public double getActualPosition()
public double getCarouselPosition()
public double getPositionOnCarousel()
public Filter getFilter()
public double getStandbyPosition()
public boolean isAtStandby()
public void initModule()
initModule in class MobileItemModule@Command(type=QUERY,
description="Returns true if the autochanger holds the filter.")
public boolean isAutochangerHoldingFilter()
@Command(type=QUERY,
level=1,
description="Returns true if hardware is connected and ready.")
public boolean isHardwareReady()
isHardwareReady in class MobileItemModule@Command(type=QUERY,
level=0,
description="Return clamps state - doesn\'t read again sensors.")
public FcsEnumerations.FilterClampState getClampsState()
@Deprecated public void updateClampsStateWithSensorsFromSDO() throws FcsHardwareException
FcsHardwareExceptionpublic void updateClampsStateWithSensors(PDOStorage pdoStorage) throws FcsHardwareException
FcsHardwareException@Command(type=QUERY,
level=0,
description="Update clamps state in reading sensors.")
public void updateClampsStateWithSensors()
throws FcsHardwareException,
org.lsst.ccs.messaging.BadCommandException
FcsHardwareExceptionorg.lsst.ccs.messaging.BadCommandException@Command(type=QUERY,
level=0,
description="Returns true if there is no filter in the socket.")
public boolean isEmpty()
@Command(type=QUERY,
level=0,
description="Returns true if there is a filter in the socket and the clampsare LOCKED.")
public boolean isClampedOnFilter()
@Command(type=QUERY,
level=0,
description="Returns true if there is a filter in the socket and the clampsare UNLOCKED.")
public boolean isUnclampedOnFilter()
@Command(type=QUERY,
level=0,
description="Returns true if there is NO filter in the socket and the clampsare UNLOCKED.")
public boolean isUnclampedEmpty()
@Command(type=QUERY,
level=0,
description="Returns true if this socket is ready to clamp a filter.")
public boolean isReadyToClamp()
@Command(type=ACTION,
level=1,
description="Release the 2 clamps of this socket if the socket is at STANDBY position.")
public String releaseClamps()
throws org.lsst.ccs.messaging.BadCommandException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException,
FcsHardwareException
org.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareException@Command(type=ACTION,
level=1,
description="Unlock the 2 clamps of this socket if the socket is at STANDBY position.")
public String unlockClamps()
throws FcsHardwareException,
org.lsst.ccs.messaging.BadCommandException,
org.lsst.ccs.messaging.ErrorInCommandExecutionException
FcsHardwareExceptionorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionpublic void removeFilter()
throws org.lsst.ccs.messaging.BadCommandException
org.lsst.ccs.messaging.BadCommandExceptionpublic void putFilterOnSocket(Filter filter)
filter - public void tick()
tick in class org.lsst.ccs.framework.Module@Command(type=QUERY,
level=1,
description="Returns a String representation of a CarouselSocket.")
public String toString()
public boolean isActionCompleted(FcsEnumerations.MobileItemAction action)
isActionCompleted in class MobileItemModulepublic void updateStateWithSensorsToCheckIfActionIsCompleted()
throws Exception
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModuleExceptionpublic void startAction(FcsEnumerations.MobileItemAction action) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
startAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void postAction(FcsEnumerations.MobileItemAction action) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
postAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void abortAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
abortAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic void publishData()
publishData in class MobileItemModulepublic StatusDataPublishedByCarouselSocket createStatusDataPublishedByCarouselSocket()
public void quickStopAction(FcsEnumerations.MobileItemAction action, long delay) throws org.lsst.ccs.messaging.BadCommandException, org.lsst.ccs.messaging.ErrorInCommandExecutionException, FcsHardwareException
quickStopAction in class MobileItemModuleorg.lsst.ccs.messaging.BadCommandExceptionorg.lsst.ccs.messaging.ErrorInCommandExecutionExceptionFcsHardwareExceptionpublic org.lsst.ccs.framework.ClearAlertHandler.ClearAlertCode canClearAlert(org.lsst.ccs.bus.data.Alert alert)
canClearAlert in interface org.lsst.ccs.framework.ClearAlertHandlerCopyright © 2016 LSST. All rights reserved.