Class Role
java.lang.Object
org.episteme.social.sociology.Role
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>
- Direct Known Subclasses:
Candidate, Citizen, Defendant, EconomicAgent, Locutor, MasterOfCeremony, Member, Patient, Plaintiff, ResponsibleIndividual, Voter, Witness
Represents a social role assumed by an individual within a specific situation.
Roles define expected behaviors and relations (e.g., Client/Server, Supervisor, Observer).
* @version 2.1
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetId()Returns the unique identifier of this entity.Returns the individual associated with this role.getKind()Returns the archetypal kind of this role.Returns the situation context for this role.Returns the traits map for this entity.getWhen()Returns the temporal position (when) of this entity.inthashCode()voidvoidsetTimestamp(TimeCoordinate timestamp) Sets the timestamp for this role.toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Field Details
-
CLIENT
Primary role categories. -
SERVER
-
SUPERVISOR
-
OBSERVER
-
-
Constructor Details
-
Role
Creates a new Role for an individual within a specific situation.- Parameters:
individual- the individual taking on the rolename- the identifying name of the rolesituation- the context for the rolekind- the categorical classification of the role- Throws:
NullPointerException- if any argument is null
-
Role
Creates a standalone Role template.- Parameters:
name- the identifying name of the rolekind- the categorical classification- Throws:
NullPointerException- if name is null
-
-
Method Details
-
getId
Description copied from interface:IdentifiedReturns the unique identifier of this entity.- Specified by:
getIdin interfaceIdentified<Identification>- Returns:
- the identifier
-
getTraits
Description copied from interface:ComprehensiveIdentificationReturns the traits map for this entity.- Specified by:
getTraitsin interfaceCommented- Specified by:
getTraitsin interfaceComprehensiveIdentification- Returns:
- the traits map
-
getIndividual
Returns the individual associated with this role.- Returns:
- the individual
-
getSituation
-
getKind
-
setKind
-
getWhen
Description copied from interface:TemporalReturns the temporal position (when) of this entity.- Specified by:
getWhenin interfaceTemporal<TimeCoordinate>- Returns:
- the temporal position.
-
setTimestamp
Sets the timestamp for this role.- Parameters:
timestamp- the timestamp to set
-
equals
-
hashCode
-
toString
-