org.lsst.ccs.subsystems.shutter.common
Class BladePositionImpl

java.lang.Object
  extended by org.lsst.ccs.subsystems.shutter.common.BladePositionImpl
All Implemented Interfaces:
Serializable, BladePosition

public class BladePositionImpl
extends Object
implements BladePosition, Serializable

Class containing the data for a single blade position sample

Author:
Owen Saxton
See Also:
Serialized Form

Constructor Summary
BladePositionImpl()
           
BladePositionImpl(float position, float relPosition)
           
BladePositionImpl(long time, float position, float relPosition)
           
 
Method Summary
 float getPosition()
          Get the position of the leading blade.
 float getRelPosition()
          Get the relative position of the leading blade.
 long getTime()
          Get the Epoch microseconds when the leading blade was at the position.
 void setPosition(float position)
           
 void setRelPosition(float relPosition)
           
 void setTime(long time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BladePositionImpl

public BladePositionImpl()

BladePositionImpl

public BladePositionImpl(long time,
                         float position,
                         float relPosition)

BladePositionImpl

public BladePositionImpl(float position,
                         float relPosition)
Method Detail

setTime

public void setTime(long time)

setPosition

public void setPosition(float position)

setRelPosition

public void setRelPosition(float relPosition)

getTime

public long getTime()
Description copied from interface: BladePosition
Get the Epoch microseconds when the leading blade was at the position.

Specified by:
getTime in interface BladePosition

getPosition

public float getPosition()
Description copied from interface: BladePosition
Get the position of the leading blade. This is the distance, in mm, from the fixed shutter origin. One blade is opening in the positive direction, the other one in the negative direction

Specified by:
getPosition in interface BladePosition

getRelPosition

public float getRelPosition()
Description copied from interface: BladePosition
Get the relative position of the leading blade. This is a number in the range (0,1) representing the fraction that the blade is closed.

Specified by:
getRelPosition in interface BladePosition


Copyright © 2012 LSST. All Rights Reserved.