This interface holds the configuration of an IntelliBlink algorithm tool, including its name, input parameters.
More...
This interface holds the configuration of an IntelliBlink algorithm tool, including its name, input parameters.
Usually you get the LIBAlgoConfig object from ILIBTaskConfig, or directly from ILIBService::GetAlgoConfig(). You can then use this interface to access individual input parameters, and modify them.
Example Code
C++
ILIBAlgoConfigPtr algoInputs = ibService->GetAlgoConfig(ibTaskId, L"algorithm name");
int dataCount = algoInputs->Count();
for (int i = 0; i < dataCount; ++i) {
ILIBDataPtr ibData = outputResult->Item(i);
double oldValue = ibData->ToDouble();
ibData->FromDouble(newValue);
algoInputs->PutConfig(ibData->Name, ibData);
}
ibService->SetAlgoConfig(ibTaskId, L"algorithm name", algoInputs);
C#
LIBAlgoConfig algoInputs = ibService.GetAlgoConfig(ibTaskId, "algorithm name");
int dataCount = algoInputs.Count();
for (int i = 0; i < dataCount; ++i) {
LIBData ibData = outputResult.Item(i);
double oldValue = ibData.ToDouble();
ibData.FromDouble(newValue);
algoInputs.Config[ibData.Name] = ibData;
}
ibService.SetAlgoConfig(ibTaskId, "algorithm name", algoInputs);
COM
ILIBAlgoConfigPtr algoInputs = ibService->GetAlgoConfig(ibTaskId, L"algorithm name");
int dataCount = algoInputs->Count();
for (int i = 0; i < dataCount; ++i) {
ILIBDataPtr ibData = outputResult->Item(i);
double oldValue = ibData->ToDouble();
ibData->FromDouble(newValue);
algoInputs->Config[ibData->Name] = ibData;
}
ibService->SetAlgoConfig(ibTaskId, L"algorithm name", algoInputs);
Note: This interface is currently not available on Linux / MacOS platform.