public class DeviceEvent extends AbstractEvent<DeviceEvent.Type,Device>
| Modifier and Type | Class and Description |
|---|---|
static class |
DeviceEvent.Type
Type of device events.
|
| Constructor and Description |
|---|
DeviceEvent(DeviceEvent.Type type,
Device device)
Creates an event of a given type and for the specified device and the
current time.
|
DeviceEvent(DeviceEvent.Type type,
Device device,
Port port)
Creates an event of a given type and for the specified device, port
and the current time.
|
DeviceEvent(DeviceEvent.Type type,
Device device,
Port port,
long time)
Creates an event of a given type and for the specified device and time.
|
| Modifier and Type | Method and Description |
|---|---|
Port |
port()
Returns the port subject.
|
String |
toString() |
subject, time, typepublic DeviceEvent(DeviceEvent.Type type, Device device)
type - device event typedevice - event device subjectpublic DeviceEvent(DeviceEvent.Type type, Device device, Port port)
type - device event typedevice - event device subjectport - optional port subjectpublic DeviceEvent(DeviceEvent.Type type, Device device, Port port, long time)
type - device event typedevice - event device subjectport - optional port subjecttime - occurrence timepublic Port port()
public String toString()
toString in class AbstractEvent<DeviceEvent.Type,Device>