vsTASKER 7 User Manual
×
Menu
Index

Knowledge

 
Knowledge is a set of Contexts processing a base of Facts and Rules (proposals) like a simple expert system would do with an inference engine from zero order.
The difference between a Logic and a Knowledge is that the first one is procedural while the second is declarative.
Knowledge might not be appropriate for all situations. It is best when decisions must be made according to well known rules or conditions which can occur at any time outside of a predefined sequence of actions or states.
knowledge can be used to trigger some Logics and stop some others.
It is a good approach to let Knowledge plays with Facts and Logic uses Events.
Refer to the Tutorial to learn how to create your own.
 
 
 

Add Knowledge: create a new Knowledge in the database. Can also use from the toolbar.
 
Import: list all exported Knowledge available in /Data/Shared directory
 
Select All: select all Logics of the database (useful for moving symbols or deleting them).
  
 
scen() or S: is a macro that returns a pointer to the Scenario instance that holds the Entity instance that holds the Logic instance that holds the current Choice.
ent() or E:  is a macro that returns a pointer to the Entity instance that holds the Logic instance that holds the current Choice.
know() or K: is a macro that returns a pointer to the current Knowledge instance.