Class Event
java.lang.Object
Event
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the ID of the event.Returns the position that the event occurred.intReturns the time that the event occurred.toString()Returns a String representation of the Event object.
-
Constructor Details
-
Event
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
Returns the position that the event occurred.- Returns:
- the position that the event occurred.
-
getIdOfEvent
Returns the ID of the event.- Returns:
- the ID of the event.
-
toString
Returns a String representation of the Event object.
-