org.lsst.ccs.subsystems.shutter.simulator.motor
Class HallSensorSimulator

java.lang.Object
  extended by org.lsst.ccs.subsystems.shutter.simulator.motor.HallSensorSimulator

public class HallSensorSimulator
extends Object

Author:
azemoon

Constructor Summary
HallSensorSimulator(MotorSimulator simulator)
           
 
Method Summary
 void addHallSensorListener(HallSensorListener l)
           
 void buildSensorData()
          Build up sensor data assuming that nMagnet magnets and nSensor sensors are arranged so that equally spaced blade positions bladePosition correspond to on/off sensor signals.
 MotorSimulator getMotorSimulator()
           
 void removeHallSensorListener(HallSensorListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HallSensorSimulator

public HallSensorSimulator(MotorSimulator simulator)
Method Detail

getMotorSimulator

public MotorSimulator getMotorSimulator()

addHallSensorListener

public void addHallSensorListener(HallSensorListener l)

removeHallSensorListener

public void removeHallSensorListener(HallSensorListener l)

buildSensorData

public void buildSensorData()
Build up sensor data assuming that nMagnet magnets and nSensor sensors are arranged so that equally spaced blade positions bladePosition correspond to on/off sensor signals. This method associates a sensor id with each value of bladePosition. The same data is used for both blade sets.



Copyright © 2012 LSST. All Rights Reserved.