Class LawSuitSituation
java.lang.Object
org.episteme.social.sociology.Situation
org.episteme.social.economics.EconomicSituation
org.episteme.social.economics.WorkSituation
org.episteme.social.law.LawSuitSituation
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>
Represents the process and context of a lawsuit or trial.
Since legal processes vary greatly between jurisdictions, this class provides
a generalized structure for organizing evidence, transcripts, roles, and outcomes.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLawSuitSituation(String name, String comments, Identification identification) Creates a new LawSuitSituation with specific name, comments, and identification.LawSuitSituation(Identification identification) Creates a new LawSuitSituation with a specific identification. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDefendant(Individual individual) Adds a defendant to the lawsuit.voidaddJudge(Individual individual, Administration administration) Adds a judge to the lawsuit.voidaddJuryMember(Individual individual, Administration administration) Adds a jury member to the lawsuit.voidaddLawyer(Individual individual, Administration administration) Adds a lawyer to the lawsuit.voidaddPlaintiff(Individual individual) Adds a plaintiff to the lawsuit.voidaddProsecutor(Individual individual, Administration administration) Adds a prosecutor to the lawsuit.voidaddTranscript(String transcript) Adds a new transcript to the record.voidaddWitness(Individual individual) Adds a witness to the lawsuit.Returns the set of evidences (material resources) associated with the case.getId()Returns the unique identifier of this entity.Returns the final sentence or outcome of the lawsuit.Returns the list of transcripts for the proceeding.booleanisOver()Checks if the lawsuit or trial is over (i.e., a sentence has been set).voidRemoves the most recent transcript from the record.voidremoveTranscript(String transcript) Removes a specific transcript from the record.voidsetEvidences(Set<MaterialResource> evidences) Sets the set of evidences for this case.voidsetSentence(String sentence) Sets the final sentence or outcome.voidsetTranscripts(List<String> transcripts) Sets the complete list of transcripts.Methods inherited from class WorkSituation
addRole, addWorkerMethods inherited from class EconomicSituation
addEconomicAgentMethods inherited from class Situation
addParticipant, addParticipant, equals, getPosition, getRoles, getTraits, hashCode, removeParticipant, setPosition, toStringMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
LawSuitSituation
Creates a new LawSuitSituation with a specific identification.- Parameters:
identification- the unique identifier for this situation
-
LawSuitSituation
Creates a new LawSuitSituation with specific name, comments, and identification.- Parameters:
name- the name of the lawsuitcomments- additional comments or contextidentification- the unique identification object
-
-
Method Details
-
getIdentification
- Overrides:
getIdentificationin classSituation
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Overrides:
getIdin classSituation- Returns:
- the identifier
-
addJudge
Adds a judge to the lawsuit.- Parameters:
individual- the individual taking the roleadministration- the judicial administration
-
addProsecutor
Adds a prosecutor to the lawsuit.- Parameters:
individual- the individual taking the roleadministration- the judicial administration
-
addLawyer
Adds a lawyer to the lawsuit.- Parameters:
individual- the individual taking the roleadministration- the judicial administration
-
addJuryMember
Adds a jury member to the lawsuit.- Parameters:
individual- the individual taking the roleadministration- the judicial administration
-
addPlaintiff
Adds a plaintiff to the lawsuit.- Parameters:
individual- the individual taking the role
-
addDefendant
Adds a defendant to the lawsuit.- Parameters:
individual- the individual taking the role
-
addWitness
Adds a witness to the lawsuit.- Parameters:
individual- the individual taking the role
-
getEvidences
Returns the set of evidences (material resources) associated with the case.- Returns:
- a set of evidences
-
setEvidences
Sets the set of evidences for this case.- Parameters:
evidences- a set of MaterialResource objects- Throws:
IllegalArgumentException- if the set is null or contains non-MaterialResource elements
-
getTranscripts
-
addTranscript
Adds a new transcript to the record.- Parameters:
transcript- the transcript content- Throws:
IllegalArgumentException- if transcript is null
-
removeTranscript
Removes a specific transcript from the record.- Parameters:
transcript- the transcript to remove
-
removeLastTranscript
public void removeLastTranscript()Removes the most recent transcript from the record. -
setTranscripts
Sets the complete list of transcripts.- Parameters:
transcripts- a list of transcript strings- Throws:
IllegalArgumentException- if the list is null or contains non-string elements
-
getSentence
Returns the final sentence or outcome of the lawsuit.- Returns:
- the sentence string
-
setSentence
Sets the final sentence or outcome. This can only be called once if the case is not yet over.- Parameters:
sentence- the final outcome description- Throws:
IllegalArgumentException- if the sentence is empty or already set
-
isOver
public boolean isOver()Checks if the lawsuit or trial is over (i.e., a sentence has been set).- Returns:
- true if the case is concluded
-