Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Vorto / Meta Information Model / Discussion / DAL
This page contains information about the relation between the Vorto Meta Model and the OSGi DAL.
OSGi Device Abstraction Layer
OSGi Device Abstraction Layer (DAL) has been released with the Release 6 of the OSGi Residential Specification. It provides an unified device representation, where the applications don't need to take care about the protocol specifics. Because of this unification, it can be easily mapped to the generic Vorto meta information model.
DAL introduces two main items:
- Device - contains details about the physical device like serial number, model, vendor etc. It's registered as a service in the OSGi service registry.
- Function - contains a specific device functionality like on/off, temperature reporting etc. Similar to the device, it's registered as a service in the OSGi service registry.
OSGi Device Mapping
This mapping is relatively simple, because the device is described with a set of properties. The Vorto Function Block properties can be mapped to the OSGi Device properties.
OSGi Device Function Mapping
OSGi Device Function has a set of properties and operations. The properties can be readable, writable and eventable. In additional, they can be described with metadata. The property value can be measured in a given unit, can have min value, max value etc. An exemplary mapping is:
|Function Block Property
|Function Property Access
|No direct mapping, it can be simulated.
|Function Property Metadata
|Function Block Property Data Type.
|Function Block Events Property 
|Function Block Operation
- OSGi Function property access can be readable - there is a getter to provide the property value, writable - there is a setter to set the value, eventable - events can be reported. Getter and setter can be mapped to Vorto Function Block operations, while the event can be mapped as a Vorto property in the "events" section.
- OSGi Function property can be described with min, max etc. Some of these parameters are supported by the Vorto data types, some are missing.