Class Event

  • All Implemented Interfaces:
    java.io.Serializable
    Direct Known Subclasses:
    DataTransferEvent, StateTransitionEvent

    public class Event
    extends java.lang.Object
    implements java.io.Serializable
    Class for all generic event that contains timestamp at the moment.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Event​(long timestamp)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getTimestamp()
      Get timestamp.
      void setTimestamp​(long timestamp)
      Set timestamp.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Event

        public Event​(long timestamp)
        Constructor.
        Parameters:
        timestamp - timestamp in millisecond.
    • Method Detail

      • getTimestamp

        public final long getTimestamp()
        Get timestamp.
        Returns:
        timestamp.
      • setTimestamp

        public final void setTimestamp​(long timestamp)
        Set timestamp.
        Parameters:
        timestamp - timestamp in millisecond.