Class Citizen
java.lang.Object
org.episteme.social.sociology.Role
org.episteme.social.politics.Citizen
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>
Represents a person's legal status as a citizen, including nationalities and identification.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class Role
CLIENT, OBSERVER, SERVER, SUPERVISOR -
Constructor Summary
ConstructorsConstructorDescriptionCitizen(Individual individual, CivilSituation situation) Initializes a new Citizen role for an individual within a civil situation. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNationality(Country country) Adds a nationality to the citizen.Returns the identification for this citizen.Returns an unmodifiable set of nationalities.voidremoveNationality(Country country) Removes a nationality from the citizen.voidsetIdentification(Identification identification) Updates the identification for this citizen.Methods inherited from class Role
equals, getId, getIndividual, getKind, getSituation, getTraits, getWhen, hashCode, setKind, setTimestamp, toStringMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Citizen
Initializes a new Citizen role for an individual within a civil situation.- Parameters:
individual- the individual taking on the citizen rolesituation- the civil context- Throws:
NullPointerException- if any argument is null
-
-
Method Details
-
getNationalities
-
addNationality
Adds a nationality to the citizen.- Parameters:
country- the country of citizenship- Throws:
NullPointerException- if country is null
-
removeNationality
Removes a nationality from the citizen.- Parameters:
country- the country to remove
-
getIdentification
Returns the identification for this citizen.- Returns:
- the identification
-
setIdentification
Updates the identification for this citizen.- Parameters:
identification- the new identification- Throws:
NullPointerException- if identification is null
-