Exemple #1
0
 void IDatabase.Update(AnalogOutputStatus update, ushort index)
 {
     foreach (var db in databases)
     {
         db.Update(update, index);
     }
 }
Exemple #2
0
        private Measurement ConvertAnalogOutputStatus(AnalogOutputStatus meas, uint id, String source)
        {
            var m = new Measurement();

            m.Key       = MeasurementKey.LookUpOrCreate(source, id);
            m.Value     = meas.Value;
            m.Timestamp = DateTime.UtcNow;
            return(m);
        }
Exemple #3
0
 private Measurement ConvertAnalogOutputStatus(AnalogOutputStatus measurement, uint id, string source)
 {
     return(new Measurement
     {
         Metadata = MeasurementKey.LookUpOrCreate(source, id).Metadata,
         Value = measurement.Value,
         Timestamp = measurement.Timestamp.Value
     });
 }
Exemple #4
0
        private Measurement ConvertAnalogOutputStatus(AnalogOutputStatus meas, uint id, String source)
        {
            var m = new Measurement();

            m.Metadata  = MeasurementKey.LookUpOrCreate(source, id).Metadata;
            m.Value     = meas.Value;
            m.Timestamp = meas.Timestamp;
            return(m);
        }
Exemple #5
0
 private void Print(AnalogOutputStatus value, UInt16 index)
 {
     Console.WriteLine(_scadaDev.Name + ": AnalogOutputStatus[" + index + "] " + value.ToString());
 }
Exemple #6
0
 public void Lookup(AnalogOutputStatus meas, UInt16 index, Action <IMeasurement> action)
 {
     GenericLookup(meas, index, setpointStatusMap, ConvertAnalogOutputStatus, action);
 }
Exemple #7
0
 void ISOEHandler.LoadEvent(AnalogOutputStatus meas, ushort index)
 {
     m_lookup.Lookup(meas, index, m_Measurements.Add);
 }
Exemple #8
0
 void IDatabase.Update(AnalogOutputStatus update, ushort index)
 {
     analogOutputStatii.Update(update.ToMeasurement(index, TimestampMode.SYNCHRONIZED));
 }
 void IDatabase.Update(AnalogOutputStatus update, ushort index, EventMode mode)
 {
     this.Add(update.ToMeasurement(index, TimestampMode.SYNCHRONIZED), "AnalogOutputStatus");
 }
 void IDatabase.Update(AnalogOutputStatus update, ushort index, EventMode mode)
 {
     this.Add(update.ToMeasurement(index, TimestampMode.SYNCHRONIZED), "AnalogOutputStatus");
 }
Exemple #11
0
 public static Measurement ToMeasurement(this AnalogOutputStatus meas, UInt16 index, TimestampMode tsmode)
 {
     return(new Measurement(meas.Value.ToString(), meas, tsmode, MeasType.AnalogOutputStatus, index, QualityInfo.analog));
 }
Exemple #12
0
 void ISOEHandler.LoadEvent(AnalogOutputStatus meas, ushort index)
 {
     m_lookup.Lookup(meas, index, m_Measurements.Add);            
 }