set_ncc_model_paramT_set_ncc_model_paramSetNccModelParamSetNccModelParamset_ncc_model_param (算子)
名称
set_ncc_model_paramT_set_ncc_model_paramSetNccModelParamSetNccModelParamset_ncc_model_param — 设置 NCC 模型的选定参数。
签名
描述
算子 set_ncc_model_paramset_ncc_model_paramSetNccModelParamSetNccModelParamSetNccModelParamset_ncc_model_param sets the selected parameters
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name in the NCC model ModelIDModelIDModelIDModelIDmodelIDmodel_id. The following
parameters can be modified:
'timeout'"timeout""timeout""timeout""timeout""timeout"
Sets the maximum runtime of the operators used to find the NCC model
ModelIDModelIDModelIDModelIDmodelIDmodel_id (using find_ncc_modelfind_ncc_modelFindNccModelFindNccModelFindNccModelfind_ncc_model). This is especially useful
in cases where a maximum cycle time has to be ensured. The 'timeout'"timeout""timeout""timeout""timeout""timeout"
must be given in milliseconds. The temporal accuracy depends on several
factors including the size of the model, the speed of your computer, and
the 'timer_mode'"timer_mode""timer_mode""timer_mode""timer_mode""timer_mode" set via set_systemset_systemSetSystemSetSystemSetSystemset_system。Be aware that the
runtime of the search increases by up to 10 percent with activated timeout.
To disable the timeout you can either use a negative value or
'false'"false""false""false""false""false".
执行信息
- 多线程类型:可重入(与非独占算子并行运行)。
- 多线程作用域:全局(可从任何线程调用)。
- 未采用并行化处理。
此算子修改后续输入参数的状态:
在执行此算子时,若该参数值需在多个线程间使用,则必须对其访问进行同步。
参数
ModelIDModelIDModelIDModelIDmodelIDmodel_id (输入控制,状态被修改) ncc_model → HNCCModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Handle of the model.
GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (输入控制) attribute.name-array → HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Parameter names.
值列表:
'timeout'"timeout""timeout""timeout""timeout""timeout"
GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (输入控制) attribute.value-array → HTupleSequence[Union[float, int, str]]HTupleHtuple (real / integer / string) (double / int / long / string) (double / Hlong / HString) (double / Hlong / char*)
Parameter values.
结果
如果参数有效,算子 set_ncc_model_paramset_ncc_model_paramSetNccModelParamSetNccModelParamSetNccModelParamset_ncc_model_param 返回值 2 ( H_MSG_TRUE )。如有必要,则抛出异常。
可能的前趋
create_ncc_modelcreate_ncc_modelCreateNccModelCreateNccModelCreateNccModelcreate_ncc_model
可能的后继
find_ncc_modelfind_ncc_modelFindNccModelFindNccModelFindNccModelfind_ncc_model
模块
匹配