//internal API internal override NodeDesign Export(List <string> path, Action <InstanceDesign, List <string> > createInstanceType) { VariableDesign _ret = new VariableDesign() { }; Update(_ret, path, createInstanceType); return(_ret); }
//private protected void Update(VariableDesign node, List <string> path, Action <InstanceDesign, List <string> > createInstanceType) { node.AccessLevel = this.AccessLevel.GetAccessLevel(x => node.AccessLevelSpecified = x, TraceEvent); node.ValueRank = this.ValueRank.GetValueRank(x => node.ValueRankSpecified = x, TraceEvent); node.ArrayDimensions = this.ArrayDimensions; node.DataType = this.DataType; //TODO must be DataType, must not be abstract node.DefaultValue = this.DefaultValue; //TODO must be of type defined by DataType node.Historizing = this.Historizing.GetValueOrDefault(); node.HistorizingSpecified = this.Historizing.HasValue; node.MinimumSamplingInterval = this.MinimumSamplingInterval.GetValueOrDefault(); node.MinimumSamplingIntervalSpecified = this.MinimumSamplingInterval.HasValue; base.UpdateInstance(node, path, TraceEvent, createInstanceType); }