Exemplo n.º 1
0
 /// <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;
 }
Exemplo n.º 2
0
 /// <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;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Constructor.
 /// </summary>
 public GXObisCode()
 {
     Attributes        = new GXAttributeCollection();
     Attributes.Parent = this;
 }
Exemplo n.º 4
0
 /// <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)
 {
 }
Exemplo n.º 6
0
        /// <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;
        }