The following examples use the type model described below. All Property values are assumed to be string unless otherwise noted
New Reference types:
“HasChild” derived from HierarchicalReference.
“HasAnimal” derived from HierarchicalReference.
“HasPet” derived from HasAnimal.
“HasFarmAnimal” derived from HasAnimal.
“HasSchedule” derived from HierarchicalReference.
PersonType derived from BaseObjectType adds:
HasProperty "LastName". HasProperty "FirstName". HasProperty "StreetAddress". HasProperty "City". HasProperty "ZipCode". May have HasChild reference to a node of type PersonType. May have HasAnimal reference to a node of type AnimalType (or a subtype of this *Reference* type).
AnimalType derived from BaseObjectType adds:
May have HasSchedule reference to a node of type FeedingScheduleType. HasProperty "Name".
DogType derived from AnimalType adds:
HasProperty "NickName". HasProperty "DogBreed". HasProperty "License".
CatType derived from AnimalType adds:
HasProperty "NickName". HasProperty "CatBreed".
PigType derived from AnimalType adds:
ScheduleType derived from BaseObjectType adds:
FeedingScheduleType derived from ScheduleType adds:
HasProperty "Food". HasProperty "Amount" (Stored as an *Int32*).
AreaType derived from BaseObjectType is just a simple Folder and contains no Properties.
Figure B.3 – Example Type Nodes
A corresponding example set of instances is shown in Figure B.4. These instances include a type Reference for Objects. Properties also have type References, but the References are omitted for simplicity. The name of the Object is provided in the box and a numeric instance NodeId in brackets. Standard ReferenceTypes use the OPC UA notation, custom ReferenceTypes are listed as a named Reference. For Properties, the BrowseName, NodeId, and Value are shown. The Nodes that are included in a View (View1) are enclosed in the coloured box. Two Area nodes are included for grouping of the existing person nodes. All custom nodes are defined in namespace 12 which is not included in Figure B.4.
Figure B.4 – Example Instance Nodes