//Добавить сигнал, возвращает сигнал прокси для пользователя public ProxySignal AddSignal(string fullCode, DataType dataType, SignalType signalType, string infObject, string infOut, string infProp) { var sig = SourceConnect.AddSignal(fullCode, dataType, signalType, infObject, infOut, infProp); ArchiveProxyConnect.AddSignal(SourceConnect, new QueuedProxySignal(SourceConnect.Code, sig)); return(UserProxyConnect.AddSignal(SourceConnect, new ProxySignal(SourceConnect.Code, sig))); }
public CalibratorConnect(RealTimeThread thread, string connectCode, string complect, string providerCode, string providerInf) { SourceConnect = new SourceConnect(thread.Logger, connectCode, complect); SourceConnect.JoinProvider(thread.ProvidersFactory.CreateProvider(thread.Logger, providerCode, providerInf)); UserProxyConnect = new ProxyConnect("UserProxy"); ArchiveProxyConnect = new QueuedProxyConnect("ArchiveProxy"); }
private static ValuesCount GetValues(SourceConnect connect, DateTime beg, DateTime en) { connect.Logger.StartPeriod(beg, en); var vc = connect.GetValues(); connect.Logger.FinishPeriod(); return(vc); }
private static void GetValues(SourceConnect connect, DateTime beg, DateTime en) { connect.Logger.StartPeriod(beg, en); connect.GetValues(); connect.Logger.FinishPeriod(); }
//Очистить список сигналов public void ClearSignals() { ArchiveProxyConnect.ClearSignals(); UserProxyConnect.ClearSignals(); SourceConnect.ClearSignals(); }