跳转至

用例控制 / Use Case Control

说明 / Overview

获取用例运行信息,以及暂停 / 继续仿真运行的接口。
Interfaces for retrieving use case runtime information and pausing/resuming simulation.

SimOneServiceAPI.SoAPIGetCaseInfo(data)

获取案例详情

Get detailed information about the case.

此函数用于获取当前SimOne案例的详细信息,包括案例名称、案例ID等

This function retrieves detailed information about the current SimOne case, including case name, case ID, etc.

参数:

名称 类型 描述 默认
data SimOne_Data_CaseInfo

存储案例信息的数据结构

The data structure storing case information.

必需

返回:

类型 描述
bool

执行结果:成功或失败

Execution outcome: success or failure.

SimOneServiceAPI.SoGetCaseRunStatus()

获取案例运行状态

Get the current running status of the case.

此函数用于查询SimOne案例的当前运行状态,如是否正在运行或已停止

This function is used to query the current running status of the SimOne case, such as whether it is running or has stopped.

返回:

类型 描述
ESimOne_Case_Status

案例的运行状态,如正在运行或已停止

The running status of the case, such as running or stopped.

SimOneServiceAPI.SoAPIPause()

暂停当前运行案例

Pause the current running case.

此函数用于暂停SimOne环境中的当前执行,特别适用于非帧同步调试场景

This function is used to pause the current execution in the SimOne environment, particularly suited for non-frame-synchronized debugging scenarios.

返回:

类型 描述
int

暂停操作的返回状态,通常为0

The return status of the pause operation, typically 0.

SimOneServiceAPI.SoAPIContinue()

继续运行当前处于暂停状态的案例

Continue to run the current case which is in pause.

此函数用于在非帧同步调试场景中继续SimOne环境中当前暂停的执行

This function is used to continue the currently paused execution in the SimOne environment in non-frame-synchronized debugging scenarios.

返回:

类型 描述
int

继续操作的返回状态,通常为0

The return status of the continue operation, typically 0.