Class InteractionEvent

  • All Implemented Interfaces:
    Serializable

    public class InteractionEvent
    extends EventObject
    Interaction event.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Timestamp

        protected Date m_Timestamp
        the timestamp.
      • m_ID

        protected String m_ID
        the ID.
    • Constructor Detail

      • InteractionEvent

        public InteractionEvent​(InteractionLogManager source,
                                Date timestamp,
                                String id)
        Constructs the event.
        Parameters:
        source - the log manager that generated the event
        timestamp - the timestamp of the event
        id - the ID/type of the event
        Throws:
        IllegalArgumentException - if source is null
      • InteractionEvent

        public InteractionEvent​(InteractionLogManager source,
                                Date timestamp,
                                String id,
                                Map<String,​Object> data)
        Constructs the event.
        Parameters:
        source - the log manager that generated the event
        timestamp - the timestamp of the event
        id - the ID/type of the event
        data - optional data associated with the event, can be null
        Throws:
        IllegalArgumentException - if source is null
    • Method Detail

      • getLogManager

        public InteractionLogManager getLogManager()
        Returns the log manager that generated the source.
        Returns:
        the panel
      • getTimestamp

        public Date getTimestamp()
        Returns the timestamp of the event.
        Returns:
        the timestamp
      • getID

        public String getID()
        Returns the ID/type of the event.
        Returns:
        the ID/type
      • getData

        public Map<String,​Object> getData()
        Returns the associated data.
        Returns:
        the data, null if none available
      • toString

        public String toString()
        Short representation of the event.
        Overrides:
        toString in class EventObject
        Returns:
        the representation