PrgT_Progress_Update_Proc

Abstract

Callback: Notify the user of the progress of the shortest path calculation taking place.

Syntax

PrgT_Progress_Update_Proc (action_title, end_val, increment_val, action_type, client_state_ptr)
Argument Type Description
action_title const char * Name of the action to occur.
end_val int Total span of the action that occurs.
increment_val int Increment size of action progress.
action_type PrgT_Action_Type Action that occurs during progress reporting (see action_type).
client_state_ptr void * Arbitrary state pointer.

Return Type

int

If the value returned is 1, the function aborted; otherwise it was successful.

prg_djk.h

Details

This function is only called during prg_djk_all_sources_compute(). It updates the user on the progress of the shortest path computation. This function can either use a progress bar for visual updates, or can output update information to a file.

action_type

The possible values for action_type are:

  • PrgC_Action_Start
  • PrgC_Action_Start_Abortable
  • PrgC_Action_Increment
  • PrgC_Action_Change_End
  • PrgC_Action_End

This function is registered by prg_djk_update_proc_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