🛰️航天仿真算法库 SpaceAST 0.0.1
载入中...
搜索中...
未找到
StudyWorkbench.hpp
浏览该文件的文档.
1
20
21#pragma once
22
23#include "AstGlobal.h"
24#include "AstCore/Command.hpp"
25#include "AstCore/VariableList.hpp"
26#include "AstScript/Interpreter.hpp"
27#include <memory>
28
29
30AST_NAMESPACE_BEGIN
31
39class AST_ANALYZER_API StudyWorkbench : public Command
40{
41public:
42 AST_OBJECT(StudyWorkbench)
43public:
45
46 errc_t execute() override;
47
49 VariableList& inputs(){return inputs_;}
50 const VariableList& inputs() const {return inputs_;}
51
53 VariableList& outputs(){return outputs_;}
54 const VariableList& outputs() const {return outputs_;}
55
57 Command* relatedCommand() const {return relatedCommand_.get();}
58
60 void setRelatedCommand(Command* command) { relatedCommand_ = command; }
61
63 Interpreter* interpreter() const {return interpreter_.get();}
64private:
65 VariableList inputs_;
66 VariableList outputs_;
67 mutable WeakPtr<Command> relatedCommand_;
68private:
69 mutable std::unique_ptr<Interpreter> interpreter_;
70};
71
72
73
76AST_NAMESPACE_END
77
命令(虚基类),用于定义任务序列中的命令,例如初始状态、轨道机动、轨道预报等
定义 Command.hpp:42
virtual errc_t execute()=0
执行命令
解释器
定义 Interpreter.hpp:40
研究工作台,用于参数扫描研究、优化研究、不确定性分析、区间分析等分析
定义 StudyWorkbench.hpp:40
Command * relatedCommand() const
获取关联的执行命令
定义 StudyWorkbench.hpp:57
void setRelatedCommand(Command *command)
设置关联的执行命令
定义 StudyWorkbench.hpp:60
VariableList & outputs()
获取输出变量列表
定义 StudyWorkbench.hpp:53
VariableList & inputs()
获取输入变量列表
定义 StudyWorkbench.hpp:49
Interpreter * interpreter() const
获取脚本解释器
定义 StudyWorkbench.hpp:63
变量列表
定义 VariableList.hpp:38
弱引用指针
定义 WeakPtr.hpp:35