rtitask.hpp

来自「一个非常好的人工智能开发工具开源软件」· HPP 代码 · 共 50 行

HPP
50
字号
/*** *** See the file "L2_RTI_EO1/disclaimers-and-notices-L2.txt" for  *** information on usage and redistribution of this file,  *** and for a DISCLAIMER OF ALL WARRANTIES. ***//** * \defgroup RTI * The RTI module receives messages from SCL and sends messages to Livingstone. */#ifndef RTITask_H#define RTITask_H#include "SCL2L2Interface.h"#include "Policy.hpp"/** * Method listenForMonitorEvents() runs in its own task. This task receives * messages from the SCL task and, using its Policy object to decide the * timing, in response sends messages to the L2Task. Upon exit, it sends an * exit message to the L2Task. * \ingroup RTI */class RTITask { public:  /** The default constructor does nothing. */  RTITask( void );  /** The destructor sends an exit message to the L2Task. */  ~RTITask( void );  /** This member function runs in its own task. */  void listenForMonitorEvents( void ); private:  /**   * Serves the RTITask by deciding when to send to Livingstone 2 commands,   * observations and request for diagnoses.   */  Policy d_policy;  /**   * Dispatch on the incoming message's op code   * \param monitor an incoming message from SCL   */  int invokePolicy(MONITOR_DATA& monitor);};#endif /* RTITask_H */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?