dicetest_sim.cpp
上传用户:jtjnyq9001
上传日期:2014-11-21
资源大小:3974k
文件大小:2k
- //
- // File = dice_test_sim.cpp
- //
- #define SIM_NAME "DiceTest "
- #define SIM_TITLE "Dice Rolling Testbed "
- #include "global_stuff.h"
- #include "dice.h"
- #include "dice_analyzer.h"
- #include "siganchr.h"
- #include "disc_auto_cov.h"
- main()
- {
- #include "sim_preamble.cpp"
- //=========================================================================
- // Misc special processing
- //=========================================================================
- // Allocate signals
- BYTE_SIGNAL(symb_seq);
- //============================================================
- // Construct, initialize and connect models
- DiceRoller* dice_roller = new DiceRoller( "dice_roller ",
- CommSystem,
- symb_seq );
-
- SignalAnchor* bit_seq_anchr = new SignalAnchor( "bit_seq_anchr ",
- CommSystem,
- symb_seq );
- DiceAnalyzer* dice_anlyzr = new DiceAnalyzer( "dice_anlyzr ",
- CommSystem,
- symb_seq );
- DiscreteAutoCovar* disc_corr = new DiscreteAutoCovar( "disc_covar ",
- CommSystem,
- symb_seq);
- //=============================================================
- #include "sim_postamble.cpp"
- return 0;
- }