/// <summary> /// Constructor, /// </summary> protected GXDLMSObject(ObjectType objectType, string ln, ushort sn) { Attributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); MethodAttributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); ObjectType = objectType; this.ShortName = sn; if (ln != null) { ValidateLogicalName(ln); } this.LogicalName = ln; }
/// <summary> /// Constructor, /// </summary> protected GXDLMSObject(ObjectType objectType, string ln, ushort sn) { Attributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); MethodAttributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); ObjectType = objectType; this.ShortName = sn; if (ln != null) { string[] items = ln.Split('.'); if (items.Length != 6) { throw new GXDLMSException("Invalid Logical Name."); } } this.LogicalName = ln; }
/// <summary> /// Constructor. /// </summary> public GXObisCode() { Attributes = new GXAttributeCollection(); Attributes.Parent = this; }
/// <summary> /// Constructor, /// </summary> protected GXDLMSObject(Gurux.DLMS.ObjectType objectType, string ln, ushort sn) { Attributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); MethodAttributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); ObjectType = objectType; this.ShortName = sn; if (ln != null) { string[] items = ln.Split('.'); if (items.Length != 6) { throw new GXDLMSException("Invalid Logical Name."); } } this.LogicalName = ln; }
public GXAttributeCollectionPropertyDescriptor(GXAttributeCollection coll, int idx) : base(idx, coll) { }
/// <summary> /// Constructor, /// </summary> protected GXDLMSObject(ObjectType objectType, string ln, ushort sn) { Attributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); MethodAttributes = new Gurux.DLMS.ManufacturerSettings.GXAttributeCollection(); ObjectType = objectType; this.ShortName = sn; if (ln != null) { if (!ValidateLogicalName(ln)) { throw new GXDLMSException("Invalid Logical Name."); } } this.LogicalName = ln; }