public class ControlUnitEvent
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONTROL_UNIT_ADDED
This constant defines an event type indicating
that a control unit has been added.
|
static int |
CONTROL_UNIT_REMOVED
This constant defines an event type indicating
that a control unit has been removed.
|
static int |
CONTROL_UNIT_TYPE_APPEARED
This constant defines an event type indicating
that a control unit type has been appeared.
|
static int |
CONTROL_UNIT_TYPE_DISAPPEARED
This constant defines an event type indicating
that a control unit type has been disappeared.
|
| Constructor and Description |
|---|
ControlUnitEvent(int eventType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String deviceType,
java.lang.String deviceId)
Constructs control unit event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getControlUnitId()
Returns id of the control unit.
|
java.lang.String |
getControlUnitType()
Returns control unit type.
|
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()
Returns the event type:
CONTROL_UNIT_ADDED, CONTROL_UNIT_REMOVED,
CONTROL_UNIT_TYPE_APPEARED or CONTROL_UNIT_TYPE_DISAPPEARED. |
java.lang.String |
toString() |
public static final int CONTROL_UNIT_ADDED
public static final int CONTROL_UNIT_REMOVED
public static final int CONTROL_UNIT_TYPE_APPEARED
public static final int CONTROL_UNIT_TYPE_DISAPPEARED
public ControlUnitEvent(int eventType,
java.lang.String controlUnitType,
java.lang.String controlUnitId,
java.lang.String deviceType,
java.lang.String deviceId)
eventType - event typecontrolUnitType - control unit typecontrolUnitId - control unit iddeviceType - device typedeviceId - device idpublic java.lang.String getControlUnitId()
CONTROL_UNIT_ADDED or CONTROL_UNIT_REMOVED,
null otherwise.public java.lang.String getControlUnitType()
public int getEventType()
CONTROL_UNIT_ADDED, CONTROL_UNIT_REMOVED,
CONTROL_UNIT_TYPE_APPEARED or CONTROL_UNIT_TYPE_DISAPPEARED.public java.lang.String getDeviceId()
public java.lang.String getDeviceType()
public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2019 Bosch Software Innovations GmbH. All Rights Reserved.