#ifndef CSCI_SIMULATION_TASK_H #define CSCI_SIMULATION_TASK_H #include #include class SimulationTask:public QObject { Q_OBJECT private: QHash _state; public: SimulationTask(); SimulationTask(const SimulationTask &task); public: void setSate(const QString& key, const QVariant& state); public: // TODO 具体模型需要实现的计算 static void compute(QHash state); public:signals: void feather(QVariant state); public slots: void run(); }; #endif //CSCI_SIMULATION_TASK_H