Jan Burse, erstellt 12. Feb 2019
* Since recently we have introduce hierarchical knowledge bases.
* They are already used in the Swing GUI, but not in the Android GUI.
* Every Swing console window runs in its own sub knowledge base which
* provides a separate class loader. The current knowledge base stack
* can be listed by the store/0 command:
* Example, in Swing GUI:
* ?- stores.
* Example, in Android GUI:
* ?- stores.
* Knowledge base properties can be query by the predicate
* store_property/2. The predicates set_store_property/2 and
* reset_store_property/2 serve updating knowledge base properties.
* This module also provides accessing thread stack frames via
* the predicate frame_property/2.
* Warranty & Liability
* To the extent permitted by applicable law and unless explicitly
* otherwise agreed upon, XLOG Technologies GmbH makes no warranties
* regarding the provided information. XLOG Technologies GmbH assumes
* no liability that any problems might be solved with the information
* provided by XLOG Technologies GmbH.
* Rights & License
* All industrial property rights regarding the information - copyright
* and patent rights in particular - are the sole property of XLOG
* Technologies GmbH. If the company was not the originator of some
* excerpts, XLOG Technologies GmbH has at least obtained the right to
* reproduce, change and translate the information.
* Reproduction is restricted to the whole unaltered document. Reproduction
* of the information is only allowed for non-commercial uses. Selling,
* giving away or letting of the execution of the library is prohibited.
* The library can be distributed as part of your applications and libraries
* for execution provided this comment remains unchanged.
* Only to be distributed with programs that add significant and primary
* functionality to the library. Not to be distributed with additional
* software intended to replace any components of the library.
* Jekejeke is a registered trademark of XLOG Technologies GmbH.
* rule_frame(H, B, F):
* The predicate succeeds with the user clauses that match H :- B. The
* predicate also unifies F with the new frame reference for the
* found clauses.
% rule_frame(+Term, -Goal, -Frame)
* frame_property(F, P):
* The predicate succeeds for the properties P of the frame F.
% frame_property(+Frame, -Property)
sys_frame_property/2, 'SpecialFrame', 2).
sys_frame_property_chk/3, 'SpecialFrame', 3).
* store_property(F, P):
* The predicate succeeds for the properties P of the store F.
% store_property(+Frame, -Property)
sys_store_property/2, 'SpecialFrame', 4).
sys_store_property_chk/3, 'SpecialFrame', 5).
* set_store_property(S, Q):
* The predicate assigns the property Q to the store S.
% set_store_property(+Oper, +Property)
set_store_property/2, 'SpecialFrame', 6).
* reset_store_property(S, Q):
* The predicate de-assigns the property Q from the store S.
% reset_store_property(+Oper, +Property)
reset_store_property/2, 'SpecialFrame', 7).
* The predicate lists the store chain of the current thread.