void IDatabase.Update(FrozenCounter update, ushort index) { foreach (var db in databases) { db.Update(update, index); } }
private Measurement ConvertFrozenCounter(FrozenCounter 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 ConvertFrozenCounter(FrozenCounter measurement, uint id, string source) { return(new Measurement { Metadata = MeasurementKey.LookUpOrCreate(source, id).Metadata, Value = measurement.Value, Timestamp = measurement.Timestamp.Value }); }
private Measurement ConvertFrozenCounter(FrozenCounter 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(FrozenCounter value, UInt16 index) { Console.WriteLine(_scadaDev.Name + ": FrozenCounter[" + index + "] " + value.ToString()); }
public void Lookup(FrozenCounter meas, UInt16 index, Action <IMeasurement> action) { GenericLookup(meas, index, frozenCounterMap, ConvertFrozenCounter, action); }
void ISOEHandler.LoadEvent(FrozenCounter meas, ushort index) { m_lookup.Lookup(meas, index, m_Measurements.Add); }
void IDatabase.Update(FrozenCounter update, ushort index) { frozenCounters.Update(update.ToMeasurement(index, TimestampMode.SYNCHRONIZED)); }
void IDatabase.Update(FrozenCounter update, ushort index, EventMode mode) { this.Add(update.ToMeasurement(index, TimestampMode.SYNCHRONIZED), "FrozenCounter"); }
void IDatabase.Update(FrozenCounter update, ushort index, EventMode mode) { this.Add(update.ToMeasurement(index, TimestampMode.SYNCHRONIZED), "FrozenCounter"); }
public static Measurement ToMeasurement(this FrozenCounter meas, UInt16 index, TimestampMode tsmode) { return(new Measurement(meas.Value.ToString(), meas, tsmode, MeasType.FrozenCounter, index, QualityInfo.counter)); }
void ISOEHandler.LoadEvent(FrozenCounter meas, ushort index) { m_lookup.Lookup(meas, index, m_Measurements.Add); }