Contexts
In the menu the contexts stand under the heading Schemas, right beside the Topology. The two are the same thing at two altitudes: the topology is the layout of this installation, a context the layout of one machine that appears in it ten times.
A works commonly holds ten identical machines from the same manufacturer, with the same sensors in the same places. Modelling that machine ten times is ten chances to leave a measuring place out — and, worse, ten structures that drift apart the first time somebody adds a sensor to one of them.
A context describes the machine once. Where the plant has one of it is said in the topology: a Context node, a single row.
Nodes: Structure nodes and End Point nodes
A context is a tree of nodes — of the same types as in the topology:
- a Structure node — an area of the machine: "Hydraulic pump", "Cylinder 1", "Control cabinet". It takes no device; further Structure nodes and the End Point nodes hang beneath it.
- an End Point node — "Pressure", "Temperature", "Current". Exactly one real device hangs here later, and it is always the last: nothing is created or moved beneath it.
Which of the two a node is, the switch End Point node in the dialog decides; a node with children cannot become one. The column Type shows it in the list.
The same two rules apply to names as in the topology, and for the same reason — a name is part of an address:
- A name may not contain a
/. - A name is unique under its parent node only. Two cylinders may each have a node called "pressure".
The height of a context stands in the list and in the header of the editor. It adds to the level of a Context node: a three-storey context rolled out at level 12 ends at level 15. The limit of 16 levels from the topology applies to the result.
You decide the order under a parent node through the Order field. Smaller numbers stand higher; ties are settled by name. The order is visible and deliberate — it is the order in which the nodes appear in every Context node.
The expected device type
This is the bigger half of the benefit, and it is not the typing saved.
An End Point node names the device type expected at this spot — a blueprint or an IODD. It says which device belongs here, for every Context node at once:
- Only that device type can be assigned. When binding and exchanging in the topology the choice is filtered to the expected type, and an End Point of another device type is refused — see Binding a device.
- The schema for the connectors becomes complete. Beneath every rolled-out End Point node stand the fields of the expected type, even before a device is assigned. A connector can be configured before the sensor is mounted, and the addresses stay the same across a replacement.
The End Point's device type decides the decoding. It is stated at onboarding — see Device type. Changing the expected device type of an End Point node changes how no device is read; bound devices stay bound, and the node shows those that no longer match as the finding Deviates.
An End Point node without an expected device type is allowed and not an error. The column then says No type decided yet: the node takes any End Point, and the fields of the assigned device stand beneath it.
What the chosen device type delivers can be looked up before choosing. The row action View measuring points names name, unit, data type, range and special values the document describes — see Measuring points. That is the question that is really due here: does this document deliver the value the node is meant for?
The expected attribute schema
Beside the device type an End Point node may expect an attribute schema.
It is applied when a bound device carries none yet — an existing one is never overwritten, and a differing one is no reason to refuse. An attribute schema says which inventory fields somebody keeps about a device; that is a question of bookkeeping, not of understanding the bytes.
Rolling out
Rolling out happens in the topology, at the node the machine stands under — not here. The catalogue describes; where the plant has one of it is known only to the plant.
A Context node is a single row. It says: "an instance of this context hangs here, and it is called that". Nothing beneath it is copied. The nodes, their order and the device type each of them expects stay in the context alone and are resolved at read time.
From that follows the sentence the whole model is built around:
A change to the context appears in every Context node at once — not because anything is carried after it, but because the structure exists only once.
That is the gain and equally the danger. Which is why the number of Context nodes stands in the list, in the tiles and in every confirmation about a context — and why the editor has the Context nodes tab. It answers "who would this change affect" in a form a person can read rather than a number to trust. Every row leads to the node in the topology.
A context that is rolled out nowhere is not a shortcoming. It is a kind of machine somebody has described and not yet found in the plant.
Changing and removing
Renaming, editing, moving and removing act on all Context nodes at the same time. That is not a side effect, it is the purpose.
Edit touches one node: its name, its description, its order, and whether and what it expects. Move takes the whole subtree along — here too a node cannot travel beneath itself, and the dialog offers neither the node nor any of its descendants.
Removing a node
A removed node disappears with everything beneath it from the context and therefore from every Context node. Where devices hang there, every one of those bindings ends at once.
So the dialog asks nothing before it can name the scope. It reads the occupancy first and then says in how many Context nodes the node is occupied by how many devices, and lists a few of the devices affected with path and EUI. The list is capped, the count is exact; where the two differ, the dialog says so.
Only then comes the choice:
- Release only. The devices lose their node and appear in the without a node view afterwards. In the radio network they stay attached.
- Release and sign off in the radio network. The sign-off is started as well — started, not awaited.
Neither answer deletes a device. A released device keeps its EUI, its history, its inventory values and the record of what it once served. A sensor out of a plant is an asset, and "which device hung on boiler 2 in March" is asked long afterwards.
Where no device is bound, the choice is left out. The dialog then only names what disappears.
Deleting a context
A context with Context nodes is not deleted but refused, and the message names how many there are. There is deliberately no "everywhere": removing ten machines from a plant is a decision made at the machines — that is, in the topology.
Remove the Context nodes there first; after that the context deletes itself with every node in it.