Class SociologicalFamily
java.lang.Object
org.episteme.natural.biology.SocialEntity
org.episteme.natural.biology.SocialCollective<Person>
org.episteme.natural.biology.ecology.Population<Person>
org.episteme.social.sociology.SociologicalGroup
org.episteme.social.sociology.SociologicalFamily
- All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, SimulationAgent
Represents a SociologicalFamily unit within the social structure.
Extends the basic
SociologicalGroup to model specific familial relationships like parents and children.
* @version 1.2- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
Fields inherited from class SocialCollective
cohesion, leader, members -
Constructor Summary
ConstructorsConstructorDescriptionSociologicalFamily(String familyName) Creates a new SociologicalFamily with the given SociologicalFamily name. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a child to the SociologicalFamily unit.Returns an unmodifiable list of children in the SociologicalFamily.intSimple measure of generational depth within this specific unit.intReturns the number of children in this SociologicalFamily unit.Returns the primary parent.Returns the secondary parent.Returns a list containing all defined parents.voidsetParent1(Person parent) Sets the primary parent of the SociologicalFamily.voidsetParent2(Person parent) Sets the secondary parent of the SociologicalFamily.Methods inherited from class SociologicalGroup
assignRole, getInternalRoles, getKind, getRole, processEvent, setKind, toStringMethods inherited from class Population
addMember, countAlive, countBySex, countByStage, equals, filter, getAgeDistribution, getAverageAge, getAverageFecundity, getFounders, getIndividuals, getLocation, getOldestAge, getPosition, getSexRatio, getSpecies, getTerritory, getYoungestAge, hashCode, setIndividuals, setTerritory, sizeMethods inherited from class SocialCollective
getCohesion, getLeader, getMembers, removeMember, setCohesion, setLeaderMethods inherited from class SocialEntity
getEngine, getId, getInfluence, getPrestige, getSimId, getTraits, interact, setEngine, setInfluence, setPrestigeMethods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Constructor Details
-
SociologicalFamily
Creates a new SociologicalFamily with the given SociologicalFamily name.- Parameters:
familyName- the surname or name identifying the SociologicalFamily unit
-
-
Method Details
-
setParent1
Sets the primary parent of the SociologicalFamily.- Parameters:
parent- the parent person
-
setParent2
Sets the secondary parent of the SociologicalFamily.- Parameters:
parent- the parent person
-
addChild
Adds a child to the SociologicalFamily unit.- Parameters:
child- the child person
-
getParent1
-
getParent2
-
getChildren
-
getParents
-
getNumChildren
public int getNumChildren()Returns the number of children in this SociologicalFamily unit.- Returns:
- child count
-
getGenerationCount
public int getGenerationCount()Simple measure of generational depth within this specific unit.- Returns:
- 2 if children exist, 1 otherwise
-