Class WorkSituation
java.lang.Object
org.episteme.social.sociology.Situation
org.episteme.social.economics.EconomicSituation
org.episteme.social.economics.WorkSituation
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>
- Direct Known Subclasses:
Celebration, LawSuitSituation, MedicalSituation
Represents a work situation where individuals interact around a common
economic activity, typically at dedicated workplaces.
This class extends EconomicSituation to model employment
relationships and workplace dynamics. Use this class when you need
finer control over work-related situations than provided by
org.episteme.social.sociology.Situations.WORKING.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDirectly adds a role to this situation.voidaddWorker(Individual individual, String function, Organization organization) Adds an individual as a worker to this work situation.Methods inherited from class EconomicSituation
addEconomicAgentMethods inherited from class Situation
addParticipant, addParticipant, equals, getId, getIdentification, getPosition, getRoles, getTraits, hashCode, removeParticipant, setPosition, toStringMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
WorkSituation
Creates a new work situation.Use the organization name (or a part of it for large organizations) as the situation name for clarity.
- Parameters:
name- the name of the work situation, typically the organization name.comments- additional comments or description of this work situation.
-
-
Method Details
-
addWorker
Adds an individual as a worker to this work situation.This method creates a new
Workerrole for the individual and associates them with the specified function and organization.- Parameters:
individual- the individual to add as a worker.function- the job function or role title of the worker.organization- the organization employing the worker.
-
addRole
Directly adds a role to this situation.- Overrides:
addRolein classEconomicSituation- Parameters:
role- the role to add
-