Package adaptlil.data_classes
Class PupilDiameter
java.lang.Object
adaptlil.data_classes.PupilDiameter
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private double
private boolean
private boolean
-
Constructor Summary
ConstructorDescriptionEmpty constructor for Jackson SerializationPupilDiameter
(double diameterOfLeftEyeInMM, boolean isLeftEyeValid, double diameterOfRightEyeInMM, boolean isRightEyeValid) -
Method Summary
Modifier and TypeMethodDescriptiondouble
The diameter of the left eye pupil in millimeters.double
The diameter of the right eye pupil in millimeters.interpolate
(PupilDiameter firstPupilDiameter, PupilDiameter nextPupilDiameter, int nSteps) boolean
Determines validity of left eye pupil diameter databoolean
Determines validity of right eye pupil diameter datavoid
setDiameterOfLeftEyeInMM
(double diameterOfLeftEyeInMM) The diameter of the left eye pupil in millimeters.void
setDiameterOfRightEyeInMM
(double diameterOfRightEyeInMM) The diameter of the right eye pupil in millimeters.void
setLeftEyeValid
(boolean leftEyeValid) The valid flag with value of true if the data is valid, and false if it is not.void
setRightEyeValid
(boolean rightEyeValid) The valid flag with value of true if the data is valid, and false if it is not.
-
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
-