openmanus.cpp/include/flow/flow_factory.h

43 lines
935 B
C
Raw Normal View History

2025-03-10 02:38:39 +08:00
#ifndef OPENMANUS_FLOW_FLOW_FACTORY_H
#define OPENMANUS_FLOW_FLOW_FACTORY_H
#include <string>
#include <memory>
#include <vector>
#include "base_flow.h"
#include "planning_flow.h"
namespace openmanus {
/**
* @class FlowFactory
* @brief
*/
class FlowFactory {
public:
/**
* @brief
* @param flow_type
* @param agent
* @return
*/
static std::shared_ptr<BaseFlow> createFlow(
FlowType flow_type,
std::shared_ptr<AgentBase> agent
);
/**
* @brief
* @param flow_type
* @param agents
* @return
*/
static std::shared_ptr<BaseFlow> createFlow(
FlowType flow_type,
const std::vector<std::shared_ptr<AgentBase>>& agents
);
};
} // namespace openmanus
#endif // OPENMANUS_FLOW_FLOW_FACTORY_H