public void Init(IDryMssEventOutputPort dryMssEventOutputPort,
                         IWetMssEventOutputPort wetMssEventOutputPort)
        {
            dryMssEventOutputPort.DryMssEventRecieved += new DryMssEventRecievedEventHandler(DryEventRecieved);
            wetMssEventOutputPort.WetMssEventsReceived += new WetMssEventReceivedEventHandler(WetEventRecieved);

            wetMssEventOutputPort.SendingWetMssEvents += new SendingWetMssEventsEventHandler(OnCycleEnd);
        }
        public void Init(MssParameters mssParameters, 
            IWetMssEventOutputPort wetEventOutput,
            IDryMssEventInputPort dryEventInput,
            IHostInfoOutputPort hostInfoOutput)
        {
            this.mssParameters = mssParameters;
            this.wetEventOutput = wetEventOutput;
            this.dryEventInput = dryEventInput;
            this.hostInfoOutput = hostInfoOutput;

            this.wetEventOutput.WetMssEventsReceived +=
                new WetMssEventReceivedEventHandler(WetEventReceived);

            this.mssParameters.ParameterValueChanged +=
                new ParameterValueChangedEventHandler(ParameterValueChanged);

            this.hostInfoOutput.BeforeProcessingCycleEnd +=
                new ProcessingCycleEndEventHandler(OnBeforeProcessingCycleEnd);
        }
        public void Init(IHostInfoOutputPort hostInfoOutputPort, 
            IWetMssEventOutputPort wetMssEventOutputPort,
            IDryMssEventInputPort dryMssEventInputPort,
            IGeneratorMappingManager generatorMappingMgr,
            IMssParameterViewer mssParameters)
        {
            this.generatorMappingMgr = generatorMappingMgr;
            this.mssMsgProcessor.Init(generatorMappingMgr, mssParameters);

            //Adds listener for generator toggle messages.
            wetMssEventOutputPort.WetMssEventsReceived += new
                    WetMssEventReceivedEventHandler(WetMssEventOutputPort_WetMssEventReceived);

            this.hostInfoOutputPort = hostInfoOutputPort;

            hostInfoOutputPort.BeforeProcessingCycleEnd += new
                    ProcessingCycleEndEventHandler(HostInfoOutputPort_BeforeProcessingCycleEnd);
            hostInfoOutputPort.ProcessingCycleEnd += new
                    ProcessingCycleEndEventHandler(HostInfoOutputPort_ProcessingCycleEnd);

            this.dryMssEventInputPort = dryMssEventInputPort;
        }
        public void Init()
        {
            this.numDryEventsReceivedByRelay = 0;
            this.sampleRate = DEFAULT_SAMPLE_RATE;

            DryMssEventRelay dryMssEventRelay = new DryMssEventRelay();
            dryMssEventRelay.DryMssEventRecieved += new DryMssEventRecievedEventHandler(dryMssEventInputPort_DryMssEventRecieved);
            this.dryMssEventInputPort = dryMssEventRelay;

            this.wetMssEventOutputPort = new WetMssEventRelay();

            HostInfoRelay hostInfoRelay = new HostInfoRelay();
            hostInfoRelay.StartUpdate();
            hostInfoRelay.ReceiveSampleRateDuringUpdate(this.sampleRate);
            hostInfoRelay.FinishUpdate();
            this.hostInfoOutputPort = hostInfoRelay;
        }