You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Doc_BoxAlgorithm_StimulationListener.dox-part 6.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. /**
  2. * \page BoxAlgorithm_StimulationListener Stimulation listener
  3. __________________________________________________________________
  4. Detailed description
  5. __________________________________________________________________
  6. * |OVP_DocBegin_BoxAlgorithm_StimulationListener_Description|
  7. * The stimulation listener is a debugging purpose box, with
  8. * the same idea as the \ref Doc_BoxAlgorithm_EBMLStreamSpy box
  9. * but dedicated to stimulation streams. The idea is to dramatically
  10. * reduce the log verbosity so the output may be followed realtime
  11. * if necessary.
  12. * |OVP_DocEnd_BoxAlgorithm_StimulationListener_Description|
  13. __________________________________________________________________
  14. Inputs description
  15. __________________________________________________________________
  16. * |OVP_DocBegin_BoxAlgorithm_StimulationListener_Inputs|
  17. * This box can receive as many input as necessary. All the inputs
  18. * will be of type \ref Doc_Streams_Stimulation in order to
  19. * be parsed by this the reader.
  20. * |OVP_DocEnd_BoxAlgorithm_StimulationListener_Inputs|
  21. * |OVP_DocBegin_BoxAlgorithm_StimulationListener_Input1|
  22. * This is the default input of this box.
  23. * |OVP_DocEnd_BoxAlgorithm_StimulationListener_Input1|
  24. __________________________________________________________________
  25. Settings description
  26. __________________________________________________________________
  27. * |OVP_DocBegin_BoxAlgorithm_StimulationListener_Settings|
  28. * |OVP_DocEnd_BoxAlgorithm_StimulationListener_Settings|
  29. * |OVP_DocBegin_BoxAlgorithm_StimulationListener_Setting1|
  30. * This setting indicates what log level will be used to
  31. * print the the received stimulations.
  32. * |OVP_DocEnd_BoxAlgorithm_StimulationListener_Setting1|
  33. __________________________________________________________________
  34. Examples description
  35. __________________________________________________________________
  36. * |OVP_DocBegin_BoxAlgorithm_StimulationListener_Examples|
  37. * As an example, we could connect a clock stimulator to a
  38. * stimulation listener. Leave the default settings of the
  39. * clock stimulator, so it sends an \e OVTK_StimulationId_Label_00
  40. * stimulation every second. Now chose an appropriate log level
  41. * for the stimulation listener and press 'start'. If you're
  42. * familiar to what \ref Doc_BoxAlgorithm_EBMLStreamSpy produces,
  43. * you may feel more confortable with what is produced here for
  44. * stimulations.
  45. *
  46. * The output should look like this :
  47. \verbatim
  48. ...
  49. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 4294967296 (0x100000000) and duration 0 (0x0)
  50. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 8589934592 (0x200000000) and duration 0 (0x0)
  51. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 12884901888 (0x300000000) and duration 0 (0x0)
  52. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 17179869184 (0x400000000) and duration 0 (0x0)
  53. ...
  54. \endverbatim
  55. *
  56. * Now let's try to understand what is produced. Each line represents
  57. * received stimulation. The input index which received the stimulation
  58. * is printed. Then follow the stimulation code, its date and its duration.
  59. * The stimulation name is retrieved from the type manager when correctly
  60. * registered. Here, you can see that an \e OVTK_StimulationId_Label_00 is
  61. * received every second.
  62. *
  63. * More tests could be done with another clock stimulator with different
  64. * timings and stimulation codes. You will want to add inputs to the stimulation
  65. * listener box in order to get proper results. For example with one more box
  66. * sending \e OVTK_StimulationId_Label_01 every half second, the output would
  67. * look like this :
  68. \verbatim
  69. ...
  70. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 2147483648 (0x80000000) and duration 0 (0x0)
  71. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 4294967296 (0x100000000) and duration 0 (0x0)
  72. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 4294967296 (0x100000000) and duration 0 (0x0)
  73. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 6442450944 (0x180000000) and duration 0 (0x0)
  74. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 8589934592 (0x200000000) and duration 0 (0x0)
  75. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 8589934592 (0x200000000) and duration 0 (0x0)
  76. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 10737418240 (0x280000000) and duration 0 (0x0)
  77. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 12884901888 (0x300000000) and duration 0 (0x0)
  78. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 12884901888 (0x300000000) and duration 0 (0x0)
  79. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 15032385536 (0x380000000) and duration 0 (0x0)
  80. [ INF ] <Box algorithm::Stimulation listener> For input 0 (0x0) with name Stimulation stream 1 got stimulation 33024 (0x8100)[OVTK_StimulationId_Label_00] at date 17179869184 (0x400000000) and duration 0 (0x0)
  81. [ INF ] <Box algorithm::Stimulation listener> For input 1 (0x1) with name Stimulation stream 2 got stimulation 33025 (0x8101)[OVTK_StimulationId_Label_01] at date 17179869184 (0x400000000) and duration 0 (0x0)
  82. ...
  83. \endverbatim
  84. * |OVP_DocEnd_BoxAlgorithm_StimulationListener_Examples|
  85. __________________________________________________________________
  86. Miscellaneous description
  87. __________________________________________________________________
  88. * |OVP_DocBegin_BoxAlgorithm_StimulationListener_Miscellaneous|
  89. * |OVP_DocEnd_BoxAlgorithm_StimulationListener_Miscellaneous|
  90. */