Class Situation
java.lang.Object
org.episteme.social.sociology.Situation
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>
- Direct Known Subclasses:
ChatSituation, CivilSituation, EconomicSituation, Election, Ritual, StreetSituation
Represents a social interaction context where individuals assume specific roles.
Situations often occur at dedicated physical locations and involve common activities or conflicts.
Modernized to implement ComprehensiveIdentification and use RoleKind.
* @version 2.0
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParticipant(Individual individual, String roleName, int kind) Deprecated.addParticipant(Individual individual, String roleName, RoleKind kind) Adds an individual in a specific role to this situation.voidDirectly adds a role to this situation.booleangetId()Returns the unique identifier of this entity.Deprecated.Returns the position of this entity.getRoles()Returns an unmodifiable set of roles currently participating in this situation.Returns the traits map for this entity.inthashCode()voidremoveParticipant(Role role) Removes a role participant from the situation.voidsetPosition(Place place) toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
Situation
Creates a new social situation.- Parameters:
name- the identifying name of the situationcomments- descriptive details about the situation- Throws:
NullPointerException- if any argument is nullIllegalArgumentException- if name is empty
-
-
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
-
getPosition
Description copied from interface:PositionedReturns the position of this entity.- Specified by:
getPositionin interfacePositioned<Place>- Returns:
- the position.
-
setPosition
-
getRoles
-
addParticipant
Adds an individual in a specific role to this situation.- Parameters:
individual- the individual participatingroleName- the name of the role assumedkind- the archetypal classification of the role- Returns:
- the created role instance
- Throws:
NullPointerException- if individual, roleName or kind is null
-
addParticipant
Deprecated.Legacy method for integer-based role kinds. -
addRole
Directly adds a role to this situation.- Parameters:
role- the role to add
-
removeParticipant
Removes a role participant from the situation.- Parameters:
role- the role to remove- Throws:
NullPointerException- if role is null
-
getIdentification
Deprecated. -
toString
-
equals
-
hashCode
-