RandomFreqTimeModel.h

00001 #ifndef RANDOMFREQTIMEMODEL_H_
00002 #define RANDOMFREQTIMEMODEL_H_
00003 
00004 #include "AnalogueModel.h"
00005 #include "Mapping.h"
00006 
00007 #include <cstdlib>
00008 
00020 class RandomFreqTimeModel : public AnalogueModel
00021 {
00022 protected:
00023 
00026   const Dimension frequency;
00027 
00029   const DimensionSet dimensions;
00030 
00031 public:
00050   RandomFreqTimeModel(int seed = 23):
00051     frequency("frequency"),
00052     dimensions(Dimension::time_static(), frequency) {
00053 
00054     //sets the seed for random number generation. The PhyLayer
00055     //(which created the analogue models) gets the seed from the
00056     //configuration parameters inside the xml-config
00057     srand(seed);
00058   }
00059 
00066   virtual void filterSignal(Signal& s);
00067 };
00068 
00069 #endif /*RANDOMFREQTIMEMODEL_H_*/