Class Defendant
java.lang.Object
org.episteme.social.sociology.Role
org.episteme.social.law.Defendant
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>
Represents the defendant in a legal proceeding. A defendant is
an individual or entity against whom a lawsuit or criminal charge is brought.
- 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
ConstructorsConstructorDescriptionDefendant(Individual individual, LawSuitSituation lawSuitSituation) Creates a new Defendant object. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a specific charge to the defendant's record.Returns the set of charges brought against the defendant.voidremoveCharge(String charge) Removes a specific charge from the defendant's record.voidsetCharges(Set<String> charges) Sets the legal charges for this defendant.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
-
Defendant
Creates a new Defendant object.- Parameters:
individual- the individual taking the role of defendantlawSuitSituation- the legal situation or trial context
-
-
Method Details
-
getCharges
-
setCharges
Sets the legal charges for this defendant.- Parameters:
charges- a set of strings representing individual charges- Throws:
IllegalArgumentException- if the set is null or contains non-string elements
-
addCharge
Adds a specific charge to the defendant's record.- Parameters:
charge- the charge description
-
removeCharge
Removes a specific charge from the defendant's record.- Parameters:
charge- the charge description to remove
-