Class Biometrics

java.lang.Object
org.episteme.social.law.Biometrics

public class Biometrics extends Object
A class representing biometric data and physical characteristics used for the identification of a person.

This includes basic biological traits like sex, height, and weight, as well as identifying features like hair color, eye color, and disabilities.

Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
  • Constructor Details

    • Biometrics

      public Biometrics(Person person)
      Creates a new Biometrics object for a given person.
      Parameters:
      person - the person to associate these biometrics with
      Throws:
      IllegalArgumentException - if person is null
  • Method Details

    • getSex

      public BiologicalSex getSex()
      Returns the sex of the individual.
      Returns:
      the sex
    • setSex

      public void setSex(BiologicalSex sex)
      Sets the sex of the individual.
      Parameters:
      sex - the sex
    • getHeight

      public float getHeight()
      Returns the height of the individual.
      Returns:
      height in meters
    • setHeight

      public void setHeight(float height)
      Sets the height of the individual.
      Parameters:
      height - height in meters
    • getWeight

      public float getWeight()
      Returns the weight of the individual.
      Returns:
      weight in kilograms
    • setWeight

      public void setWeight(float weight)
      Sets the weight of the individual.
      Parameters:
      weight - weight in kilograms
    • getSkinColor

      public Color getSkinColor()
      Returns the primary skin color.
      Returns:
      the skin color
    • setSkinColor

      public void setSkinColor(Color skinColor)
      Sets the primary skin color.
      Parameters:
      skinColor - the color to set
      Throws:
      IllegalArgumentException - if skinColor is null
    • getHairColor

      public Color getHairColor()
      Returns the current hair color.
      Returns:
      the hair color
    • setHairColor

      public void setHairColor(Color hairColor)
      Sets the current hair color.
      Parameters:
      hairColor - the color to set
      Throws:
      IllegalArgumentException - if hairColor is null
    • getEyesColor

      public Color getEyesColor()
      Returns the eye color.
      Returns:
      the eye color
    • setEyesColor

      public void setEyesColor(Color eyesColor)
      Sets the eye color.
      Parameters:
      eyesColor - the color to set
      Throws:
      IllegalArgumentException - if eyesColor is null
    • getDisabilities

      public List<String> getDisabilities()
      Returns the list of reported disabilities.
      Returns:
      the list of disabilities
    • addDisability

      public void addDisability(String disability)
      Adds a specific disability description.
      Parameters:
      disability - the disability to add
      Throws:
      IllegalArgumentException - if disability is null
    • removeDisability

      public void removeDisability(String disability)
      Removes a specific disability description.
      Parameters:
      disability - the disability to remove
    • removeLastDisability

      public void removeLastDisability()
      Removes the most recently added disability.
    • setDisabilities

      public void setDisabilities(List<String> disabilities)
      Sets the complete list of disabilities.
      Parameters:
      disabilities - the list of disabilities
      Throws:
      IllegalArgumentException - if list is null or contains non-String elements
    • getPicture

      public Image getPicture()
      Returns the identification picture of the person's face.
      Returns:
      the image, or null if not available
    • setPicture

      public void setPicture(Image picture)
      Sets the identification picture.
      Parameters:
      picture - the image to set
    • getEthnicity

      public String getEthnicity()
      Returns the ethnic group or ethnicity.
      Returns:
      the ethnicity string
    • setEthnicity

      public void setEthnicity(String ethnicity)
      Sets the ethnic group or ethnicity.
      Parameters:
      ethnicity - the ethnicity string
      Throws:
      IllegalArgumentException - if ethnicity is null
    • addComment

      public void addComment(String comment)
      Adds an identification-related comment.
      Parameters:
      comment - the comment to add
      Throws:
      IllegalArgumentException - if comment is null
    • removeComment

      public void removeComment(String comment)
      Removes a specific comment.
      Parameters:
      comment - the comment to remove
    • removeLastComment

      public void removeLastComment()
      Removes the most recently added comment.
    • setComments

      public void setComments(List<String> comments)
      Sets the complete list of comments.
      Parameters:
      comments - the list of comments
      Throws:
      IllegalArgumentException - if list is null
    • getHuman

      public Human getHuman()
      Returns the human entity associated with these biometrics.
      Returns:
      the human object