Skip to content

Commit

Permalink
Migrated all com.bosch.iot.suite.edge.services.fim namespaced Vorto m…
Browse files Browse the repository at this point in the history
…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
Show file tree
Hide file tree
Showing 21 changed files with 1,667 additions and 0 deletions.
@@ -0,0 +1 @@
Copyright (C) 2020 Bosch.IO GmbH
@@ -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
}

}

}
@@ -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
}
}
}
@@ -0,0 +1 @@
Copyright (C) 2020 Bosch.IO GmbH
@@ -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."
}

}
@@ -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
}
}
}
@@ -0,0 +1 @@
Copyright (C) 2020 Bosch.IO GmbH
@@ -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
}

}

0 comments on commit 1a7ec3b

Please sign in to comment.