EtsT_Pj_Simulation_Update_Callback

Note: Requires OPNET Development Kit

Abstract

Callback: Called whenever a simulation status update message is generated.

Syntax

<simulation_update_callback_name> (client_state_ptr, message_type, message_tlptr, elapsed_time, remaining_time)
Argument Type Description
client_state_ptr void * State information specified by the client when the callback was registered.
message_type EtsT_Pj_Simulation_Message_Type Reason for the update message; one of the simulation message types given in Table 36 Project Package Symbolic Constants.
message_tlptr PrgT_List * Text list containing the update message generated by op_runsim, or PRGC_NIL when message_type is EtsC_Pj_Simulation_Message_Update.
elapsed_time double Amount of simulation time that has elapsed (when message_type is EtsC_Pj_Simulation_Message_Update; 0.0 for all other message types).
remaining_time double Time remaining until the simulation completes (when message_type is EtsC_Pj_Simulation_Message_Update; 0.0 for all other message types).

Return Type

void

No return value.

ets_api_pj.h

Details

This callback gives access to the simulation update messages generated by op_runsim. It can be used to perform needed processing when particular simulation events occur (for example, when the simulation is paused or when it completes).

This callback is registered by Ets_Pj_Simulation_Update_Callback_Register().

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com