-
Notifications
You must be signed in to change notification settings - Fork 3
Structure of BT library
Alberto Tacchella edited this page Jun 13, 2018
·
1 revision
The BT library is currently structured as follows:
-
the file
bt.vdefines three modules:-
BT_SIGcollects all the parameters (as of now it contains only the set of skills, other stuff may be added later) -
BT_binaryis a parametric module overBT_SIGwhich contains a possible implementation of the BT data type (with binary nodes only); -
BT_generalis another parametric module overBT_SIGwhich contains another possible implementation of the same data type (trees with arbitrary branching).
-
-
in the example files you can find how to concretely instantiate such modules:
- load the library with the command
Require Import bt - specify a concrete set of skills, as in the
ex_skillsmodule - define a module
my_btas the instantiation of (e.g.)BT_binaryover the "concrete" moduleex_skills - at this point you can define concrete examples of BTs (over the specified set of skills); it is convenient to add a directive
Import my_btin order to avoid using annoying qualified names (e.g.my_bt.Skillinstead ofSkill, etc.)
- load the library with the command