chore(deps): update dependency io.github.wldt:wldt-core to v0.4.0 #5
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.3.0
->0.4.0
Release Notes
wldt/wldt-core-java (io.github.wldt:wldt-core)
v0.4.0
New Features
WldtEventObserver
A new class called
WldtEventObserver
has been introduced to allow a simplified observation of target specific events generated by the Digital Twin and its components such as adapters and the model. Main mapped events and filters are:For each event type dedicated observation and un-observation methods (e.g.,
observePhysicalAssetEvents()
andunObservePhysicalAssetEvents()
) are available in order to create an instance of the observer and decide which events to receive.To build a
WldtEventObserver
a dedicated listenerIWldtEventObserverListener
should be implemented by the developer to receive the callbacks related to the incoming events. All the events are of the generic typeWldtEvent
and it is up to the developer the validate and check the received object and if it match with the expected one.The
WldtEventObserver
has been currently used internally within the library to simplify the implementation and usage of the Storage Layer and the associated Storage Query System as described in the dedicated sections.Storage Layer
A new storage layer has been integrated into the core WLDT library, enabling Digital Twins (DTs) to store data related to the evolution of their state, generated events, and any variations involving properties, events, actions, relationships, and life cycle. The Storage Layer consists of two main components:
The storage layer is designed for easy extension, allowing developers to create and share new storage layers (e.g., using Redis, MySQL, or MongoDB). The provided in-memory implementation serves only for basic development and testing purposes. Similarly, the Query Manager can be extended and customized by developers to implement additional query management features or to enhance the default functionalities provided by the library.
Migration Info: 0.3.0 - 0.4.0
PhysicalAssetRelationship
constructor has also thetype
in order to match theDigitalTwinStateRelationship
and simplify its managementnotifyDigitalTwinStateEvent
throws only the ExceptionWldtDigitalTwinStateEventNotificationException
whileEventBusException
has been removedAdditional Improvements & Fixed Bugs
WldtEventBus
now supports the use of topics Wildcard (at the moment only multi-level with the character*
). For example with this approach is possible to subscribe to all the events associated to property variations (topic:dt.physical.event.property.*
). New methods added toWldtEventBus
are:matchWildCardType(String eventType, String filterType)
: Check if the provided event type match the WildCard TypeisWildCardType(String filterEventType)
: Check if the provided event type is a WildCard TypeWldtEventTypes
has been introduced to contain all the event types in the WLDT Framework and support internal message exchange. Includes types for events associated and adopted by: i) Physical Adapters; ii) Model and Shadowing Function; and iii) Digital Adapters.EventManager
class has been added to centralize and simplify the event management in the WLDT Framework providing a set of static methods to publish events associated to a target digital twin and publisher (e.g., the physical adapter of the twin).PhysicalAssetRelationship
class has also thetype
in order to match theDigitalTwinStateRelationship
and simplify its managementModelEngine
has been renamed intoDigitalTwinModel
as an initial update for further development of the next version 0.5.0 where the structure of the DT's Model and the associated classes will be improvedConfiguration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.