public class DriverEvent extends AbstractEvent<DriverEvent.Type,Driver>
Modifier and Type | Class and Description |
---|---|
static class |
DriverEvent.Type
Type of driver events.
|
Constructor and Description |
---|
DriverEvent(DriverEvent.Type type,
Driver driver)
Creates an event of a given type and for the specified driver and the
current time.
|
DriverEvent(DriverEvent.Type type,
Driver driver,
long time)
Creates an event of a given type and for the specified driver and time.
|
Modifier and Type | Method and Description |
---|---|
String |
toString() |
subject, time, type
public DriverEvent(DriverEvent.Type type, Driver driver)
type
- device event typedriver
- event driver subjectpublic DriverEvent(DriverEvent.Type type, Driver driver, long time)
type
- device event typedriver
- event driver subjecttime
- occurrence timepublic String toString()
toString
in class AbstractEvent<DriverEvent.Type,Driver>