org.lsst.ccs.subsystems.fcs
Class CarouselSocket

java.lang.Object
  extended by org.lsst.ccs.subsystems.fcs.CarouselSocket

public class CarouselSocket
extends java.lang.Object

This is a socket on the carousel : there is 5 sockets on a carousel. When a filter is on the carousel, it is attached at a socket.

Author:
virieux

Constructor Summary
CarouselSocket()
           
CarouselSocket(double position)
          This constructor is for tests.
 
Method Summary
 FilterClamp getClampXminus()
           
 FilterClamp getClampXplus()
           
 Filter getFilter()
           
 double getPosition()
           
 double getStandbyPosition()
           
 boolean isClampedOnFilter()
           
 boolean isEmpty()
           
 boolean isReadyToClamp()
           
 boolean isUnclampedEmpty()
           
 boolean isUpdatedCompleted()
          This is used to synchronize the update of the clamps state with the values returned by the sensors.
 void putFilterOnSocket(Filter filter)
           
 void removeFilter()
           
 void setClampXminus(FilterClamp clampXminus)
          //FOR SPRING
 void setClampXplus(FilterClamp clampXplus)
          //FOR SPRING
protected  void setFilter(Filter filter)
           
 void setPosition(double position)
           
 void setStandbyPosition(double standbyPosition)
           
 java.lang.String toString()
           
 void updateClampsStateWithSensors()
          This methods updates the state of the 2 clamps at standby position.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CarouselSocket

public CarouselSocket()

CarouselSocket

public CarouselSocket(double position)
This constructor is for tests.

Parameters:
position -
Method Detail

getClampXminus

public FilterClamp getClampXminus()
Returns:
the clampXminus

setClampXminus

public void setClampXminus(FilterClamp clampXminus)
//FOR SPRING

Parameters:
clampXminus - the clampXminus to set

getClampXplus

public FilterClamp getClampXplus()
Returns:
the clampXplus

setClampXplus

public void setClampXplus(FilterClamp clampXplus)
//FOR SPRING

Parameters:
clampXplus - the clampXplus to set

getPosition

public double getPosition()

setPosition

public void setPosition(double position)

getFilter

public Filter getFilter()

setFilter

protected void setFilter(Filter filter)

getStandbyPosition

public double getStandbyPosition()

setStandbyPosition

public void setStandbyPosition(double standbyPosition)

isEmpty

public boolean isEmpty()
                throws HardwareErrorDetectedException
Throws:
HardwareErrorDetectedException

isClampedOnFilter

public boolean isClampedOnFilter()

isUnclampedEmpty

public boolean isUnclampedEmpty()

isReadyToClamp

public boolean isReadyToClamp()

isUpdatedCompleted

public boolean isUpdatedCompleted()
This is used to synchronize the update of the clamps state with the values returned by the sensors. The update of the socket is completed if both clamps have completed their update.


updateClampsStateWithSensors

public void updateClampsStateWithSensors()
This methods updates the state of the 2 clamps at standby position. This is done bychecking the values returned by the sensors. It waits until the 2 clamps have completed the update.


removeFilter

public void removeFilter()
                  throws org.lsst.ccs.bus.BadCommandException
Throws:
org.lsst.ccs.bus.BadCommandException

putFilterOnSocket

public void putFilterOnSocket(Filter filter)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2012 LSST. All Rights Reserved.