void IDatabase.Update(AnalogOutputStatus update, ushort index) { foreach (var db in databases) { db.Update(update, index); } }
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); }
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 }); }
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); }
private void Print(AnalogOutputStatus value, UInt16 index) { Console.WriteLine(_scadaDev.Name + ": AnalogOutputStatus[" + index + "] " + value.ToString()); }
public void Lookup(AnalogOutputStatus meas, UInt16 index, Action <IMeasurement> action) { GenericLookup(meas, index, setpointStatusMap, ConvertAnalogOutputStatus, action); }
void ISOEHandler.LoadEvent(AnalogOutputStatus meas, ushort index) { m_lookup.Lookup(meas, index, m_Measurements.Add); }
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"); }
public static Measurement ToMeasurement(this AnalogOutputStatus meas, UInt16 index, TimestampMode tsmode) { return(new Measurement(meas.Value.ToString(), meas, tsmode, MeasType.AnalogOutputStatus, index, QualityInfo.analog)); }