Пример #1
0
        public DeviceReportingRecipient(BacnetBitString WeekofDay, DateTime fromTime, DateTime toTime, BacnetAddress adr, uint processIdentifier, bool Ack_Required, BacnetBitString evenType)
        {
            Id = new BacnetObjectId();

            this.WeekofDay         = WeekofDay;
            this.toTime            = toTime;
            this.fromTime          = fromTime;
            this.adr               = adr;
            this.processIdentifier = processIdentifier;
            this.Ack_Required      = Ack_Required;
            this.evenType          = evenType;
        }
Пример #2
0
 public BacnetDeviceObjectPropertyReference(BacnetObjectId objectIdentifier, BacnetPropertyIds propertyIdentifier, BacnetObjectId?deviceIndentifier = null, UInt32 arrayIndex = ASN1.BACNET_ARRAY_ALL)
 {
     this.objectIdentifier   = objectIdentifier;
     this.propertyIdentifier = propertyIdentifier;
     this.arrayIndex         = arrayIndex;
     if (deviceIndentifier != null)
     {
         this.deviceIndentifier = deviceIndentifier.Value;
     }
     else
     {
         this.deviceIndentifier = new BacnetObjectId(BacnetObjectTypes.MAX_BACNET_OBJECT_TYPE, 0);
     }
 }
Пример #3
0
        public DeviceReportingRecipient(BacnetValue v0, BacnetValue v1, BacnetValue v2, BacnetValue v3, BacnetValue v4, BacnetValue v5, BacnetValue v6)
        {
            Id  = new BacnetObjectId();
            adr = null;

            WeekofDay = (BacnetBitString)v0.Value;
            fromTime  = (DateTime)v1.Value;
            toTime    = (DateTime)v2.Value;
            if (v3.Value is BacnetObjectId)
            {
                Id = (BacnetObjectId)v3.Value;
            }
            else
            {
                BacnetValue[] netdescr = (BacnetValue[])v3.Value;
                ushort        s        = (ushort)(uint)netdescr[0].Value;
                byte[]        b        = (byte[])netdescr[1].Value;
                adr = new BacnetAddress(BacnetAddressTypes.IP, s, b);
            }
            processIdentifier = (uint)v4.Value;
            Ack_Required      = (bool)v5.Value;
            evenType          = (BacnetBitString)v6.Value;
        }
Пример #4
0
 public BacnetReadAccessResult(BacnetObjectId objectIdentifier, IList <BacnetPropertyValue> values)
 {
     this.objectIdentifier = objectIdentifier;
     this.values           = values;
 }
Пример #5
0
 public BacnetReadAccessSpecification(BacnetObjectId objectIdentifier, IList <BacnetPropertyReference> propertyReferences)
 {
     this.objectIdentifier   = objectIdentifier;
     this.propertyReferences = propertyReferences;
 }