Class Celebration

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

public class Celebration extends WorkSituation
Represents a cultural or religious celebration (feast, rite of passage, festival). Celebrations are specialized social situations with identifying motives and designated participants. * @version 2.0
Since:
1.0
Author:
Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
See Also:
  • Constructor Details

    • Celebration

      public Celebration(String name, String comments, CelebrationKind kind, Date date)
      Creates a new Celebration.
      Parameters:
      name - the name of the festival or event
      comments - descriptive details
      kind - the category of celebration
      date - the scheduled occurrence date
      Throws:
      NullPointerException - if mandatory arguments are null
    • Celebration

      public Celebration(String name)
      Legacy constructor.
  • Method Details

    • getPosition

      public Place getPosition()
      Description copied from interface: Positioned
      Returns the position of this entity.
      Specified by:
      getPosition in interface Positioned<Place>
      Overrides:
      getPosition in class Situation
      Returns:
      the position.
    • setPosition

      public void setPosition(Place place)
      Overrides:
      setPosition in class Situation
    • getKind

      public CelebrationKind getKind()
      Returns the categorical kind of this celebration.
      Returns:
      the celebration kind
    • setKind

      public void setKind(CelebrationKind kind)
    • getDate

      public Date getDate()
      Returns the date when the celebration occurs.
      Returns:
      the occurrence date
    • setDate

      public void setDate(Date date)
    • toString

      public String toString()
      Overrides:
      toString in class Situation