Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated all com.bosch.iot.suite.edge.services.fim namespaced Vorto m…
…odels. Signed-off-by: Ivo Karabashev Ivo.Karabashev@bosch.io
- Loading branch information
Ivo Karabashev
authored and
Ivo Karabashev
committed
Apr 22, 2021
1 parent
9fd0915
commit 1a7ec3b
Showing
21 changed files
with
1,667 additions
and
0 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
models/com.bosch.iot.suite.edge.services.fim-FunctionalItem-1.0.0.fbmodel/COPYRIGHT.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Copyright (C) 2020 Bosch.IO GmbH |
19 changes: 19 additions & 0 deletions
19
...ls/com.bosch.iot.suite.edge.services.fim-FunctionalItem-1.0.0.fbmodel/model.functionblock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
vortolang 1.0 | ||
|
||
namespace com.bosch.iot.suite.edge.services.fim | ||
version 1.0.0 | ||
displayname "Functional Item" | ||
|
||
functionblock FunctionalItem { | ||
configuration { | ||
mandatory name as string with { | ||
readable : true,writable : true,eventable : true | ||
} | ||
|
||
mandatory multiple tags as string with { | ||
readable : true,writable : true,eventable : true | ||
} | ||
|
||
} | ||
|
||
} |
77 changes: 77 additions & 0 deletions
77
models/com.bosch.iot.suite.edge.services.fim-FunctionalItem-1.0.0.fbmodel/model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"root" : { | ||
"name" : "FunctionalItem", | ||
"namespace" : "com.bosch.iot.suite.edge.services.fim", | ||
"version" : "1.0.0", | ||
"prettyFormat" : "com.bosch.iot.suite.edge.services.fim:FunctionalItem:1.0.0" | ||
}, | ||
"models" : { | ||
"com.bosch.iot.suite.edge.services.fim:FunctionalItem:1.0.0" : { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"vortolang" : "1.0", | ||
"id" : { | ||
"name" : "FunctionalItem", | ||
"namespace" : "com.bosch.iot.suite.edge.services.fim", | ||
"version" : "1.0.0", | ||
"prettyFormat" : "com.bosch.iot.suite.edge.services.fim:FunctionalItem:1.0.0" | ||
}, | ||
"type" : "Functionblock", | ||
"displayName" : "Functional Item", | ||
"description" : null, | ||
"category" : null, | ||
"fileName" : "FunctionalItem.fbmodel", | ||
"modelType" : "FunctionblockModel", | ||
"references" : [ ], | ||
"configurationProperties" : [ { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : true, | ||
"name" : "name", | ||
"description" : null, | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"attributes" : [ { | ||
"type" : "READABLE", | ||
"value" : true | ||
}, { | ||
"type" : "WRITABLE", | ||
"value" : true | ||
}, { | ||
"type" : "EVENTABLE", | ||
"value" : true | ||
} ], | ||
"multiple" : false, | ||
"primitive" : true | ||
}, { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : true, | ||
"name" : "tags", | ||
"description" : null, | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"attributes" : [ { | ||
"type" : "READABLE", | ||
"value" : true | ||
}, { | ||
"type" : "WRITABLE", | ||
"value" : true | ||
}, { | ||
"type" : "EVENTABLE", | ||
"value" : true | ||
} ], | ||
"multiple" : true, | ||
"primitive" : true | ||
} ], | ||
"statusProperties" : [ ], | ||
"faultProperties" : [ ], | ||
"events" : [ ], | ||
"operations" : [ ], | ||
"superType" : null | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
...s/com.bosch.iot.suite.edge.services.fim-FunctionalItemFactory-1.0.0.fbmodel/COPYRIGHT.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Copyright (C) 2020 Bosch.IO GmbH |
22 changes: 22 additions & 0 deletions
22
...bosch.iot.suite.edge.services.fim-FunctionalItemFactory-1.0.0.fbmodel/model.functionblock
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
vortolang 1.0 | ||
|
||
namespace com.bosch.iot.suite.edge.services.fim | ||
version 1.0.0 | ||
displayname "Functional Item Factory" | ||
description "Enables dynamic creation and registration of functional items." | ||
using com.bosch.iot.suite.edge.services.fim.FunctionalItem ; 1.0.0 | ||
|
||
functionblock FunctionalItemFactory extends FunctionalItem { | ||
operations { | ||
mandatory create(itemClass as string "Supported functional item class name.", | ||
itemProperties as dictionary "Initial functional item properties values.") returns dictionary [ string , string ] | ||
"Creates and registers a functional item for a supported interface name and initial properties values." | ||
|
||
mandatory remove(itemUID as string "The UID of a created functional item.") | ||
"Unregisters a functional item created by the factory." | ||
|
||
mandatory getCreationMetadata(itemClass as string "Supported functional item class name.") returns dictionary | ||
"Provides the creation properties metadata of supported functional item class." | ||
} | ||
|
||
} |
240 changes: 240 additions & 0 deletions
240
models/com.bosch.iot.suite.edge.services.fim-FunctionalItemFactory-1.0.0.fbmodel/model.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,240 @@ | ||
{ | ||
"root" : { | ||
"name" : "FunctionalItemFactory", | ||
"namespace" : "com.bosch.iot.suite.edge.services.fim", | ||
"version" : "1.0.0", | ||
"prettyFormat" : "com.bosch.iot.suite.edge.services.fim:FunctionalItemFactory:1.0.0" | ||
}, | ||
"models" : { | ||
"com.bosch.iot.suite.edge.services.fim:FunctionalItemFactory:1.0.0" : { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"vortolang" : "1.0", | ||
"id" : { | ||
"name" : "FunctionalItemFactory", | ||
"namespace" : "com.bosch.iot.suite.edge.services.fim", | ||
"version" : "1.0.0", | ||
"prettyFormat" : "com.bosch.iot.suite.edge.services.fim:FunctionalItemFactory:1.0.0" | ||
}, | ||
"type" : "Functionblock", | ||
"displayName" : "Functional Item Factory", | ||
"description" : "Enables dynamic creation and registration of functional items.", | ||
"category" : null, | ||
"fileName" : "FunctionalItemFactory.fbmodel", | ||
"modelType" : "FunctionblockModel", | ||
"references" : [ ], | ||
"configurationProperties" : [ { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : true, | ||
"name" : "name", | ||
"description" : null, | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"attributes" : [ { | ||
"type" : "READABLE", | ||
"value" : true | ||
}, { | ||
"type" : "WRITABLE", | ||
"value" : true | ||
}, { | ||
"type" : "EVENTABLE", | ||
"value" : true | ||
} ], | ||
"multiple" : false, | ||
"primitive" : true | ||
}, { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : true, | ||
"name" : "tags", | ||
"description" : null, | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"attributes" : [ { | ||
"type" : "READABLE", | ||
"value" : true | ||
}, { | ||
"type" : "WRITABLE", | ||
"value" : true | ||
}, { | ||
"type" : "EVENTABLE", | ||
"value" : true | ||
} ], | ||
"multiple" : true, | ||
"primitive" : true | ||
} ], | ||
"statusProperties" : [ ], | ||
"faultProperties" : [ ], | ||
"events" : [ ], | ||
"operations" : [ { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"name" : "create", | ||
"description" : "Creates and registers a functional item for a supported interface name and initial properties values.", | ||
"result" : { | ||
"type" : { | ||
"key" : "STRING", | ||
"value" : "STRING", | ||
"type" : "dictionary" | ||
}, | ||
"primitive" : false, | ||
"multiple" : true | ||
}, | ||
"params" : [ { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : false, | ||
"name" : "itemClass", | ||
"description" : "Supported functional item class name.", | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"multiple" : false, | ||
"primitive" : true | ||
}, { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : false, | ||
"name" : "itemProperties", | ||
"description" : "Initial functional item properties values.", | ||
"type" : { | ||
"key" : null, | ||
"value" : null, | ||
"type" : "dictionary" | ||
}, | ||
"constraints" : [ ], | ||
"multiple" : false, | ||
"primitive" : false | ||
} ], | ||
"breakable" : false | ||
}, { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"name" : "remove", | ||
"description" : "Unregisters a functional item created by the factory.", | ||
"result" : null, | ||
"params" : [ { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : false, | ||
"name" : "itemUID", | ||
"description" : "The UID of a created functional item.", | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"multiple" : false, | ||
"primitive" : true | ||
} ], | ||
"breakable" : false | ||
}, { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"name" : "getCreationMetadata", | ||
"description" : "Provides the creation properties metadata of supported functional item class.", | ||
"result" : { | ||
"type" : { | ||
"key" : null, | ||
"value" : null, | ||
"type" : "dictionary" | ||
}, | ||
"primitive" : false, | ||
"multiple" : true | ||
}, | ||
"params" : [ { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : false, | ||
"name" : "itemClass", | ||
"description" : "Supported functional item class name.", | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"multiple" : false, | ||
"primitive" : true | ||
} ], | ||
"breakable" : false | ||
} ], | ||
"superType" : { | ||
"name" : "FunctionalItem", | ||
"namespace" : "com.bosch.iot.suite.edge.services.fim", | ||
"version" : "1.0.0", | ||
"prettyFormat" : "com.bosch.iot.suite.edge.services.fim:FunctionalItem:1.0.0" | ||
} | ||
}, | ||
"com.bosch.iot.suite.edge.services.fim:FunctionalItem:1.0.0" : { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"vortolang" : "1.0", | ||
"id" : { | ||
"name" : "FunctionalItem", | ||
"namespace" : "com.bosch.iot.suite.edge.services.fim", | ||
"version" : "1.0.0", | ||
"prettyFormat" : "com.bosch.iot.suite.edge.services.fim:FunctionalItem:1.0.0" | ||
}, | ||
"type" : "Functionblock", | ||
"displayName" : "Functional Item", | ||
"description" : null, | ||
"category" : null, | ||
"fileName" : "FunctionalItem.fbmodel", | ||
"modelType" : "FunctionblockModel", | ||
"references" : [ ], | ||
"configurationProperties" : [ { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : true, | ||
"name" : "name", | ||
"description" : null, | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"attributes" : [ { | ||
"type" : "READABLE", | ||
"value" : true | ||
}, { | ||
"type" : "WRITABLE", | ||
"value" : true | ||
}, { | ||
"type" : "EVENTABLE", | ||
"value" : true | ||
} ], | ||
"multiple" : false, | ||
"primitive" : true | ||
}, { | ||
"targetPlatformKey" : null, | ||
"stereotypes" : [ ], | ||
"mappingReference" : null, | ||
"mandatory" : true, | ||
"name" : "tags", | ||
"description" : null, | ||
"type" : "STRING", | ||
"constraints" : [ ], | ||
"attributes" : [ { | ||
"type" : "READABLE", | ||
"value" : true | ||
}, { | ||
"type" : "WRITABLE", | ||
"value" : true | ||
}, { | ||
"type" : "EVENTABLE", | ||
"value" : true | ||
} ], | ||
"multiple" : true, | ||
"primitive" : true | ||
} ], | ||
"statusProperties" : [ ], | ||
"faultProperties" : [ ], | ||
"events" : [ ], | ||
"operations" : [ ], | ||
"superType" : null | ||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
models/com.bosch.iot.suite.edge.services.fim-Number-1.0.0.type/COPYRIGHT.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Copyright (C) 2020 Bosch.IO GmbH |
15 changes: 15 additions & 0 deletions
15
models/com.bosch.iot.suite.edge.services.fim-Number-1.0.0.type/model.datatype
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
vortolang 1.0 | ||
|
||
namespace com.bosch.iot.suite.edge.services.fim | ||
version 1.0.0 | ||
|
||
entity Number { | ||
mandatory value as string with { | ||
readable : true | ||
} | ||
|
||
optional className as string with { | ||
readable : true | ||
} | ||
|
||
} |
Oops, something went wrong.