public class Event
extends java.lang.Object
Constructor and Description |
---|
Event(int id,
int timestamp,
Position pos)
Constructor for an event,
|
Modifier and Type | Method and Description |
---|---|
int |
getId()
Returns the event's id.
|
Position |
getPosition()
Returns the event's position.
|
int |
getTimestamp()
Returns the event's timestamp.
|
java.lang.String |
toString()
Generates a string of text from an event.
|
public Event(int id, int timestamp, Position pos)
id
- the event's id.timestamp
- the event's timestamp.public java.lang.String toString()
toString
in class java.lang.Object
public int getId()
public Position getPosition()
public int getTimestamp()