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

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

public class MovementHistoryImpl
extends Object
implements MovementHistory, Serializable

Class containing the data produced by a move

Author:
Owen Saxton
See Also:
Serialized Form

Constructor Summary
MovementHistoryImpl()
           
MovementHistoryImpl(int index, float startPosition)
           
MovementHistoryImpl(int index, int status, long startTime, float startPosition, long endTime, float endPosition, ArrayList<BladePosition> positions, ArrayList<HallTransition> transitions)
           
 
Method Summary
 void addHallTransition(HallTransition transition)
           
 int getBladeSetIndex()
          Get BladeSet Index that produced the movement.
 float getEndPosition()
          Get the position at the end of the movement.
 long getEndTime()
          Get the end time of the movement in Epoch microseconds.
 List<HallTransition> getHallTransitions()
          Get the list of Hall Sensor transitions corresponding to this movement.
 List<BladePosition> getMovementProfile()
          Get the profile of the movement.
 float getStartPosition()
          Get the position at the beginning of the movement.
 long getStartTime()
          Get the start time of the movement in Epoch microseconds.
 int getStatus()
          Get the movement completion status
 void setBladeSetIndex(int index)
           
 void setEndPosition(float endPosition)
           
 void setEndTime(long endTime)
           
 void setHallTransitions(List<HallTransition> transitions)
           
 void setMovementProfile(List<BladePosition> positions)
           
 void setStartPosition(float startPosition)
           
 void setStartTime(long startTime)
           
 void setStatus(int status)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MovementHistoryImpl

public MovementHistoryImpl()

MovementHistoryImpl

public MovementHistoryImpl(int index,
                           float startPosition)

MovementHistoryImpl

public MovementHistoryImpl(int index,
                           int status,
                           long startTime,
                           float startPosition,
                           long endTime,
                           float endPosition,
                           ArrayList<BladePosition> positions,
                           ArrayList<HallTransition> transitions)
Method Detail

setBladeSetIndex

public void setBladeSetIndex(int index)

setStatus

public void setStatus(int status)

setStartTime

public void setStartTime(long startTime)

setStartPosition

public void setStartPosition(float startPosition)

setEndTime

public void setEndTime(long endTime)

setEndPosition

public void setEndPosition(float endPosition)

setMovementProfile

public void setMovementProfile(List<BladePosition> positions)

setHallTransitions

public void setHallTransitions(List<HallTransition> transitions)

addHallTransition

public void addHallTransition(HallTransition transition)

getBladeSetIndex

public int getBladeSetIndex()
Get BladeSet Index that produced the movement.

Specified by:
getBladeSetIndex in interface MovementHistory

getStatus

public int getStatus()
Get the movement completion status

Specified by:
getStatus in interface MovementHistory

getStartTime

public long getStartTime()
Get the start time of the movement in Epoch microseconds.

Specified by:
getStartTime in interface MovementHistory

getEndTime

public long getEndTime()
Get the end time of the movement in Epoch microseconds.

Specified by:
getEndTime in interface MovementHistory

getStartPosition

public float getStartPosition()
Get the position at the beginning of the movement. This is a number [0,1].

Specified by:
getStartPosition in interface MovementHistory

getEndPosition

public float getEndPosition()
Get the position at the end of the movement. This is a number [0,1].

Specified by:
getEndPosition in interface MovementHistory

getMovementProfile

public List<BladePosition> getMovementProfile()
Get the profile of the movement. The profile is time ordered.

Specified by:
getMovementProfile in interface MovementHistory

getHallTransitions

public List<HallTransition> getHallTransitions()
Get the list of Hall Sensor transitions corresponding to this movement. The transitions are globally time ordered.

Specified by:
getHallTransitions in interface MovementHistory


Copyright © 2012 LSST. All Rights Reserved.