public class HierarchyEvent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ATTACHED
This constant defines an event type indicating
that a parent-sub relation between control units has appeared.
|
static int |
DETACHED
This constant defines an event type indicating
that a parent-sub relation between control units has disappeared.
|
| Constructor and Description |
|---|
HierarchyEvent(java.lang.String deviceType,
java.lang.String deviceId,
int eventType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String parentType,
java.lang.String parentId)
Constructs a hierarchy event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getControlUnitId()
Returns id of the sub control unit.
|
java.lang.String |
getControlUnitType()
Returns type of the sub control unit.
|
java.lang.String |
getDeviceId()
Returns id of the device on which the event has occurred.
|
java.lang.String |
getDeviceType()
Returns type of the device on which the event has occurred.
|
int |
getEventType()
|
java.lang.String |
getParentId()
Returns id of the parent control unit.
|
java.lang.String |
getParentType()
Returns type of the parent control unit.
|
java.lang.String |
toString() |
public static final int DETACHED
public static final int ATTACHED
public HierarchyEvent(java.lang.String deviceType,
java.lang.String deviceId,
int eventType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String parentType,
java.lang.String parentId)
deviceType - type of the device on which the event has occurred.deviceId - id of the device on which the event has occurred.eventType - type of the eventcontrolUnitType - type of the sub control unitcontrolUnitId - id of the sub control unitparentType - type of the parent control unitparentId - id of the parent control unitjava.lang.IllegalArgumentException - when some of deviceType, deviceId, controlUnitType or controlUnitId parameters is null.public java.lang.String getControlUnitId()
public java.lang.String getControlUnitType()
public int getEventType()
public java.lang.String getDeviceId()
public java.lang.String getDeviceType()
public java.lang.String getParentId()
public java.lang.String getParentType()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.