public class Event extends PropertyContainer implements Comparable<Event>
| Constructor and Description |
|---|
Event(float time,
String timeUnit)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Event o)
Compares this object with the specified object for order.
|
float |
getTime()
Return the time at which the event occurs
|
String |
getTimeUnit()
Return the unit of the event time
|
void |
setTime(float time)
Set the time at which the event occurs
|
void |
setTimeUnit(String timeUnit)
Set the unit of the event time
|
clone, getAllProperties, getProperty, hasProperty, removeProperty, setPropertypublic Event(float time,
String timeUnit)
time - The time at which the event occurstimeUnit - The unit of time values.public float getTime()
public void setTime(float time)
time - public String getTimeUnit()
public void setTimeUnit(String timeUnit)
timeUnit - the unit of timepublic int compareTo(Event o)
compareTo in interface Comparable<Event>