public class CarouselSocket extends MobileItemModule implements org.lsst.ccs.framework.ClearAlertHandler
org.lsst.ccs.framework.Module.ValueUpdatecurrentAction, FCSLOG, haltRequired, hasToWaitForEndOfAction, lock, motionCompleted, moving, scheduler, stopRequired| Constructor and Description |
|---|
CarouselSocket(CarouselClampModule clampXminus,
CarouselClampModule clampXplus,
int position,
int standbyPosition)
Build a new CarouselSocket with a tickMillis of 5000.
|
| 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.
|
int |
getActualPosition()
Return the actual position of this socket.
|
int |
getCarouselPosition()
Return the absolute position of the Carousel.
|
FcsEnumerations.FilterClampState |
getClampsState()
Returns the state of the clamps.
|
CarouselClampModule |
getClampXminus() |
CarouselClampModule |
getClampXplus() |
Filter |
getFilter() |
int |
getPositionOnCarousel()
Return the position of this socket on the carousel.
|
int |
getStandbyPosition() |
void |
initModule()
***********************************************************************************************
|
boolean |
isActionCompleted(FcsEnumerations.MobileItemAction action) |
boolean |
isAtStandby()
Return true if this socket is at STANDBY position.
|
boolean |
isCANDevicesReady() |
boolean |
isClampedOnFilter() |
boolean |
isEmpty() |
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) |
void |
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)
Start action of unlocking or releasing clamps.
|
String |
toString() |
void |
unlockClamps()
This method unclamps the 2 clamps at standby position.
|
void |
updateClampsStateWithSensors()
Update clamps state in reading sensors.
|
void |
updateClampsStateWithSensors(PDOStorage pdoStorage) |
void |
updateClampsStateWithSensorsFromSDO()
Deprecated.
|
void |
updateStateWithSensorsToCheckIfActionIsCompleted() |
abort, abort, checkHardware, checkStarted, checkStopped, executeAction, getHaltRequired, isMoving, quickstop, readSensorsUntilActionIsCompleted, shutdownNow, signal, stop, stopgetNObserverThreads, getObservables, getTickMillis, init, listens, processUpdate, sendSignal, sendSignalWithTimeLimit, setNObserverThreads, setObservables, setTickMillis, startTicking, tick, updateaddObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitraiseAlarm, raiseAlarm, raiseAlarm, raiseAlarm, raiseWarning, raiseWarning, raiseWarning, raiseWarninggetComponentConfigurationEnvironment, getComponentLookup, getName, getSubsystemchange, dropSubmittedChanges, getChildren, getComponentByName, getEnvironment, getParent, getParentObject, getSubmittedChanges, isParameterConfigurable, postStart, printConfigurableParameters, setBulkParameter, start, submitChange, submitChanges, validateBulkChangepublic CarouselSocket(CarouselClampModule clampXminus, CarouselClampModule clampXplus, int position, int standbyPosition)
clampXminus - clampXplus - position - standbyPosition - public CarouselClampModule getClampXminus()
public void setClampXminus(CarouselClampModule clampXminus)
public CarouselClampModule getClampXplus()
public void setClampXplus(CarouselClampModule clampXplus)
public int getActualPosition()
public int getCarouselPosition()
public int getPositionOnCarousel()
public Filter getFilter()
public int getStandbyPosition()
@Command(type=QUERY,
level=1,
description="Returns true if this socket is at STANDBY position on the carousel.")
public boolean isAtStandby()
public void initModule()
initModule in class MobileItemModule@Command(type=QUERY,
level=1,
description="Returns true if hardware is connected and ready.")
public boolean isCANDevicesReady()
isCANDevicesReady 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()
FcsHardwareExceptionpublic void updateClampsStateWithSensors(PDOStorage pdoStorage)
@Command(type=QUERY,
level=0,
description="Update clamps state in reading sensors.")
public void updateClampsStateWithSensors()
FcsHardwareException@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 void releaseClamps()
FcsHardwareException@Command(type=ACTION,
level=1,
description="Unlock the 2 clamps of this socket if the socket is at STANDBY position.")
public void unlockClamps()
FcsHardwareExceptionpublic void removeFilter()
public void putFilterOnSocket(Filter filter)
filter - @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()
updateStateWithSensorsToCheckIfActionIsCompleted in class MobileItemModulepublic void startAction(FcsEnumerations.MobileItemAction action)
startAction in class MobileItemModuleaction - FcsHardwareExceptionpublic void postAction(FcsEnumerations.MobileItemAction action)
postAction in class MobileItemModulepublic void abortAction(FcsEnumerations.MobileItemAction action, long delay)
abortAction in class MobileItemModulepublic void publishData()
publishData in class MobileItemModulepublic StatusDataPublishedByCarouselSocket createStatusDataPublishedByCarouselSocket()
public void quickStopAction(FcsEnumerations.MobileItemAction action, long delay)
quickStopAction in class MobileItemModulepublic 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.