Code Wizard

The Code Wizard is activated by selecting from the menu Wizards -> Code Wizard.


Figure 1: The Code Wizard

The Code Wizard may be usefull for programmers using any of the HUGIN APIs for application development. In some scenarios loading a HUGIN model from a file is impractical and embedding the model in code may the only solution. The Wizard generates a code snippet for constructing a runtime model.

The code produced has the following properties:

  • Constructs a DOMAIN (For OOBNs this means the DOMAIN resulting from unfolding the OOBN model)

  • DOMAIN is triangulated using the triangulation available at code generation time

  • No error checking or error handling