Package org.openhab.core.items.events
Class GroupItemStateChangedEvent
java.lang.Object
org.openhab.core.events.AbstractEvent
org.openhab.core.items.events.ItemEvent
org.openhab.core.items.events.ItemStateChangedEvent
org.openhab.core.items.events.GroupItemStateChangedEvent
- All Implemented Interfaces:
Event
GroupItemStateChangedEvents can be used to deliver group item state changes through the openHAB event bus. In
contrast to the GroupStateUpdatedEvent the GroupItemStateChangedEvent is only sent if the state
changed.
State events must be created with the ItemEventFactory.- Author:
- Christoph Knauf - Initial contribution
-
Field Summary
FieldsFields inherited from class org.openhab.core.items.events.ItemStateChangedEvent
itemState, lastStateChange, lastStateUpdate, oldItemStateFields inherited from class org.openhab.core.events.AbstractEvent
ACTOR_SEPARATOR, DELEGATION_SEPARATOR -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedGroupItemStateChangedEvent(String topic, String payload, String itemName, String memberName, State newItemState, State oldItemState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange) -
Method Summary
Methods inherited from class org.openhab.core.items.events.ItemStateChangedEvent
getItemState, getLastStateChange, getLastStateUpdate, getOldItemStateMethods inherited from class org.openhab.core.items.events.ItemEvent
getItemNameMethods inherited from class org.openhab.core.events.AbstractEvent
buildDelegatedSource, buildDelegatedSource, buildSource, equals, getPayload, getSource, getTopic, hashCode
-
Field Details
-
TYPE
The group item state changed event type.
-
-
Constructor Details
-
GroupItemStateChangedEvent
protected GroupItemStateChangedEvent(String topic, String payload, String itemName, String memberName, State newItemState, State oldItemState, @Nullable ZonedDateTime lastStateUpdate, @Nullable ZonedDateTime lastStateChange)
-
-
Method Details
-
getMemberName
- Returns:
- the name of the changed group member
-
getType
Description copied from interface:EventGets the event type.- Specified by:
getTypein interfaceEvent- Overrides:
getTypein classItemStateChangedEvent- Returns:
- the event type
-
toString
- Overrides:
toStringin classItemStateChangedEvent
-