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()
           
 CarouselSocket getSocketAtStandby()
           
 boolean isAbleToMove()
           
 boolean isRotating()
           
 java.lang.String lock()
           
 java.lang.String rotate(double angle)
          Rotates carousel for an angle given as a parameter.
 java.lang.String stop()
           
 java.lang.String unlock()
           
 
Methods inherited from class org.lsst.ccs.subsystems.fcs.CarouselModule
addAngle, getCarouselMotor, getClampsActuator, getFilterAtStandby, getFilterInStandbyName, getFilterPosition, getLatch, getNbSockets, getSocketNumber, getSockets, getStandbyPositionForFilter, getState, getStatusData, grabbeFilterAtStandby, grabbeFilterAtStandby, initModule, initPublishedData, isLocked, isOnStandby, isReadyToGrabbeAFilterAtStandby, moveFilterToStandby, printSockets, processUpdate, releaseClamps, removeFilterFromCarousel, setCarouselMotor, setClampsActuator, 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, 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()
Specified by:
getSocketAtStandby in interface Carousel
Overrides:
getSocketAtStandby in class CarouselModule

getPosition

public double getPosition()
Specified by:
getPosition in interface Carousel
Overrides:
getPosition in class CarouselModule

isAbleToMove

public boolean isAbleToMove()
Specified by:
isAbleToMove in interface Carousel
Overrides:
isAbleToMove in class CarouselModule

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
Returns:
the result of the command rotate(double angle)

stop

public java.lang.String stop()
Specified by:
stop in interface Carousel
Overrides:
stop in class CarouselModule

lock

public java.lang.String lock()
Specified by:
lock in interface Carousel
Overrides:
lock in class CarouselModule

unlock

public java.lang.String unlock()
Specified by:
unlock in interface Carousel
Overrides:
unlock in class CarouselModule


Copyright © 2011 LSST. All Rights Reserved.