-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from UlfBj/master
Support for referencing external tree node from service input/output.
- Loading branch information
Showing
11 changed files
with
182 additions
and
44 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,37 +1,11 @@ | ||
--- | ||
title: "Property node" | ||
date: 2019-08-04T12:37:03+02:00 | ||
weight: 30 | ||
--- | ||
|
||
Data represented by the node type `property` have a relationship to any other data having the same `struct` parent in that they are all sampled in an "atomic" operation, | ||
i.e. the set of data points have the same timestamp representing the sample time. | ||
|
||
Nodes of the type `property` must have the following mandatory metadata: | ||
- Name | ||
- Type | ||
- Datatype | ||
- Description | ||
|
||
For more information, see the [Common Rule Set: Mandatory Metadata](/hierarchical_information_model/common_rule_set/basics#mandatory-metadata). | ||
|
||
Besides the mandatory metadata mentioned above, the following optional metadata may be used | ||
- Unit | ||
- Min | ||
- Max | ||
- Allowed | ||
- Comment | ||
|
||
For more information, please see the [Common Rule Set: Optional Metadata](/hierarchical_information_model/common_rule_set/basics#optional-metadata). | ||
|
||
This node type must have a node of type `struct` as parent, and must not have any children. | ||
|
||
An example of the specification of a `property` node is given below. | ||
|
||
```YAML | ||
Type.OpenHours.Open: | ||
datatype: uint8 | ||
type: property | ||
max: 24 | ||
description: Time the address opens | ||
``` | ||
The `property` node type is used in both the `service` and `typedefinition` rule sets, | ||
but as they differ slightly on the semantics in respective rule set it has a separate definition in each of the rule sets, | ||
please see their definitions in the | ||
[Service Rule Set:Property node node type](/hierarchical_information_model/service_data_rule_set/property) and the | ||
[Type Definition Rule Set:Property node node type](/hierarchical_information_model/type_definition_rule_set/property) | ||
respectively. |
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
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
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,37 @@ | ||
--- | ||
title: "IO-struct node" | ||
date: 2019-08-04T12:37:03+02:00 | ||
weight: 30 | ||
--- | ||
|
||
An `iostruct` node type may be used to encapsulate multiple data points that have the relationship that they are all representing either | ||
Input parameters or Output parameters of the service that they are linked to. | ||
|
||
This node type is only allowed in trees of the information type `servicedata`. | ||
For more information, please see respective parts of this document. | ||
|
||
An `iostruct` node must have one of the two names `Input` or `Output`. | ||
|
||
Nodes of the type `iostruct` must have the following mandatory metadata: | ||
- Name | ||
- Type | ||
- Description | ||
|
||
For more information, see the [Common Rule Set: Mandatory Metadata](/hierarchical_information_model/common_rule_set/basics#mandatory-metadata). | ||
|
||
Besides the mandatory metadata mentioned above, the following optional metadata may be used | ||
- Comment | ||
|
||
For more information, please see the [Common Rule Set: Optional Metadata](/hierarchical_information_model/common_rule_set/basics#optional-metadata). | ||
|
||
- A leaf node cannot have the `iostruct` node type. | ||
- A parent must be of the node type `service`. | ||
- Children must be of the node types `property` or `symlink`. | ||
- It must have at least one child. | ||
|
||
An example of the specification of a `struct` node is given below. | ||
```YAML | ||
Input: | ||
type: iostruct | ||
description: This is an iostruct node representing Input parameters of a service. | ||
``` |
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,37 @@ | ||
--- | ||
title: "Property node" | ||
date: 2019-08-04T12:37:03+02:00 | ||
weight: 30 | ||
--- | ||
|
||
Data represented by the node type `property` have a relationship to any other data having the same `struct` parent in that they are all sampled in an "atomic" operation, | ||
i.e. the set of data points have the same timestamp representing the sample time. | ||
|
||
Nodes of the type `property` must have the following mandatory metadata: | ||
- Name | ||
- Type | ||
- Datatype | ||
- Description | ||
|
||
For more information, see the [Common Rule Set: Mandatory Metadata](/hierarchical_information_model/common_rule_set/basics#mandatory-metadata). | ||
|
||
Besides the mandatory metadata mentioned above, the following optional metadata may be used | ||
- Unit | ||
- Min | ||
- Max | ||
- Allowed | ||
- Comment | ||
|
||
For more information, please see the [Common Rule Set: Optional Metadata](/hierarchical_information_model/common_rule_set/basics#optional-metadata). | ||
|
||
This node type must have a node of type `struct` as parent, and must not have any children. | ||
|
||
An example of the specification of a `property` node is given below. | ||
|
||
```YAML | ||
Type.OpenHours.Open: | ||
datatype: uint8 | ||
type: property | ||
max: 24 | ||
description: Time the address opens | ||
``` |
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
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,44 @@ | ||
--- | ||
title: "Symlink node" | ||
weight: 30 | ||
--- | ||
|
||
Data represented by the node type `symlink` have a relationship to any other data having the same `iostruct` parent in that they are all representing either | ||
Input parameters or Output parameters of the service that they are linked to. | ||
|
||
An Otput parameter declared as a symlink will lead to that the returned value is read from that data point. | ||
|
||
An Input parameter declared as a symlink will lead to that the provided input value is written to that data point. | ||
|
||
Nodes of the type `symlink` must have the following mandatory metadata: | ||
- Name | ||
- Type | ||
- Path | ||
- Domain | ||
- Version | ||
- Description | ||
|
||
The Path must be a valid path to a leaf node in the tree declared by the Domain and Version metadata. | ||
|
||
The Domain must declare an existing HIM tree of information type resourcedata. | ||
|
||
The Version must be a dot delimited triplet declaring a version of the tree eclared by the Domain. | ||
The triplet may a suffix of either "+" or "-", denoting that also any following or previous versions are also valid. | ||
|
||
Besides the mandatory metadata mentioned above, the following optional metadata may be used | ||
- Comment | ||
|
||
For more information, please see the [Common Rule Set: Optional Metadata](/hierarchical_information_model/common_rule_set/basics#optional-metadata). | ||
|
||
This node type must have a node of type `iostruct` as parent, and must not have any children. | ||
|
||
An example of the specification of a `symlink` node is given below. | ||
|
||
```YAML | ||
VehicleService.GPS.GetPosition.Output.Latitude: | ||
type: symlink | ||
path: Vehicle.CurrentLocation.Latitude | ||
domain: Automotive.Vehicle.Car.ResourceData | ||
version: 3.0.0+ | ||
description: This is a symlink to a VSS tree. | ||
``` |
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,37 @@ | ||
--- | ||
title: "Property node" | ||
date: 2019-08-04T12:37:03+02:00 | ||
weight: 30 | ||
--- | ||
|
||
Data represented by the node type `property` have a relationship to any other data having the same `struct` parent in that they are all sampled in an "atomic" operation, | ||
i.e. the set of data points have the same timestamp representing the sample time. | ||
|
||
Nodes of the type `property` must have the following mandatory metadata: | ||
- Name | ||
- Type | ||
- Datatype | ||
- Description | ||
|
||
For more information, see the [Common Rule Set: Mandatory Metadata](/hierarchical_information_model/common_rule_set/basics#mandatory-metadata). | ||
|
||
Besides the mandatory metadata mentioned above, the following optional metadata may be used | ||
- Unit | ||
- Min | ||
- Max | ||
- Allowed | ||
- Comment | ||
|
||
For more information, please see the [Common Rule Set: Optional Metadata](/hierarchical_information_model/common_rule_set/basics#optional-metadata). | ||
|
||
This node type must have a node of type `struct` as parent, and must not have any children. | ||
|
||
An example of the specification of a `property` node is given below. | ||
|
||
```YAML | ||
Type.OpenHours.Open: | ||
datatype: uint8 | ||
type: property | ||
max: 24 | ||
description: Time the address opens | ||
``` |
File renamed without changes.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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