Class Event


public class Event extends Object
  • Constructor Details

    • Event

      public Event(int timeOfEvent, Position positionOfEvent, String idOfEvent)
      Constructor to initialize variables.
      Parameters:
      timeOfEvent - the time of event.
      positionOfEvent - the position of event.
      idOfEvent - the id of the event.
  • Method Details

    • getTimeOfEvent

      public int getTimeOfEvent()
      Returns the time that the event occurred.
      Returns:
      the time that the event occurred.
    • getPositionOfEvent

      public Position getPositionOfEvent()
      Returns the position that the event occurred.
      Returns:
      the position that the event occurred.
    • getIdOfEvent

      public String getIdOfEvent()
      Returns the ID of the event.
      Returns:
      the ID of the event.
    • toString

      public String toString()
      Returns a String representation of the Event object.
      Overrides:
      toString in class Object
      Returns:
      a String representation of the Event object.