HAPI.Class Class Module

Startpage
Overview
Index
HAPI
   |
   HAPI.Class

Properties

HasUserAttribute(strKey As String) [[As Boolean]] (R)
Determines whether a user attribute is set on the Domain object.
Inputs() [[As NodeList]] (R)
GetInputs returns a collection of all nodes set as input for the current Class
Instances() [[As Collection]] (R)
Returns a Collection of all instances created from this Class
Outputs() [[As NodeList]] (R)
GetOutputs returns a collection of all nodes set as output for the current Class
UserAttribute(strKey As String) [[As String]] (RW)
Holds the user attribute value for a given key.
fileName() [[As String]] (R)
Holds either "" or the file name used in the most recent save to or load from an hkb file (see SaveAsHKB and LoadDomainFromHKB).
name() [[As String]] (RW)
nodes() [[As Collection]] (R)
Holds all Node objects of this domain.

Sub Procedures

Delete()
Explicitly deletes a Class object.
EndLogging()
Ends logging and closes log file. Should be called after StartLogging has been called. Logging is usefull when compiling (see Compile).
GenerateTables()
Generates the conditional probability tables for all nodes of this.
GetNodeSize(lW As Long, lH As Long)
Returns the node width and height through two reference arguments for all nodes in Domain.
RemoveUserAttribute(strKey As String)
Removes the specified user attribute.
SaveAsNet(strFileName As String)
Saves current Class as a net file using the specified file name.
SetNodeSize(lW As Long, lH As Long)
Sets node width and height for all nodes in Domain.
StartLogging(strFileName As String)
Starts logging in specified file. Logging is usefull when compiling (see Compile).

Functions

AddNewInstance(lCls As Class) As Node
Insert an instance of the given Class into this Class
CreateDomain() As Domain
Create a runtime Domain from this Class
GetAttributes() As Collection
Return an list of attrubutes for the current object.
GetNewNode(lCat As hCategories, lKind As hKinds) As Node
Returns a new node of the specified type (see hCategories and hKinds).
GetNodeByName(strName As String) As Node
Returns the Node object with the specified name (Nothing if no such node exists).

Description

The Class class is one of the principal structures in HUGIN. When using the Object Oriented features of HUGIN, Classes must be used for creating the networks. Furthermore, all Classes which are to be used as instances in a given Class must be contained in the same ClassCollection as this. Classes can not, however, be used for inference. For this purpose, it is necessary to instantiate the Class into a Domain, which can be used for performing inference.
HUGIN Expert A/S, 2008 - comments to activex@hugin.com