public class Timetable.Event
extends java.lang.Object
implements java.util.concurrent.Delayed
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD |
static int |
REMOVE |
static int |
UPDATE |
| Constructor and Description |
|---|
Timetable.Event(int t,
int id,
float x,
float y,
long d)
Constructs a new Event.
|
Timetable.Event(int t,
int id,
long d)
Constructs a new Event.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.util.concurrent.Delayed d)
Compares delay values for Events.
|
long |
getDelay(java.util.concurrent.TimeUnit unit)
Gets the delay value for this Event.
|
long |
getDelayValue()
Gets the absolute delay value.
|
int |
getID()
Gets the ID associated with this Event.
|
int |
getType()
Gets the type for this Event.
|
float |
getX()
Gets the X value associated with this Event.
|
float |
getY()
Gets the Y value associated with this Event.
|
public static final int ADD
public static final int UPDATE
public static final int REMOVE
public Timetable.Event(int t,
int id,
float x,
float y,
long d)
t - the event typeid - the event identifierx - the x value of the eventy - the y value of the eventd - the delay value for the eventpublic Timetable.Event(int t,
int id,
long d)
t - the event typeid - the event identifierd - the delay value for the eventpublic int compareTo(java.util.concurrent.Delayed d)
compareTo in interface java.lang.Comparable<java.util.concurrent.Delayed>d - a Delayed objectpublic long getDelay(java.util.concurrent.TimeUnit unit)
getDelay in interface java.util.concurrent.Delayedunit - TimeUnit for the delaypublic long getDelayValue()
public int getType()
public int getID()
public float getX()
public float getY()