#include <ocsReceiverSubsystem.hh>
Public Member Functions | |
ReceiverSubsystem () | |
ReceiverSubsystem (OptSignal *WDMSignal, RanNumGen *RNG2, string InDir, string Job2, int DemuxChannArrayIndex2, OptDataWriter *DataWriter2) | |
ReceiverSubsystem (OptSignal *WDMSignal, int DemuxChannArrayIndex2, string OptFilterFileName, string ElecFilterFileName, string PhotodetectorFileName, string ElecSignalStatFileName) | |
void | ReceiverSubsystemInit (OptSignal *WDMSignal, RanNumGen *RNG2, string InDir, string Job2, int DemuxChannArrayIndex2, OptDataWriter *DataWriter2) |
void | ReceiverSubsystemInit (OptSignal *WDMSignal, RanNumGen *RNG2, string InDir, string Job2, int DemuxChannArrayIndex2, OptDataWriter *DataWriter2, string PostDispCompFileNameSuffix2, fftPowerMatrices &sfftPM2, fftPowerMatrices &WorksfftPM2, OptSignal *GlobalSCSignal, OptSpectrumAnalyzer *PowerMeter2, OptDemuxer *Demuxer2, cplx *MeasuredFilterFreq) |
void | SetReceiverMapNumber (int Value) |
void | InitSimplifiedReceiver (OptSignal *WDMSignal, int DemuxChannArrayIndex2, string OptFilterFileName, string ElecFilterFileName, string PhotodetectorFileName, string ElecSignalStatFileName) |
~ReceiverSubsystem () | |
void | ReceiveSignalBackToBack (OptSignal *WDMSignal) |
void | ReceiveSignal (OptSignal *WDMSignal, int UpdateIvansEDFlag, int OutputPD_DataFlag, int ExptNum, int MapNum, double PropagatedLength2) |
void | PostProcessReceiverStats (int ExptNum, int MapNum, int AppendFlag) |
void | WriteStats (int ExptNum, int MapNum, int AppendFlag) |
void | ReceiveSingleChannel (void) |
void | ReceiveSingleChannel (int DemuxChannelArrayIndex2) |
void | DemultiplexSingleChannnel (int DemuxChannArrayIndex2) |
void | ReceivePreviouslyDemultiplexedSingleChannnel (void) |
void | ReceiveSignalBackToBackCenterFreq (OptSignal *WDMSignal, double CenterFreqOptFilter, BitString *SCBitString, bool OutputEye, bool DoDemuxFilter) |
void | ReceiveSignalCenterFreq (OptSignal *WDMSignal, double PropagatedLength2, int MapNum, double CenterFreqOptFilter, BitString *SCBitString, bool OutputEye, bool DoDemuxFilter) |
void | WriteStatsCenterFreq (int MapNum, bool AppendFlag) |
Public Attributes | |
OptFilter * | TunableFilter |
OptDemuxer * | oOptDemuxer |
OptSignal * | SCSignal |
OptFilter * | oOptFilter |
OptFilter * | oOptFilterPD |
Photodetector * | oPhotodetector |
ElecFilter * | oElecFilter |
ElecSignalStat * | oElecSignalStat |
Histogram2D * | RonEyeDiagram |
PostDispCompSubSystem * | oPostDispComp |
OptDataWriter * | DataWriter |
Private Attributes | |
OptSignal * | WDM_OrigSignal |
int | FlagSimplifiedReceiver |
int | DemuxChannArrayIndex |
string | Job |
int | ObjectInitialized |
double | PropagatedLength |
int | RecMapNum |
string | PostDispCompFileNameSuffix |
ReceiverSubsystem::ReceiverSubsystem | ( | ) |
References ObjectInitialized.
ReceiverSubsystem::ReceiverSubsystem | ( | OptSignal * | WDMSignal, | |
RanNumGen * | RNG2, | |||
string | InDir, | |||
string | Job2, | |||
int | DemuxChannArrayIndex2, | |||
OptDataWriter * | DataWriter2 | |||
) |
References ReceiverSubsystemInit().
ReceiverSubsystem::ReceiverSubsystem | ( | OptSignal * | WDMSignal, | |
int | DemuxChannArrayIndex2, | |||
string | OptFilterFileName, | |||
string | ElecFilterFileName, | |||
string | PhotodetectorFileName, | |||
string | ElecSignalStatFileName | |||
) |
References InitSimplifiedReceiver().
ReceiverSubsystem::~ReceiverSubsystem | ( | ) |
References FlagSimplifiedReceiver, ObjectInitialized, oElecFilter, oElecSignalStat, oOptDemuxer, oOptFilter, oPhotodetector, RonEyeDiagram, SCSignal, TunableFilter, ElecSignalStat::~ElecSignalStat(), Histogram2D::~Histogram2D(), OptDemuxer::~OptDemuxer(), OptSignal::~OptSignal(), and Photodetector::~Photodetector().
void ReceiverSubsystem::DemultiplexSingleChannnel | ( | int | DemuxChannArrayIndex2 | ) |
References OptDemuxer::ExtractSingleChannel(), and oOptDemuxer.
Referenced by ReceiveSingleChannel().
void ReceiverSubsystem::InitSimplifiedReceiver | ( | OptSignal * | WDMSignal, | |
int | DemuxChannArrayIndex2, | |||
string | OptFilterFileName, | |||
string | ElecFilterFileName, | |||
string | PhotodetectorFileName, | |||
string | ElecSignalStatFileName | |||
) |
void ReceiverSubsystem::PostProcessReceiverStats | ( | int | ExptNum, | |
int | MapNum, | |||
int | AppendFlag | |||
) |
void ReceiverSubsystem::ReceivePreviouslyDemultiplexedSingleChannnel | ( | void | ) |
void ReceiverSubsystem::ReceiverSubsystemInit | ( | OptSignal * | WDMSignal, | |
RanNumGen * | RNG2, | |||
string | InDir, | |||
string | Job2, | |||
int | DemuxChannArrayIndex2, | |||
OptDataWriter * | DataWriter2, | |||
string | PostDispCompFileNameSuffix2, | |||
fftPowerMatrices & | sfftPM2, | |||
fftPowerMatrices & | WorksfftPM2, | |||
OptSignal * | GlobalSCSignal, | |||
OptSpectrumAnalyzer * | PowerMeter2, | |||
OptDemuxer * | Demuxer2, | |||
cplx * | MeasuredFilterFreq | |||
) |
void ReceiverSubsystem::ReceiverSubsystemInit | ( | OptSignal * | WDMSignal, | |
RanNumGen * | RNG2, | |||
string | InDir, | |||
string | Job2, | |||
int | DemuxChannArrayIndex2, | |||
OptDataWriter * | DataWriter2 | |||
) |
References DataWriter, DemuxChannArrayIndex, FlagSimplifiedReceiver, OptSignal::GetTypeSimulation(), Job, LogFile, LogFileSeparator(), ObjectInitialized, oElecFilter, oElecSignalStat, oOptDemuxer, oOptFilter, oPhotodetector, PostDispCompFileNameSuffix, RonEyeDiagram, SCSignal, and TunableFilter.
Referenced by ReceiverSubsystem().
void ReceiverSubsystem::ReceiveSignal | ( | OptSignal * | WDMSignal, | |
int | UpdateIvansEDFlag, | |||
int | OutputPD_DataFlag, | |||
int | ExptNum, | |||
int | MapNum, | |||
double | PropagatedLength2 | |||
) |
References DemuxChannArrayIndex, Photodetector::DetectOptSignal(), OptDemuxer::ExtractChannel(), ElecFilter::FilterElecSignal(), OptFilter::FilterOptSignal(), OptSignal::GetCenterFreq(), ElecSignalStat::GetClockRecoveryTime(), OptDemuxer::GetDoAdditionalFiltering(), OptSignal::GetFrequency(), Job, oElecFilter, oElecSignalStat, oOptDemuxer, oOptFilter, oPhotodetector, PropagatedLength, RonEyeDiagram, SCSignal, OptFilter::SetRelativeCenterFreq(), Photodetector::TimeShiftSignal(), Histogram2D::UpdateEyeDiagram(), ElecSignalStat::UpdatePerformanceStatistics(), and ElecSignalStat::WriteFileEyeDiagram().
void ReceiverSubsystem::ReceiveSignalBackToBack | ( | OptSignal * | WDMSignal | ) |
References Histogram2D::Clear(), ElecSignalStat::ClearElecSignalStat(), ElecSignalStat::ComputePerformanceStatistics(), DemuxChannArrayIndex, Photodetector::DetectOptSignal(), OptDemuxer::ExtractChannel(), ElecFilter::FilterElecSignal(), OptFilter::FilterOptSignal(), ElecSignalStat::GetAmplitudeMargin(), ElecSignalStat::GetBit0_PowerMean(), ElecSignalStat::GetBit0_PowerStdDev(), ElecSignalStat::GetBit1_PowerMean(), ElecSignalStat::GetBit1_PowerStdDev(), OptSignal::GetCenterFreq(), ElecSignalStat::GetClockRecoveryTime(), OptDemuxer::GetDoAdditionalFiltering(), OptSignal::GetFrequency(), ElecSignalStat::GetMeanPower(), ElecSignalStat::GetQ_Factor(), ElecSignalStat::GetQtBit0(), ElecSignalStat::GetQtBit1(), Job, Linear2dB(), LogFile, LogFileSeparator(), oElecFilter, oElecSignalStat, oOptDemuxer, oOptFilter, oPhotodetector, PropagatedLength, RonEyeDiagram, SCSignal, OptFilter::SetRelativeCenterFreq(), Photodetector::TimeShiftSignal(), Histogram2D::UpdateEyeDiagram(), Histogram2D::WriteEyeDiagramHistogram(), and ElecSignalStat::WriteFileEyeDiagram().
void ReceiverSubsystem::ReceiveSignalBackToBackCenterFreq | ( | OptSignal * | WDMSignal, | |
double | CenterFreqOptFilter, | |||
BitString * | SCBitString, | |||
bool | OutputEye, | |||
bool | DoDemuxFilter | |||
) |
References ElecSignalStat::ClearElecSignalStat(), ElecSignalStat::ComputePerformanceStatistics(), Photodetector::DetectOptSignal(), OptDemuxer::ExtractChannelCenterFreq(), ElecFilter::FilterElecSignal(), Job, oElecFilter, oElecSignalStat, oOptDemuxer, oPhotodetector, PropagatedLength, SCSignal, ElecSignalStat::WriteFileEyeDiagram(), and WriteStatsCenterFreq().
void ReceiverSubsystem::ReceiveSignalCenterFreq | ( | OptSignal * | WDMSignal, | |
double | PropagatedLength2, | |||
int | MapNum, | |||
double | CenterFreqOptFilter, | |||
BitString * | SCBitString, | |||
bool | OutputEye, | |||
bool | DoDemuxFilter | |||
) |
References ElecSignalStat::ClearElecSignalStat(), ElecSignalStat::ComputePerformanceStatistics(), Photodetector::DetectOptSignal(), OptDemuxer::ExtractChannelCenterFreq(), ElecFilter::FilterElecSignal(), Job, oElecFilter, oElecSignalStat, oOptDemuxer, oPhotodetector, PropagatedLength, SCSignal, ElecSignalStat::WriteFileEyeDiagram(), and WriteStatsCenterFreq().
void ReceiverSubsystem::ReceiveSingleChannel | ( | void | ) |
References DemuxChannArrayIndex.
void ReceiverSubsystem::ReceiveSingleChannel | ( | int | DemuxChannelArrayIndex2 | ) |
void ReceiverSubsystem::SetReceiverMapNumber | ( | int | Value | ) | [inline] |
void ReceiverSubsystem::WriteStats | ( | int | ExptNum, | |
int | MapNum, | |||
int | AppendFlag | |||
) |
References DemuxChannArrayIndex, ElecSignalStat::GetAmplitudeMargin(), ElecSignalStat::GetBit0_PowerMean(), ElecSignalStat::GetBit0_PowerStdDev(), ElecSignalStat::GetBit1_PowerMean(), ElecSignalStat::GetBit1_PowerStdDev(), ElecSignalStat::GetBitErrorRate(), ElecSignalStat::GetClockCurrent(), ElecSignalStat::GetClockRecoveryTime(), ElecSignalStat::GetMeanPower(), ElecSignalStat::GetQ_Factor(), ElecSignalStat::GetQtBit0(), ElecSignalStat::GetQtBit1(), Job, Linear2dB(), oElecSignalStat, PostDispCompFileNameSuffix, and PropagatedLength.
Referenced by PostProcessReceiverStats().
void ReceiverSubsystem::WriteStatsCenterFreq | ( | int | MapNum, | |
bool | AppendFlag | |||
) |
References ElecSignalStat::GetBit0_PowerMax(), ElecSignalStat::GetBit0_PowerMean(), ElecSignalStat::GetBit0_PowerStdDev(), ElecSignalStat::GetBit1_PowerMean(), ElecSignalStat::GetBit1_PowerMin(), ElecSignalStat::GetBit1_PowerStdDev(), ElecSignalStat::GetMinAmplitudeMargin(), ElecSignalStat::GetQ_Factor(), Job, and oElecSignalStat.
Referenced by ReceiveSignalBackToBackCenterFreq(), and ReceiveSignalCenterFreq().
Referenced by ReceiverSubsystemInit().
int ReceiverSubsystem::DemuxChannArrayIndex [private] |
int ReceiverSubsystem::FlagSimplifiedReceiver [private] |
Referenced by InitSimplifiedReceiver(), ReceiverSubsystemInit(), and ~ReceiverSubsystem().
string ReceiverSubsystem::Job [private] |
int ReceiverSubsystem::ObjectInitialized [private] |
Referenced by ReceiverSubsystem(), ReceiverSubsystemInit(), and ~ReceiverSubsystem().
Referenced by InitSimplifiedReceiver(), ReceiverSubsystemInit(), ReceiveSignal(), ReceiveSignalBackToBack(), and ~ReceiverSubsystem().
string ReceiverSubsystem::PostDispCompFileNameSuffix [private] |
Referenced by PostProcessReceiverStats(), ReceiverSubsystemInit(), and WriteStats().
double ReceiverSubsystem::PropagatedLength [private] |
int ReceiverSubsystem::RecMapNum [private] |
Referenced by ReceiverSubsystemInit(), and ~ReceiverSubsystem().
OptSignal* ReceiverSubsystem::WDM_OrigSignal [private] |
Referenced by InitSimplifiedReceiver().