コード例 #1
0
 public MainWindow(Framework framework)
 {
     m_mapper       = framework.Mapper;
     m_concentrator = framework.Concentrator;
     m_subscriber   = framework.Subscriber;
     InitializeComponent();
 }
コード例 #2
0
ファイル: Framework.cs プロジェクト: contributor51/openECA
 public Framework(Func <Framework, IMapper> mapperFactory)
 {
     SignalLookup         = new SignalLookup();
     SignalBuffers        = new ConcurrentDictionary <MeasurementKey, SignalBuffer>();
     AlignmentCoordinator = new AlignmentCoordinator(SignalBuffers);
     Mapper       = mapperFactory(this);
     Concentrator = new Concentrator(Mapper);
     Subscriber   = new Subscriber(Concentrator);
 }
コード例 #3
0
ファイル: Subscriber.cs プロジェクト: contributor51/openECA
        public Subscriber(Concentrator concentrator)
        {
            m_concentrator = concentrator;

            m_dataSubscriber = new DataSubscriber();
            m_dataSubscriber.ConnectionEstablished += DataSubscriber_ConnectionEstablished;
            m_dataSubscriber.MetaDataReceived      += DataSubscriber_MetaDataReceived;
            m_dataSubscriber.NewMeasurements       += DataSubscriber_NewMeasurements;
            m_dataSubscriber.StatusMessage         += DataSubscriber_StatusMessage;
            m_dataSubscriber.ProcessException      += DataSubscriber_ProcessException;
        }