Ieee80211SymbolDomainTest.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. //
  2. // Copyright (C) 2014 OpenSim Ltd.
  3. //
  4. // This program is free software; you can redistribute it and/or
  5. // modify it under the terms of the GNU Lesser General Public License
  6. // as published by the Free Software Foundation; either version 2
  7. // of the License, or (at your option) any later version.
  8. //
  9. // This program is distributed in the hope that it will be useful,
  10. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. // GNU Lesser General Public License for more details.
  13. //
  14. // You should have received a copy of the GNU Lesser General Public License
  15. // along with this program; if not, see <http://www.gnu.org/licenses/>.
  16. //
  17. #ifndef __INET_IEEE80211SYMBOLMODELTEST_H
  18. #define __INET_IEEE80211SYMBOLMODELTEST_H
  19. #include "inet/common/INETDefs.h"
  20. #include "inet/physicallayer/ieee80211/bitlevel/Ieee80211OFDMEncoderModule.h"
  21. #include "inet/physicallayer/ieee80211/bitlevel/Ieee80211OFDMModulatorModule.h"
  22. #include "inet/physicallayer/ieee80211/bitlevel/Ieee80211OFDMDemodulatorModule.h"
  23. #include "inet/physicallayer/ieee80211/bitlevel/Ieee80211OFDMDecoderModule.h"
  24. using namespace inet::physicallayer;
  25. namespace inet {
  26. class INET_API Ieee80211SymbolDomainTest : public cSimpleModule
  27. {
  28. protected:
  29. Ieee80211OFDMEncoderModule *ieee80211OFDMSignalEncoder;
  30. Ieee80211OFDMEncoderModule *ieee80211OFDMDataEncoder;
  31. Ieee80211OFDMModulatorModule *ieee80211OFDMSignalModulator;
  32. Ieee80211OFDMModulatorModule *ieee80211OFDMDataModulator;
  33. Ieee80211OFDMDemodulatorModule *ieee80211OFDMSignalDemodulator;
  34. Ieee80211OFDMDemodulatorModule *ieee80211OFDMDataDemodulator;
  35. Ieee80211OFDMDecoderModule *ieee80211OFDMSignalDecoder;
  36. Ieee80211OFDMDecoderModule *ieee80211OFDMDataDecoder;
  37. BitVector input;
  38. protected:
  39. virtual int numInitStages() const { return NUM_INIT_STAGES; }
  40. virtual void initialize(int stage);
  41. virtual void handleMessage(cMessage *msg) { throw cRuntimeError("This module doesn't handle self messages"); }
  42. void parseInput(const char *fileName);
  43. public:
  44. void test() const;
  45. };
  46. } /* namespace inet */
  47. #endif /* __INET_IEEE80211SYMBOLMODELTEST_H */