Home - GetcuReone/FactFactory GitHub Wiki

Welcome to the FactFactory wiki

Welcome to my Fact Factory project. In this project, I realized my vision of the fact factory. It is a decision tree building mechanism for information processing.

Think of the vertices of the graph as the information you describe, and the edges of the graph as the rules for calculating that information. A fact factory can build a decision tree to calculate one piece of information from another, using your rules to link between your set of information.

General work algorithm

  1. You fill the container with the facts you have;
  2. You demand the facts that you need;
  3. We define a set of rules to compute the facts you need;
  4. We calculate and give you the facts you requested.

Priority of rules

If we are faced with a situation where several rules are able to calculate a fact, then we prioritize as follows:

  • The rule that requires the most facts from the "condition facts" category;
  • The rule that requires the most facts from the "special facts" category;
  • The rule that requires the least number of facts to enter;
  • First rule in the collection of rules.

Related