All Manuals > KnowledgeWorks and Prolog User Guide > 7 Reference Guide

current-cycle Function

Summary

Returns the current forward chaining cycle number.

Package

kw

Signature

current-cycle => cycle-number

Values
cycle-number
An integer.
Description

The function current-cycle returns the current cycle number of the forward chaining rule interpreter in the current inferencing state. If the forward chaining rule interpreter is not running, then it returns the total number of cycles executed by the forward chaining rule interpreter the last time it ran. If the forward chaining rule interpreter has not run at all, then it return zero.

See also

*inferencing-state*


KnowledgeWorks and Prolog User Guide (Macintosh version) - 01 Dec 2021 19:35:35