示例#1
0
 public ChangeOfLifeSafety(uint timeDelay, ReadOnlyArray <LifeSafetyState> listOfLifeSafetyAlarmValues, ReadOnlyArray <LifeSafetyState> listOfAlarmValues, DeviceObjectPropertyReference modePropertyReference)
 {
     this.TimeDelay = timeDelay;
     this.ListOfLifeSafetyAlarmValues = listOfLifeSafetyAlarmValues;
     this.ListOfAlarmValues           = listOfAlarmValues;
     this.ModePropertyReference       = modePropertyReference;
 }
示例#2
0
 public FloatingLimit(uint timeDelay, DeviceObjectPropertyReference setpointReference, float lowDiffLimit, float highDiffLimit, float deadband)
 {
     this.TimeDelay         = timeDelay;
     this.SetpointReference = setpointReference;
     this.LowDiffLimit      = lowDiffLimit;
     this.HighDiffLimit     = highDiffLimit;
     this.Deadband          = deadband;
 }
 public static void Save(IValueSink sink, DeviceObjectPropertyReference value)
 {
     sink.EnterSequence();
     Value<ObjectId>.Save(sink, value.ObjectIdentifier);
     Value<PropertyIdentifier>.Save(sink, value.PropertyIdentifier);
     Value<Option<uint>>.Save(sink, value.PropertyArrayIndex);
     Value<Option<ObjectId>>.Save(sink, value.DeviceIdentifier);
     sink.LeaveSequence();
 }
        public static void Save(IValueSink sink, DeviceObjectPropertyReference value)
        {
            sink.EnterSequence();
            Value <ObjectId> .Save(sink, value.ObjectIdentifier);

            Value <PropertyIdentifier> .Save(sink, value.PropertyIdentifier);

            Value <Option <uint> > .Save(sink, value.PropertyArrayIndex);

            Value <Option <ObjectId> > .Save(sink, value.DeviceIdentifier);

            sink.LeaveSequence();
        }
示例#5
0
 public static EventParameter NewChangeOfLifeSafety(uint timeDelay, ReadOnlyArray <LifeSafetyState> listOfLifeSafetyAlarmValues, ReadOnlyArray <LifeSafetyState> listOfAlarmValues, DeviceObjectPropertyReference modePropertyReference)
 {
     return(new ChangeOfLifeSafety(timeDelay, listOfLifeSafetyAlarmValues, listOfAlarmValues, modePropertyReference));
 }
示例#6
0
 public BufferReady(DeviceObjectPropertyReference bufferProperty, uint previousNotification, uint currentNotification)
 {
     this.BufferProperty       = bufferProperty;
     this.PreviousNotification = previousNotification;
     this.CurrentNotification  = currentNotification;
 }
示例#7
0
 public static ExtendedParameter NewReference(DeviceObjectPropertyReference reference)
 {
     return(new ReferenceWrapper(reference));
 }
示例#8
0
 public static EventParameter NewFloatingLimit(uint timeDelay, DeviceObjectPropertyReference setpointReference, float lowDiffLimit, float highDiffLimit, float deadband)
 {
     return(new FloatingLimit(timeDelay, setpointReference, lowDiffLimit, highDiffLimit, deadband));
 }
示例#9
0
 public ReferenceWrapper(DeviceObjectPropertyReference item)
 {
     this.Item = item;
 }
示例#10
0
 public static EventParameter NewCommandFailure(uint timeDelay, DeviceObjectPropertyReference feedbackPropertyReference)
 {
     return(new CommandFailure(timeDelay, feedbackPropertyReference));
 }
示例#11
0
 public ReferenceWrapper(DeviceObjectPropertyReference item)
 {
     this.Item = item;
 }
示例#12
0
 public static EventParameter NewCommandFailure(uint timeDelay, DeviceObjectPropertyReference feedbackPropertyReference)
 {
     return new CommandFailure(timeDelay, feedbackPropertyReference);
 }
示例#13
0
 public FloatingLimit(uint timeDelay, DeviceObjectPropertyReference setpointReference, float lowDiffLimit, float highDiffLimit, float deadband)
 {
     this.TimeDelay = timeDelay;
     this.SetpointReference = setpointReference;
     this.LowDiffLimit = lowDiffLimit;
     this.HighDiffLimit = highDiffLimit;
     this.Deadband = deadband;
 }
示例#14
0
 public static NotificationParameters NewBufferReady(DeviceObjectPropertyReference bufferProperty, uint previousNotification, uint currentNotification)
 {
     return new BufferReady(bufferProperty, previousNotification, currentNotification);
 }
示例#15
0
 public CommandFailure(uint timeDelay, DeviceObjectPropertyReference feedbackPropertyReference)
 {
     this.TimeDelay = timeDelay;
     this.FeedbackPropertyReference = feedbackPropertyReference;
 }
示例#16
0
 public ChangeOfLifeSafety(uint timeDelay, ReadOnlyArray<LifeSafetyState> listOfLifeSafetyAlarmValues, ReadOnlyArray<LifeSafetyState> listOfAlarmValues, DeviceObjectPropertyReference modePropertyReference)
 {
     this.TimeDelay = timeDelay;
     this.ListOfLifeSafetyAlarmValues = listOfLifeSafetyAlarmValues;
     this.ListOfAlarmValues = listOfAlarmValues;
     this.ModePropertyReference = modePropertyReference;
 }
示例#17
0
 public static EventParameter NewFloatingLimit(uint timeDelay, DeviceObjectPropertyReference setpointReference, float lowDiffLimit, float highDiffLimit, float deadband)
 {
     return new FloatingLimit(timeDelay, setpointReference, lowDiffLimit, highDiffLimit, deadband);
 }
示例#18
0
 public static NotificationParameters NewBufferReady(DeviceObjectPropertyReference bufferProperty, uint previousNotification, uint currentNotification)
 {
     return(new BufferReady(bufferProperty, previousNotification, currentNotification));
 }
示例#19
0
 public CommandFailure(uint timeDelay, DeviceObjectPropertyReference feedbackPropertyReference)
 {
     this.TimeDelay = timeDelay;
     this.FeedbackPropertyReference = feedbackPropertyReference;
 }
示例#20
0
 /// <summary>
 /// Determines the trend type for a trend log based
 /// on the object that it is monitoring
 /// </summary>
 /// <param name="reference">The reference to the monitored object</param>
 /// <returns>The trend type</returns>
 private TrendType _getTrendType(DeviceObjectPropertyReference reference)
 {
     switch ((ObjectType)reference.ObjectIdentifier.Type)
     {
         case ObjectType.AnalogInput:
         case ObjectType.AnalogOutput:
         case ObjectType.AnalogValue:
             return TrendType.Real;
         case ObjectType.BinaryInput:
         case ObjectType.BinaryOutput:
         case ObjectType.BinaryValue:
         case ObjectType.Schedule:
             return TrendType.Binary;
     }
     return TrendType.Unknown;
 }
示例#21
0
 public static EventParameter NewChangeOfLifeSafety(uint timeDelay, ReadOnlyArray<LifeSafetyState> listOfLifeSafetyAlarmValues, ReadOnlyArray<LifeSafetyState> listOfAlarmValues, DeviceObjectPropertyReference modePropertyReference)
 {
     return new ChangeOfLifeSafety(timeDelay, listOfLifeSafetyAlarmValues, listOfAlarmValues, modePropertyReference);
 }
示例#22
0
 public BufferReady(DeviceObjectPropertyReference bufferProperty, uint previousNotification, uint currentNotification)
 {
     this.BufferProperty = bufferProperty;
     this.PreviousNotification = previousNotification;
     this.CurrentNotification = currentNotification;
 }
示例#23
0
 public static ExtendedParameter NewReference(DeviceObjectPropertyReference reference)
 {
     return new ReferenceWrapper(reference);
 }