Package org.openhab.core.thing.events
Class ThingStatusInfoChangedEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.thing.events.ThingStatusInfoChangedEvent
- All Implemented Interfaces:
 Event
ThingStatusInfoChangedEvents will be delivered through the openHAB event bus if the status of a
 thing has changed. Thing status info objects must be created with the ThingEventFactory.- Author:
 - Dennis Nobel - Initial contribution
 
- 
Field Summary
Fields - 
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedThingStatusInfoChangedEvent(String topic, String payload, ThingUID thingUID, ThingStatusInfo newThingStatusInfo, ThingStatusInfo oldThingStatusInfo) Creates a new thing status event object. - 
Method Summary
Methods inherited from class org.openhab.core.events.AbstractEvent
equals, getPayload, getSource, getTopic, hashCode 
- 
Field Details
- 
TYPE
The thing status event type. 
 - 
 - 
Constructor Details
- 
ThingStatusInfoChangedEvent
protected ThingStatusInfoChangedEvent(String topic, String payload, ThingUID thingUID, ThingStatusInfo newThingStatusInfo, ThingStatusInfo oldThingStatusInfo) Creates a new thing status event object.- Parameters:
 topic- the topicpayload- the payloadthingUID- the thing UIDnewThingStatusInfo- the thing status info objectoldThingStatusInfo- the old thing status info object
 
 - 
 - 
Method Details
- 
getType
Description copied from interface:EventGets the event type.- Returns:
 - the event type
 
 - 
getThingUID
Gets the thing UID.- Returns:
 - the thing UID
 
 - 
getStatusInfo
Gets the thing status info.- Returns:
 - the thing status info
 
 - 
getOldStatusInfo
Gets the old thing status info.- Returns:
 - the old thing status info
 
 - 
toString
 
 -