System add setNotSharedAll

This commit is contained in:
KongDong 2024-09-07 09:19:55 +08:00
parent 2e5b180b9b
commit 985934d58e
2 changed files with 15 additions and 0 deletions

View File

@ -126,6 +126,18 @@ void System::initParam() {
setParam<bool>("shared_sp", false);
}
void System::setNotSharedAll() {
setParam<bool>("shared_tm", false);
setParam<bool>("shared_ev", false);
setParam<bool>("shared_cn", false);
setParam<bool>("shared_sg", false);
setParam<bool>("shared_mm", false);
setParam<bool>("shared_st", false);
setParam<bool>("shared_tp", false);
setParam<bool>("shared_pg", false);
setParam<bool>("shared_sp", false);
}
void System::baseCheckParam(const string& name) const {
if ("max_delay_count" == name) {
HKU_ASSERT(getParam<int>("max_delay_count") >= 0);

View File

@ -151,6 +151,9 @@ public:
const TradeRequest& getSellShortTradeRequest() const;
const TradeRequest& getBuyShortTradeRequest() const;
/** 将所有组件全部置为非共享 */
void setNotSharedAll();
/**
*
* @note