org.lsst.ccs.subsystems.fcs.singlefiltertest
Class SftCarouselModule

java.lang.Object
  extended by java.util.Observable
      extended by org.lsst.ccs.framework.Module
          extended by org.lsst.ccs.subsystems.fcs.CarouselModule
              extended by org.lsst.ccs.subsystems.fcs.singlefiltertest.SftCarouselModule
All Implemented Interfaces:
java.io.Serializable, java.util.Observer, Carousel

public class SftCarouselModule
extends CarouselModule

This class is for the Single Filter Test carousel. The carousel in Single Filter Test has only one socket and doesn't rotate.

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.subsystems.fcs.CarouselModule
nbSockets, publishedByCarouselOutputName
 
Fields inherited from class org.lsst.ccs.framework.Module
log, name, nObserverThreads, registry, tickMillis
 
Constructor Summary
SftCarouselModule()
           
 
Method Summary
 double getPosition()
          The carousel position measures the rotation angle of the carousel within the fixed part of the camera.
 CarouselSocket getSocketAtStandby()
          This methods returns the socket at standby position or null if there is no socket at standby position.
 boolean isAbleToMove()
          The carousel can be locked by a break or prevented to move by the autochanger fliprail.
 boolean isRotating()
           
 java.lang.String lock()
          Lock the carousel (or engage the break).
 java.lang.String rotate(double angle)
          Rotates carousel for an angle given as a parameter.
 java.lang.String stop()
          Stop the carousel if it is rotating.
 java.lang.String unlock()
          Unlock the carousel (or disengage the break)
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.CarouselModule
addAngle, engageClampsContact, getCarouselMotor, getClampActuatorXminus, getClampActuatorXplus, getClampXminus, getClampXplus, getFilterAtStandby, getFilterInStandbyName, getFilterPosition, getLatch, getNbSockets, getSocketNumber, getSockets, getStandbyPositionForFilter, getState, getStatusData, grabbeFilterAtStandby, grabbeFilterAtStandby, initModule, initPublishedData, isLocked, isOnStandby, isReadyToGrabbeAFilterAtStandby, moveFilterToStandby, printSockets, processUpdate, releaseClamps, releaseClampsContact, removeFilterFromCarousel, setCarouselMotor, setClampActuatorXminus, setClampActuatorXplus, setLatch, setNbSockets, setSockets, setState, tick, toString, ungrabbeFilterAtStandby, unlockClamps
 
Methods inherited from class org.lsst.ccs.framework.Module
getContext, getModule, getName, getNObserverThreads, getObservables, getSubsystem, getTickMillis, init, listens, publishData, publishData, publishData, publishData, sendToReply, sendToStatus, setBeanName, setContext, setName, setNObserverThreads, setObservables, setStateModularSubsystem, setStateModularSubsystem, setTickMillis, shutdownNow, start, 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

SftCarouselModule

public SftCarouselModule()
Method Detail

getSocketAtStandby

public CarouselSocket getSocketAtStandby()
Description copied from interface: Carousel
This methods returns the socket at standby position or null if there is no socket at standby position. If the carousel is rotating, it returns null.

Specified by:
getSocketAtStandby in interface Carousel
Overrides:
getSocketAtStandby in class CarouselModule
Returns:
the socket which is at standby position or null if there is no socket at standby position.

getPosition

public double getPosition()
Description copied from interface: Carousel
The carousel position measures the rotation angle of the carousel within the fixed part of the camera.

Specified by:
getPosition in interface Carousel
Overrides:
getPosition in class CarouselModule
Returns:
The position of the carousel in degrees. Its values is greater or equal to 0 and less than 360.

isAbleToMove

public boolean isAbleToMove()
Description copied from interface: Carousel
The carousel can be locked by a break or prevented to move by the autochanger fliprail. The carousel is able to move if no piece of hardware (nor simulated hardware) prevents the carousel to move.

Specified by:
isAbleToMove in interface Carousel
Overrides:
isAbleToMove in class CarouselModule
Returns:
true if the carousel is able to move, false if not.

isRotating

public boolean isRotating()
Overrides:
isRotating in class CarouselModule

rotate

public java.lang.String rotate(double angle)
Description copied from class: CarouselModule
Rotates carousel for an angle given as a parameter. This method can be launched by the user from the TestConsole. It checks the value of the rotation angle entered by the user, converts it in a double, and send the result of the method rotate(double angle).

Specified by:
rotate in interface Carousel
Overrides:
rotate in class CarouselModule
Parameters:
angle - : given in degree available values for an angle : [-360,+360]
Returns:
the result of the command rotate(double angle)

stop

public java.lang.String stop()
Description copied from interface: Carousel
Stop the carousel if it is rotating.

Specified by:
stop in interface Carousel
Overrides:
stop in class CarouselModule
Returns:

lock

public java.lang.String lock()
Description copied from interface: Carousel
Lock the carousel (or engage the break).

Specified by:
lock in interface Carousel
Overrides:
lock in class CarouselModule
Returns:

unlock

public java.lang.String unlock()
Description copied from interface: Carousel
Unlock the carousel (or disengage the break)

Specified by:
unlock in interface Carousel
Overrides:
unlock in class CarouselModule
Returns:


Copyright © 2012 LSST. All Rights Reserved.