public EventOfProtectionEquipment(int ioa, SingleEvent singleEvent, CP16Time2a elapsedTime, CP24Time2a timestamp) : base(ioa) { this.singleEvent = singleEvent; this.elapsedTime = elapsedTime; this.timestamp = timestamp; }
internal EventOfProtectionEquipment(ApplicationLayerParameters parameters, byte[] msg, int startIndex, bool isSequence) : base(parameters, msg, startIndex, isSequence) { if (!isSequence) { startIndex += parameters.SizeOfIOA; /* skip IOA */ } if ((msg.Length - startIndex) < GetEncodedSize()) { throw new ASDUParsingException("Message too small"); } singleEvent = new SingleEvent(msg[startIndex++]); elapsedTime = new CP16Time2a(msg, startIndex); startIndex += 2; /* parse CP56Time2a (time stamp) */ timestamp = new CP24Time2a(msg, startIndex); }