public abstract class Event extends Object
Modifier and Type | Method and Description |
---|---|
abstract <T extends Event> |
createOff(long offTime)
Creates a new off event of the same type and slot with the specified
timestamp.
|
int |
getChannel()
Gets the channel on which this event occurs.
|
abstract Slot |
getSlot()
Gets a slot that uniquely identifies which interval events belong to.
|
long |
getTime()
Gets the time in microseconds at which this event occurs.
|
abstract boolean |
isOn()
Gets if this event is an off to on transition.
|
String |
toString() |
public long getTime()
public int getChannel()
The channel value ranges from 0 to 15, inclusive.
public abstract boolean isOn()
Note that an event can transition from off to on multiple times before an on to off transition occurs.
public abstract Slot getSlot()
Equal slots are events occurring for the same channel and key.
public abstract <T extends Event> T createOff(long offTime)
T
- the type of the created event, must be the same as the
declaring class.offTime
- the off time of the created event measured in microsecondsCopyright © 2015 Kreatious LLC. All rights reserved.