T - public abstract class Event<T extends eu.vicci.process.devices.core.Device> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected T |
device |
protected eu.vicci.process.devices.events.core.EventType |
eventType |
protected String |
location |
protected long |
timestamp |
protected String |
uid |
| Constructor and Description |
|---|
Event(eu.vicci.process.devices.events.core.EventType eventType,
long timestamp,
T device) |
| Modifier and Type | Method and Description |
|---|---|
T |
getDevice()
gets the device which triggers the event
|
String |
getDeviceLocation() |
String |
getDeviceUid() |
eu.vicci.process.devices.events.core.EventType |
getEventType()
Gets the EventType
|
long |
getTimestamp() |
String |
getTypeName()
the name of the event (e.g.
|
protected long timestamp
protected T extends eu.vicci.process.devices.core.Device device
protected eu.vicci.process.devices.events.core.EventType eventType
protected String uid
protected String location
public Event(eu.vicci.process.devices.events.core.EventType eventType,
long timestamp,
T device)
eventType - the type of the eventtimestamp - device - the device which triggers the eventpublic String getTypeName()
public eu.vicci.process.devices.events.core.EventType getEventType()
public long getTimestamp()
public T getDevice()
public String getDeviceLocation()
public String getDeviceUid()
Copyright © 2018. All rights reserved.