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.
Difference between revisions of "Vorto / Describing Devices / Information Models"
< Vorto | Describing Devices
(Created page with "Information Models") |
m |
||
(2 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
− | Information Models | + | Information Models are descriptions of real-world devices. Vorto provides a DSL that allows for easily creating such Information Models. The examples below show how the DSL looks like: |
+ | |||
+ | '''Example: Color Lamp''' | ||
+ | namespace vorto.examples.infomodels | ||
+ | version 1.0.0 | ||
+ | using vorto.examples.functionblocks.Dimmer; 1.0.0 | ||
+ | using vorto.examples.functionblocks.RGBColorPicker; 1.0.0 | ||
+ | using vorto.examples.functionblocks.Switch; 1.0.0 | ||
+ | |||
+ | infomodel Color_Lamp { | ||
+ | displayname "Color_Lamp" | ||
+ | description "Information model for a Color Lamp" | ||
+ | category example | ||
+ | |||
+ | functionblocks { | ||
+ | dimmer as Dimmer | ||
+ | colorpicker as RGBColorPicker | ||
+ | switch as Switch | ||
+ | } | ||
+ | } |
Latest revision as of 21:10, 9 July 2015
Information Models are descriptions of real-world devices. Vorto provides a DSL that allows for easily creating such Information Models. The examples below show how the DSL looks like:
Example: Color Lamp
namespace vorto.examples.infomodels version 1.0.0 using vorto.examples.functionblocks.Dimmer; 1.0.0 using vorto.examples.functionblocks.RGBColorPicker; 1.0.0 using vorto.examples.functionblocks.Switch; 1.0.0 infomodel Color_Lamp { displayname "Color_Lamp" description "Information model for a Color Lamp" category example functionblocks { dimmer as Dimmer colorpicker as RGBColorPicker switch as Switch } }