|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.subsystems.shutter.simulator.BladeSetSimulator
public class BladeSetSimulator
| 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 |
|---|
public BladeSetSimulator()
| Method Detail |
|---|
public BladeSetConfiguration getBladeSetConfiguration()
BladeSet
getBladeSetConfiguration in interface BladeSetpublic float getCurrentPosition()
BladeSet
getCurrentPosition in interface BladeSetpublic void setIndex(int index)
BladeSet
setIndex in interface BladeSetpublic int getIndex()
getIndex in interface BladeSetpublic MovementHistory getMovementHistory()
public void start()
public double getBladeSetPosition()
public void addChangeListener(ChangeListener l)
public void removeChangeListener(ChangeListener l)
public void addEncoderSimulatorListener(EncoderSimulatorListener l)
public void removeEncoderSimulatorListener(EncoderSimulatorListener l)
public void addHallSensorListener(HallSensorListener l)
addHallSensorListener in interface BladeSetpublic void removeHallSensorListener(HallSensorListener l)
removeHallSensorListener in interface BladeSetpublic void addMovementHistoryListener(MovementHistoryListener l)
addMovementHistoryListener in interface BladeSetpublic void removeMovementHistoryListener(MovementHistoryListener l)
removeMovementHistoryListener in interface BladeSet
public void moveToPosition(float targetPosition,
float moveTimeSeconds)
BladeSet
moveToPosition in interface BladeSettargetPosition - 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||