Class SociologicalFamily

All Implemented Interfaces:
Serializable, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Positioned<Place>, SimulationAgent

public class SociologicalFamily extends SociologicalGroup
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:
  • Constructor Details

    • SociologicalFamily

      public SociologicalFamily(String familyName)
      Creates a new SociologicalFamily with the given SociologicalFamily name.
      Parameters:
      familyName - the surname or name identifying the SociologicalFamily unit
  • Method Details

    • setParent1

      public void setParent1(Person parent)
      Sets the primary parent of the SociologicalFamily.
      Parameters:
      parent - the parent person
    • setParent2

      public void setParent2(Person parent)
      Sets the secondary parent of the SociologicalFamily.
      Parameters:
      parent - the parent person
    • addChild

      public void addChild(Person child)
      Adds a child to the SociologicalFamily unit.
      Parameters:
      child - the child person
    • getParent1

      public Person getParent1()
      Returns the primary parent.
      Returns:
      parent1
    • getParent2

      public Person getParent2()
      Returns the secondary parent.
      Returns:
      parent2
    • getChildren

      public List<Person> getChildren()
      Returns an unmodifiable list of children in the SociologicalFamily.
      Returns:
      the children list
    • getParents

      public List<Person> getParents()
      Returns a list containing all defined parents.
      Returns:
      list of parents
    • 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