00001 #ifndef RANDOMFREQUENCYONLYMODEL_H_ 00002 #define RANDOMFREQUENCYONLYMODEL_H_ 00003 00004 #include "AnalogueModel.h" 00005 #include "Mapping.h" 00006 00007 #include <cstdlib> 00008 00024 class RandomFrequencyOnlyModel : public AnalogueModel 00025 { 00026 protected: 00027 00030 const Dimension frequency; 00031 00033 const DimensionSet dimensions; 00034 00035 public: 00052 RandomFrequencyOnlyModel(int seed = 23): 00053 frequency("frequency"), 00054 dimensions(Dimension::time_static(), frequency) { 00055 00056 //sets the seed for random number generation. The PhyLayer 00057 //(which created the analogue models) gets the seed from the 00058 //configuration parameters inside the xml-config 00059 srand(seed); 00060 } 00061 00068 virtual void filterSignal(Signal& s); 00069 }; 00070 00071 #endif /*RANDOMSPACEONLYMODEL_H_*/