op_sim_at_end()

Abstract

Determines if the simulation is processing its end of simulation.

Syntax

op_sim_at_end ()
Argument Type Description
no arguments

Return Type

Boolean

Boolean value indicating if the simulation is currently in endsim mode. This value is OPC_TRUE if in endsim mode, OPC_FALSE if not.

Example

if (op_sim_at_end ())
	{
	/* do end of sim things */
	}

Details

This KP is useful for code that needs to distinguish being invoked during normal simulation versus during the end phase, such as function calls scheduled with

op_intrpt_schedule_call (OPC_INTRPT_SCHED_CALL_ENDSIM, ...)

Purpose

Provides a mechanism for determining if a simulation is performing its end of simulation activities.

Errors

  • No errors are trapped.

Reference

  • None.

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · 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