Class TimeEvent
java.lang.Object
java.util.EventObject
org.episteme.social.history.clock.TimeEvent
- All Implemented Interfaces:
Serializable
An event indicating a change or occurrence in a time simulation or tracking system.
This is primarily used by the
TimeServer to notify listeners of tick updates.
* @version 1.1- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intType ID for a generic time change event.Fields inherited from class EventObject
source -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class EventObject
getSource
-
Field Details
-
TIME_CHANGED
public static final int TIME_CHANGEDType ID for a generic time change event.- See Also:
-
-
Constructor Details
-
TimeEvent
Constructs a new TimeEvent.- Parameters:
source- the server producing the eventtime- the chronological stateid- type identifier- Throws:
NullPointerException- if source or time is null
-
-
Method Details
-
paramString
Returns a string representation of the event type.- Returns:
- a descriptive string for the event ID
-
getTimeServer
Returns the server that originated the event.- Returns:
- the time server
-
getTime
-
getID
public int getID()Returns the event identifier.- Returns:
- the type ID
-
toString
- Overrides:
toStringin classEventObject
-