Class Biometrics
java.lang.Object
org.episteme.social.law.Biometrics
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 Summary
ConstructorsConstructorDescriptionBiometrics(Person person) Creates a new Biometrics object for a given person. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddComment(String comment) Adds an identification-related comment.voidaddDisability(String disability) Adds a specific disability description.Returns the list of reported disabilities.Returns the ethnic group or ethnicity.Returns the eye color.Returns the current hair color.floatReturns the height of the individual.getHuman()Returns the human entity associated with these biometrics.Returns the identification picture of the person's face.getSex()Returns the sex of the individual.Returns the primary skin color.floatReturns the weight of the individual.voidremoveComment(String comment) Removes a specific comment.voidremoveDisability(String disability) Removes a specific disability description.voidRemoves the most recently added comment.voidRemoves the most recently added disability.voidsetComments(List<String> comments) Sets the complete list of comments.voidsetDisabilities(List<String> disabilities) Sets the complete list of disabilities.voidsetEthnicity(String ethnicity) Sets the ethnic group or ethnicity.voidsetEyesColor(Color eyesColor) Sets the eye color.voidsetHairColor(Color hairColor) Sets the current hair color.voidsetHeight(float height) Sets the height of the individual.voidsetPicture(Image picture) Sets the identification picture.voidsetSex(BiologicalSex sex) Sets the sex of the individual.voidsetSkinColor(Color skinColor) Sets the primary skin color.voidsetWeight(float weight) Sets the weight of the individual.
-
Constructor Details
-
Biometrics
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
-
setSex
-
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
-
setSkinColor
Sets the primary skin color.- Parameters:
skinColor- the color to set- Throws:
IllegalArgumentException- if skinColor is null
-
getHairColor
-
setHairColor
Sets the current hair color.- Parameters:
hairColor- the color to set- Throws:
IllegalArgumentException- if hairColor is null
-
getEyesColor
-
setEyesColor
Sets the eye color.- Parameters:
eyesColor- the color to set- Throws:
IllegalArgumentException- if eyesColor is null
-
getDisabilities
-
addDisability
Adds a specific disability description.- Parameters:
disability- the disability to add- Throws:
IllegalArgumentException- if disability is null
-
removeDisability
Removes a specific disability description.- Parameters:
disability- the disability to remove
-
removeLastDisability
public void removeLastDisability()Removes the most recently added disability. -
setDisabilities
Sets the complete list of disabilities.- Parameters:
disabilities- the list of disabilities- Throws:
IllegalArgumentException- if list is null or contains non-String elements
-
getPicture
Returns the identification picture of the person's face.- Returns:
- the image, or null if not available
-
setPicture
Sets the identification picture.- Parameters:
picture- the image to set
-
getEthnicity
-
setEthnicity
Sets the ethnic group or ethnicity.- Parameters:
ethnicity- the ethnicity string- Throws:
IllegalArgumentException- if ethnicity is null
-
addComment
Adds an identification-related comment.- Parameters:
comment- the comment to add- Throws:
IllegalArgumentException- if comment is null
-
removeComment
Removes a specific comment.- Parameters:
comment- the comment to remove
-
removeLastComment
public void removeLastComment()Removes the most recently added comment. -
setComments
Sets the complete list of comments.- Parameters:
comments- the list of comments- Throws:
IllegalArgumentException- if list is null
-
getHuman
Returns the human entity associated with these biometrics.- Returns:
- the human object
-