/// <summary> /// Initializes a new instance of the <see cref="AeConditionState"/> class. /// </summary> /// <param name="context">The context.</param> /// <param name="handle">The handle.</param> /// <param name="acknowledgeMethod">The acknowledge method.</param> public AeConditionState(ISystemContext context, NodeHandle handle, AddCommentMethodState acknowledgeMethod) : base(null) { AeParsedNodeId parsedNodeId = (AeParsedNodeId)handle.ParsedNodeId; this.NodeId = handle.NodeId; this.TypeDefinitionId = AeParsedNodeId.Construct( Constants.CONDITION_EVENT, parsedNodeId.CategoryId, parsedNodeId.ConditionName, parsedNodeId.NamespaceIndex); this.Acknowledge = acknowledgeMethod; this.AddChild(acknowledgeMethod); }