org.lsst.ccs.subsystems.shutter.interfaces
Interface BladeSet

All Known Implementing Classes:
BladeSetDrvr, BladeSetSimulator

public interface BladeSet


Method Summary
 void addHallSensorListener(HallSensorListener l)
           
 void addMovementHistoryListener(MovementHistoryListener l)
           
 BladeSetConfiguration getBladeSetConfiguration()
          Get the configuration of the BladeSet.
 float getCurrentPosition()
          Get the current position of the BladeSet
 int getIndex()
           
 void moveToPosition(float position, float moveTime)
          Move the blade set to the specified position
 void removeHallSensorListener(HallSensorListener l)
           
 void removeMovementHistoryListener(MovementHistoryListener l)
           
 void setIndex(int index)
          Set the index of the BladeSet This specifies which BladeSet is being used and causes it to be initialized with its set of configuration parameters.
 

Method Detail

getCurrentPosition

float getCurrentPosition()
Get the current position of the BladeSet

Returns:
The current position of the BladeSet, a number in the fuzzy range [0,1].

moveToPosition

void moveToPosition(float position,
                    float moveTime)
                    throws IllegalArgumentException
Move the blade set to the specified position

Parameters:
position - Position of the leading blade to move to. This is a number [0,1] where 0 means fully open and 1 is fully closed.
moveTime - How long it should take in seconds reach the position.
Throws:
IllegalArgumentException - if the position is not in [0,1].

addMovementHistoryListener

void addMovementHistoryListener(MovementHistoryListener l)

removeMovementHistoryListener

void removeMovementHistoryListener(MovementHistoryListener l)

addHallSensorListener

void addHallSensorListener(HallSensorListener l)

removeHallSensorListener

void removeHallSensorListener(HallSensorListener l)

setIndex

void setIndex(int index)
Set the index of the BladeSet This specifies which BladeSet is being used and causes it to be initialized with its set of configuration parameters.


getIndex

int getIndex()

getBladeSetConfiguration

BladeSetConfiguration getBladeSetConfiguration()
Get the configuration of the BladeSet.

Returns:
The BladeSet configuration.


Copyright © 2013 LSST. All Rights Reserved.