org.lsst.ccs.subsystems.shutter.simulator
Class BladeSetSimulator

java.lang.Object
  extended by org.lsst.ccs.subsystems.shutter.simulator.BladeSetSimulator
All Implemented Interfaces:
BladeSet

public class BladeSetSimulator
extends Object
implements BladeSet

Author:
azemoon

Constructor Summary
BladeSetSimulator()
           
 
Method Summary
 void addChangeListener(ChangeListener l)
           
 void addEncoderSimulatorListener(EncoderSimulatorListener l)
           
 void addHallSensorListener(HallSensorListener l)
           
 void addMovementHistoryListener(MovementHistoryListener l)
           
 BladeSetConfiguration getBladeSetConfiguration()
          Get the configuration of the BladeSet.
 double getBladeSetPosition()
           
 float getCurrentPosition()
          Get the current position of the BladeSet
 int getIndex()
           
 MovementHistory getMovementHistory()
           
 void moveToPosition(float targetPosition, float moveTimeSeconds)
          Move the blade set to the specified position
 void removeChangeListener(ChangeListener l)
           
 void removeEncoderSimulatorListener(EncoderSimulatorListener l)
           
 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.
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BladeSetSimulator

public BladeSetSimulator()
Method Detail

getBladeSetConfiguration

public BladeSetConfiguration getBladeSetConfiguration()
Description copied from interface: BladeSet
Get the configuration of the BladeSet.

Specified by:
getBladeSetConfiguration in interface BladeSet
Returns:
The BladeSet configuration.

getCurrentPosition

public float getCurrentPosition()
Description copied from interface: BladeSet
Get the current position of the BladeSet

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

setIndex

public void setIndex(int index)
Description copied from interface: BladeSet
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.

Specified by:
setIndex in interface BladeSet

getIndex

public int getIndex()
Specified by:
getIndex in interface BladeSet

getMovementHistory

public MovementHistory getMovementHistory()

start

public void start()

getBladeSetPosition

public double getBladeSetPosition()

addChangeListener

public void addChangeListener(ChangeListener l)

removeChangeListener

public void removeChangeListener(ChangeListener l)

addEncoderSimulatorListener

public void addEncoderSimulatorListener(EncoderSimulatorListener l)

removeEncoderSimulatorListener

public void removeEncoderSimulatorListener(EncoderSimulatorListener l)

addHallSensorListener

public void addHallSensorListener(HallSensorListener l)
Specified by:
addHallSensorListener in interface BladeSet

removeHallSensorListener

public void removeHallSensorListener(HallSensorListener l)
Specified by:
removeHallSensorListener in interface BladeSet

addMovementHistoryListener

public void addMovementHistoryListener(MovementHistoryListener l)
Specified by:
addMovementHistoryListener in interface BladeSet

removeMovementHistoryListener

public void removeMovementHistoryListener(MovementHistoryListener l)
Specified by:
removeMovementHistoryListener in interface BladeSet

moveToPosition

public void moveToPosition(float targetPosition,
                           float moveTimeSeconds)
Description copied from interface: BladeSet
Move the blade set to the specified position

Specified by:
moveToPosition in interface BladeSet
Parameters:
targetPosition - Position of the leading blade to move to. This is a number [0,1] where 0 means fully open and 1 is fully closed.
moveTimeSeconds - How long it should take in seconds reach the position.


Copyright © 2013 LSST. All Rights Reserved.