public class DefaultDeviceEvent extends AbstractModelEvent<Device,DeviceEvent.Type> implements DeviceEvent
DeviceEvent
DeviceEvent.Type
E_NULL_SUBJECT
Constructor and Description |
---|
DefaultDeviceEvent(DeviceEvent.Type type,
Device subject,
Interface netInterface)
Constructs a device event with the given type, device and optionally
network interface.
|
Modifier and Type | Method and Description |
---|---|
Interface |
netInterface()
Returns the interface related to the event, if applicable.
|
String |
toString() |
subject
time, ts, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
subject
ts, type
public DefaultDeviceEvent(DeviceEvent.Type type, Device subject, Interface netInterface)
type
- the type of eventsubject
- the device associated with the eventnetInterface
- optional network interface associated with the eventpublic Interface netInterface()
DeviceEvent
netInterface
in interface DeviceEvent
public String toString()
toString
in class AbstractTypedEvent<DeviceEvent.Type>
Copyright © 2015. All Rights Reserved.