Class Lawyer
java.lang.Object
org.episteme.social.sociology.Role
org.episteme.social.economics.EconomicAgent
org.episteme.social.economics.Worker
org.episteme.social.law.Lawyer
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>
The Lawyer class represents a legal professional whose primary role is to
provide legal advice and represent individuals or organizations in legal matters.
- 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
ConstructorsConstructorDescriptionLawyer(Individual individual, LawSuitSituation lawSuitSituation, String function, Administration administration) Creates a new Lawyer object.Lawyer(Individual individual, LawSuitSituation lawSuitSituation, Administration administration) Creates a new Lawyer object with the default function "Lawyer". -
Method Summary
Modifier and TypeMethodDescriptionvoidaddClient(Individual individual) Adds a new client to the lawyer's representation.Returns the set of clients currently represented by this lawyer.voidremoveClient(Individual individual) Removes a client from the lawyer's representation.voidsetClients(Set<Individual> clients) Sets the set of clients for this lawyer.Methods inherited from class Worker
addSubaltern, equals, extractTree, getAllSubalterns, getAnnualIncome, getChiefs, getCommonRoot, getCoWorkers, getLeaders, getLineage, getOrganization, getSubalterns, getSubalternsAtLevelK, getWorkedHours, hasChief, hasChild, hasChild, hasDistantSubaltern, hashCode, removeSubaltern, reparent, setAnnualIncome, setFunction, setOrganization, setSubalterns, setWorkedHours, setWorkedHoursMethods inherited from class EconomicAgent
addBelonging, getBelongings, getCommunity, getWallet, removeBelonging, setBelongings, setWalletMethods inherited from class Role
getId, getIndividual, getKind, getSituation, getTraits, getWhen, setKind, setTimestamp, toStringMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Lawyer
public Lawyer(Individual individual, LawSuitSituation lawSuitSituation, String function, Administration administration) Creates a new Lawyer object.- Parameters:
individual- the biological individual who is a lawyerlawSuitSituation- the legal situation or contextfunction- the specific role or title (e.g., "Counsel", "Advocate")administration- the administrative body the lawyer belongs to- Throws:
IllegalArgumentException- if individual, lawSuitSituation, or administration is null
-
Lawyer
public Lawyer(Individual individual, LawSuitSituation lawSuitSituation, Administration administration) Creates a new Lawyer object with the default function "Lawyer".- Parameters:
individual- the biological individual who is a lawyerlawSuitSituation- the legal situation or contextadministration- the administrative body the lawyer belongs to- Throws:
IllegalArgumentException- if individual, lawSuitSituation, or administration is null
-
-
Method Details
-
getClients
Returns the set of clients currently represented by this lawyer.- Returns:
- the set of clients
-
setClients
Sets the set of clients for this lawyer.- Parameters:
clients- the new set of clients- Throws:
IllegalArgumentException- if the set is null or contains non-Individual entities
-
addClient
Adds a new client to the lawyer's representation.- Parameters:
individual- the individual to add as a client- Throws:
IllegalArgumentException- if individual is null
-
removeClient
Removes a client from the lawyer's representation.- Parameters:
individual- the individual to remove
-