Class Event
java.lang.Object
org.episteme.social.history.Event
- All Implemented Interfaces:
Serializable, Comparable<Event>, Commented, ComprehensiveIdentification, Identified<Identification>, Named, Temporal<TimeCoordinate>
- Direct Known Subclasses:
GeologicalEra, HistoricalEra, HistoricalEvent, Performance, PositionedEvent
public class Event
extends Object
implements ComprehensiveIdentification, Temporal<TimeCoordinate>, Comparable<Event>
Represents a significant historical or scientific event.
Base class focusing on the temporal aspect of an event.
Implements ComprehensiveIdentification to support dynamic traits and consistent identity.
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final EventCategoryprotected final Identificationprotected final TimeCoordinate -
Constructor Summary
ConstructorsConstructorDescriptionEvent(String name, String description, TimeCoordinate when, EventCategory category) Event(String name, TimeCoordinate when) -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetId()Returns the unique identifier of this entity.Returns the traits map for this entity.getWhen()Returns the temporal position (when) of this entity.booleanhappensAfter(Event other) booleanhappensBefore(Event other) inthashCode()toString()Methods inherited from interface Commented
getComments, getTrait, setCommentsMethods inherited from interface ComprehensiveIdentification
getName, getTrait, setName, setTrait
-
Field Details
-
id
-
traits
-
when
-
category
-
-
Constructor Details
-
Event
-
Event
-
-
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
-
getDescription
-
getWhen
Description copied from interface:TemporalReturns the temporal position (when) of this entity.- Specified by:
getWhenin interfaceTemporal<TimeCoordinate>- Returns:
- the temporal position.
-
getCategory
-
happensBefore
-
happensAfter
-
compareTo
- Specified by:
compareToin interfaceComparable<Event>
-
toString
-
equals
-
hashCode
-