|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.lsst.ccs.subsystems.shutter.common.HallTransitionImpl
public class HallTransitionImpl
Class containing the data for a single Hall sensor transition
| Constructor Summary | |
|---|---|
HallTransitionImpl()
|
|
HallTransitionImpl(long time,
int sensor,
boolean open,
boolean reverse,
float position,
float relPosition)
|
|
| Method Summary | |
|---|---|
float |
getPosition()
Get the position (in mm) where the transition occurred |
float |
getRelPosition()
Get the relative position (0 - 1) where the transition occurred |
int |
getSensorId()
Get the id of the Hall Sensor |
long |
getTransitionTime()
Get the Epoch microseconds when the transition occurred. |
boolean |
isOpen()
Check if the sensor is open after the transition. |
boolean |
isReverse()
Check if the motion was in the reverse direction, in shutter coordinates. |
void |
setOpen(boolean open)
|
void |
setPosition(float position)
|
void |
setRelPosition(float relPosition)
|
void |
setReverse(boolean reverse)
|
void |
setSensorId(int sensor)
|
void |
setTransitionTime(long time)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HallTransitionImpl()
public HallTransitionImpl(long time,
int sensor,
boolean open,
boolean reverse,
float position,
float relPosition)
| Method Detail |
|---|
public void setTransitionTime(long time)
public void setSensorId(int sensor)
public void setOpen(boolean open)
public void setReverse(boolean reverse)
public void setPosition(float position)
public void setRelPosition(float relPosition)
public long getTransitionTime()
HallTransition
getTransitionTime in interface HallTransitionpublic int getSensorId()
HallTransition
getSensorId in interface HallTransitionpublic boolean isOpen()
HallTransition
isOpen in interface HallTransitionpublic boolean isReverse()
HallTransition
isReverse in interface HallTransitionpublic float getPosition()
HallTransition
getPosition in interface HallTransitionpublic float getRelPosition()
HallTransition
getRelPosition in interface HallTransition
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||