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.
|
|
|
|
|
|
|
|
|
#ifndef CSCI_SIMULATION_CONTROLLER_H
|
|
|
|
|
#define CSCI_SIMULATION_CONTROLLER_H
|
|
|
|
|
|
|
|
|
|
#include "../include/controller/base_controller.h"
|
|
|
|
|
#include "../service/simulation_service.h"
|
|
|
|
|
|
|
|
|
|
class SimulationController : public BaseController<SimulationController> {
|
|
|
|
|
|
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
/**
|
|
|
|
|
* 设置仿真步长
|
|
|
|
|
* @param stepTime 仿真步长时间,ms
|
|
|
|
|
*/
|
|
|
|
|
void setStepTime(int stepTime);
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 开始仿真
|
|
|
|
|
* @param mapId 场景id
|
|
|
|
|
*/
|
|
|
|
|
void start();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 停止仿真
|
|
|
|
|
* @param simId 仿真id
|
|
|
|
|
*/
|
|
|
|
|
void stop();
|
|
|
|
|
|
|
|
|
|
/***
|
|
|
|
|
* 暂停/继续 仿真
|
|
|
|
|
* @param simID
|
|
|
|
|
*/
|
|
|
|
|
void pause();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 播放速度控制
|
|
|
|
|
* FIXME 现阶段不实现
|
|
|
|
|
*/
|
|
|
|
|
void speed();
|
|
|
|
|
|
|
|
|
|
public slots:
|
|
|
|
|
void route(const QString& key, const QString& message) override;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#endif //CSCI_SIMULATION_CONTROLLER_H
|