disc_delay_tester.h
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:1k
- //
- // File = disc_delay_tester.h
- //
- #ifndef _DISC_DELAY_TESTER_H_
- #define _DISC_DELAY_TESTER_H_
- #include "signal_T.h"
- #include "control_T.h"
- #include "psmodel.h"
- template <class T>
- class DiscreteDelayTester : public PracSimModel
- {
- public:
- DiscreteDelayTester< T >( char* instance_name,
- PracSimModel* outer_model,
- Signal<T>* in_signal,
- Signal<T>* out_signal,
- Control<int>* delay_value,
- Control<bool>* delay_change_enabled);
- ~DiscreteDelayTester<T>(void);
- void Initialize(void);
- int Execute(void);
- private:
- //--------------------------------------------
- // state variables and derived parameters
- int Block_Size;
- double Samp_Intvl;
- //--------------------------
- // Signals
- Signal<T> *In_Sig;
- Signal<T> *Out_Sig;
- //-----------------------------------
- // Controls
- Control<int> *Delay_Value;
- Control<bool> *Delay_Change_Enabled;
- };
- #endif