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

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

public class MovementHistory
extends Object
implements Serializable

Class containing the data produced by a move

Author:
Owen Saxton
See Also:
Serialized Form

Constructor Summary
MovementHistory()
           
MovementHistory(int index, float startPosition)
           
MovementHistory(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

MovementHistory

public MovementHistory()

MovementHistory

public MovementHistory(int index,
                       float startPosition)

MovementHistory

public MovementHistory(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.


getStatus

public int getStatus()
Get the movement completion status


getStartTime

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


getEndTime

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


getStartPosition

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


getEndPosition

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


getMovementProfile

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


getHallTransitions

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



Copyright © 2013 LSST. All Rights Reserved.