Class PupilDiameter

java.lang.Object
adaptlil.data_classes.PupilDiameter

public class PupilDiameter extends Object
  • Field Details

    • diameterOfLeftEyeInMM

      private double diameterOfLeftEyeInMM
    • isLeftEyeValid

      private boolean isLeftEyeValid
    • isRightEyeValid

      private boolean isRightEyeValid
    • diameterOfRightEyeInMM

      private double diameterOfRightEyeInMM
  • Constructor Details

    • PupilDiameter

      public PupilDiameter()
      Empty constructor for Jackson Serialization
    • PupilDiameter

      public PupilDiameter(double diameterOfLeftEyeInMM, boolean isLeftEyeValid, double diameterOfRightEyeInMM, boolean isRightEyeValid)
      Parameters:
      diameterOfLeftEyeInMM -
      isLeftEyeValid -
      diameterOfRightEyeInMM -
      isRightEyeValid -
  • Method Details

    • interpolate

      public PupilDiameter[] interpolate(PupilDiameter firstPupilDiameter, PupilDiameter nextPupilDiameter, int nSteps)
      Parameters:
      firstPupilDiameter -
      nextPupilDiameter -
      nSteps -
      Returns:
    • setDiameterOfLeftEyeInMM

      public void setDiameterOfLeftEyeInMM(double diameterOfLeftEyeInMM)
      The diameter of the left eye pupil in millimeters.
      Parameters:
      diameterOfLeftEyeInMM - double
    • setLeftEyeValid

      public void setLeftEyeValid(boolean leftEyeValid)
      The valid flag with value of true if the data is valid, and false if it is not.
      Parameters:
      leftEyeValid - The valid flag with value of true if the data is valid, and false if it is not.
    • setRightEyeValid

      public void setRightEyeValid(boolean rightEyeValid)
      The valid flag with value of true if the data is valid, and false if it is not.
      Parameters:
      rightEyeValid - The valid flag with value of true if the data is valid, and false if it is not.
    • setDiameterOfRightEyeInMM

      public void setDiameterOfRightEyeInMM(double diameterOfRightEyeInMM)
      The diameter of the right eye pupil in millimeters.
      Parameters:
      diameterOfRightEyeInMM - The diameter of the right eye pupil in millimeters.
    • getDiameterOfLeftEyeInMM

      public double getDiameterOfLeftEyeInMM()
      The diameter of the left eye pupil in millimeters.
      Returns:
      double in mm
    • getDiameterOfRightEyeInMM

      public double getDiameterOfRightEyeInMM()
      The diameter of the right eye pupil in millimeters.
      Returns:
      double in mm
    • isLeftEyeValid

      public boolean isLeftEyeValid()
      Determines validity of left eye pupil diameter data
      Returns:
      true, false
    • isRightEyeValid

      public boolean isRightEyeValid()
      Determines validity of right eye pupil diameter data
      Returns:
      true, false