Removed the externally exposed Connector_Pool and the useless Separate_Node_List && Redesigned Process_Route && Implemented the construction of a non-conflicting execution sequence and set the corresponding working route for each starting node.
This commit is contained in:
+8
-12
@@ -26,18 +26,14 @@ protected:
|
||||
} Edge;
|
||||
|
||||
// 数据池
|
||||
std::vector<std::shared_ptr<Abs_Connector>> Connector_Pool; // 连接点池
|
||||
std::vector<std::shared_ptr<Abs_Node>> Node_Pool; // 节点池
|
||||
std::vector<Edge> Edge_Pool; // 边池
|
||||
std::vector<std::shared_ptr<Abs_Node>> Node_Pool; // 节点池
|
||||
std::vector<Edge> Edge_Pool; // 边池
|
||||
|
||||
/**
|
||||
* 顶层索引为启示工作流节点(N个元素即N个处理流程)
|
||||
* 次级索引为工作流分层
|
||||
* 三级索引为平级工作流节点
|
||||
* 不参与工作流节点仅存于散点列表
|
||||
* 顶层索引为起始工作流节点(N个元素即N个处理流程)
|
||||
* 次级索引为工作序列,表示完成一个处理流程的非冲突序列
|
||||
*/
|
||||
std::vector<std::vector<std::vector<std::shared_ptr<Abs_Node>>>> Process_Route; // 工作层级路由
|
||||
std::vector<std::shared_ptr<Abs_Node>> Separate_Node_List; // 散点列表
|
||||
std::vector<std::vector<std::shared_ptr<Abs_Node>>> Process_Route; // 工作层级路由
|
||||
|
||||
// 删除节点 返回迭代器指定位置的下一个位置的迭代器,仅限内部使用
|
||||
std::vector<std::shared_ptr<Abs_Node>>::iterator Del_Node(std::vector<std::shared_ptr<Abs_Node>>::iterator iterator);
|
||||
@@ -67,10 +63,10 @@ public:
|
||||
// 清除工作路由 true -> success / false -> failed
|
||||
bool Clear_Process_Route(void);
|
||||
|
||||
// 读取配置文件
|
||||
bool Read_Config(const char *file_path);
|
||||
// 加载取配置文件 true -> success / false -> failed
|
||||
bool Load_Config(const char *file_path);
|
||||
|
||||
// 存储配置文件
|
||||
// 存储配置文件 true -> success / false -> failed
|
||||
bool Store_Config(const char *file_path);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user