public override bool Initialize(Dictionary <CodeGenNodeID, CodeGenNodeID> childrenIDMap, CodeGenNodeManager addressSpaceMgr) { Console.WriteLine("ObjectType_RoomDTO_1054562535_0::Initialize"); bool success = true; m_addressSpaceMgr = addressSpaceMgr; ushort namespaceIndex = 0; // Set attributes this.GetNode().BrowseName = "RoomDTO"; this.GetNode().DisplayName = "RoomDTO"; this.GetNode().Description = ""; this.GetNode().WriteMask = AttributeWriteMask.None ; //Create Children objects //Create Children variables { string childBrowseName = "Name-210620154030-14"; string childFileNoExtension = "type_VariableType_Name_210620154030_14_784679566_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "24"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "RoomName_DTO"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("TemperatureHandler"); ushort childSourceNodeIdType = 1; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_Name_210620154030_14_784679566_0 = (VariableType_Name_210620154030_14_784679566_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_Name_210620154030_14_784679566_0 local = var_Name_210620154030_14_784679566_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } { string childBrowseName = "ActualTemperature_DTO"; string childFileNoExtension = "type_VariableType_ActualTemperature_DTO_325685183_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "24"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "ActualTemperature_DTO"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("TemperatureHandler"); ushort childSourceNodeIdType = 1; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_ActualTemperature_DTO_325685183_0 = (VariableType_ActualTemperature_DTO_325685183_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_ActualTemperature_DTO_325685183_0 local = var_ActualTemperature_DTO_325685183_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } { string childBrowseName = "ID_DTO"; string childFileNoExtension = "type_VariableType_ID_DTO_1134910354_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "24"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "ID_DTO"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("TemperatureHandler"); ushort childSourceNodeIdType = 1; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_ID_DTO_1134910354_0 = (VariableType_ID_DTO_1134910354_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_ID_DTO_1134910354_0 local = var_ID_DTO_1134910354_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } { string childBrowseName = "GoalTemperature_DTO"; string childFileNoExtension = "type_VariableType_GoalTemperature_DTO_606346491_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "24"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "GoalTemperature_DTO"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("TemperatureHandler"); ushort childSourceNodeIdType = 1; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_GoalTemperature_DTO_606346491_0 = (VariableType_GoalTemperature_DTO_606346491_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_GoalTemperature_DTO_606346491_0 local = var_GoalTemperature_DTO_606346491_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } //Create Children properties //Create Children methods return(success); }
public override bool Initialize(Dictionary <CodeGenNodeID, CodeGenNodeID> childrenIDMap, CodeGenNodeManager addressSpaceMgr) { Console.WriteLine("ObjectType_Station_468461068_0::Initialize"); bool success = true; m_addressSpaceMgr = addressSpaceMgr; ushort namespaceIndex = 0; // Set attributes this.GetNode().BrowseName = "Station"; this.GetNode().DisplayName = "Station"; this.GetNode().Description = ""; this.GetNode().WriteMask = AttributeWriteMask.None ; //Create Children objects //Create Children variables { string childBrowseName = "Name"; string childFileNoExtension = "type_VariableType_Name_420871476_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "12"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "9837"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("ModelStation"); ushort childSourceNodeIdType = 1; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_Name_420871476_0 = (VariableType_Name_420871476_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_Name_420871476_0 local = var_Name_420871476_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } { string childBrowseName = "TargetTemp"; string childFileNoExtension = "type_VariableType_TargetTemp_1537019957_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "10"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "29520"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("ModelStation"); ushort childSourceNodeIdType = 0; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_TargetTemp_1537019957_0 = (VariableType_TargetTemp_1537019957_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_TargetTemp_1537019957_0 local = var_TargetTemp_1537019957_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } { string childBrowseName = "NowTemp"; string childFileNoExtension = "type_VariableType_NowTemp_1652098010_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "10"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "16599"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("ModelStation"); ushort childSourceNodeIdType = 0; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_NowTemp_1652098010_0 = (VariableType_NowTemp_1652098010_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_NowTemp_1652098010_0 local = var_NowTemp_1652098010_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } { string childBrowseName = "Heat"; string childFileNoExtension = "type_VariableType_Heat_2031185702_0"; string childTypeDefId = "63"; ushort childTypeDefNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childTypeDefNodeIdType = 0; string childDataTypeId = "1"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "26810"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("ModelStation"); ushort childSourceNodeIdType = 0; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_Heat_2031185702_0 = (VariableType_Heat_2031185702_0) (m_addressSpaceMgr.CreateVariable(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_Heat_2031185702_0 local = var_Heat_2031185702_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } //Create Children properties //Create Children methods return(success); }
public override bool Initialize(Dictionary <CodeGenNodeID, CodeGenNodeID> childrenIDMap, CodeGenNodeManager addressSpaceMgr) { Console.WriteLine("ObjectType_ServerRequest_111707335_0::Initialize"); bool success = true; m_addressSpaceMgr = addressSpaceMgr; ushort namespaceIndex = 0; // Set attributes this.GetNode().BrowseName = "ServerRequest"; this.GetNode().DisplayName = "ServerRequest"; this.GetNode().Description = ""; this.GetNode().WriteMask = AttributeWriteMask.None ; //Create Children objects //Create Children variables //Create Children properties { string childBrowseName = "GoalTemp"; string childFileNoExtension = "type_VariableType_GoalTemp_662026670_0"; string childTypeDefId = "68"; ushort childTypeDefNamespaceIndex = 0; ushort childTypeDefNodeIdType = 0; string childDataTypeId = "24"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "GoalTemp"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("TemperatureHandler"); ushort childSourceNodeIdType = 1; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_GoalTemp_662026670_0 = (VariableType_GoalTemp_662026670_0) (m_addressSpaceMgr.CreateProperty(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_GoalTemp_662026670_0 local = var_GoalTemp_662026670_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } { string childBrowseName = "RoomName"; string childFileNoExtension = "type_VariableType_RoomName_627147307_0"; string childTypeDefId = "68"; ushort childTypeDefNamespaceIndex = 0; ushort childTypeDefNodeIdType = 0; string childDataTypeId = "24"; ushort childDataTypeNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("http://opcfoundation.org/UA/"); ushort childDataTypeNodeIdType = 0; int childDataTypeValueRank = -1; string childDataTypeArrayDimension = ""; string childSourceId = "RoomName"; ushort childSourceNamespaceIndex = (ushort)m_addressSpaceMgr.SystemContext.NamespaceUris.GetIndex("TemperatureHandler"); ushort childSourceNodeIdType = 1; NodeId newChildId = Helper.CreateID(childrenIDMap, m_addressSpaceMgr, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType); var_RoomName_627147307_0 = (VariableType_RoomName_627147307_0) (m_addressSpaceMgr.CreateProperty(childrenIDMap, this.GetNode(), childFileNoExtension, childBrowseName, childSourceId, childSourceNamespaceIndex, (IdType)childSourceNodeIdType, newChildId.Identifier.ToString(), newChildId.NamespaceIndex, (IdType)newChildId.IdType, m_nodeId, m_namespaceIndex, m_nodeIdType, childDataTypeValueRank)); VariableType_RoomName_627147307_0 local = var_RoomName_627147307_0; m_addressSpaceMgr.AddPredefinedNodeExt(m_addressSpaceMgr.SystemContext, local.GetNode()); local.SetDataType(childDataTypeId, childDataTypeNamespaceIndex, (IdType)childDataTypeNodeIdType); } //Create Children methods return(success); }