What Does a Framework Look Like? - Gnorion/BizVR GitHub Wiki

Here’s what a framework looks like in code. Its simply a component that contains

  1. the interface classes (iPredator and iPrey),
  2. a class that contains the rules (Frame) and
  3. any other supporting code (in this case the association class Eaten) \

There is no Main class or start method.

The method called evolve is the one that contains the inference block (posts the rules and start the chaining).

This is a public method that we will use later to invoke the rules.

Notice that there are no domain classes in the framework component. image