Hugin .NET API Reference Library
Class Class
Namespaces > HAPI > Class
Instances of the Class class represent object-oriented Bayesian networks and influence diagrams.
Syntax
C#Visual BasicManaged C++
public class Class : NetworkModel
Public Class Class _
	Inherits NetworkModel
public ref class Class : public NetworkModel
Members
All MembersConstructorsMethodsPropertiesFieldsEvents



IconMemberDescription
ClassNew(ClassCollection)
Constructs a new Class in a ClassCollection.
ClassNew(ClassCollection, String)
Constructs a new named Class in a ClassCollection.
CloseLogFile()
Closes the log file associated with this NetworkModel.
(Inherited from NetworkModel.)
CreateDBNDomain(UInt64)
Creates a DBN runtime domain from this Class object. The domain is formed by linking (through temporal clones) the specified number of instances (called time slices) of the class.
CreateDomain()
Unfolds the Class to a Domain that can be compiled and used for inference, etc.
Delete()
Deletes this Class, including all Nodes belonging to it.
(Overrides NetworkModel.Delete().)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
GenerateTables()
Generates the conditional probability tables for all nodes of this NetworkModel.
(Inherited from NetworkModel.)
GetAttribute(String)
Returns the value associated with a particular attribute in the attribute list for this NetworkModel.
(Inherited from NetworkModel.)
GetAttributes()
Returns the list of attributes associated with this NetworkModel.
(Inherited from NetworkModel.)
GetClassCollection()
Returns the ClassCollection to which this Class belongs.
GetFileName()
Returns the file name most recently used for loading or saving this NetworkModel.
(Inherited from NetworkModel.)
GetHashCode()
Serves as a hash function for a particular type. GetHashCode() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
GetInputs()
Returns a list of the input nodes defined for this Class.
GetInstances()
Returns the list of InstanceNodes that are instances of this Class.
GetLogFile()
Returns the name of the most recent log file opened by OpenLogFile(String, Boolean) or OpenLogFile(String).
(Inherited from NetworkModel.)
GetName()
Gets the name of this Class.
GetNodeByName(String)
Returns a Node by name. If no node by the given name exists, 'null' is returned.
NOTE: A node naming scheme is applied when creating a runtime domain for OOBNs, for more on this read Example 5: Node naming scheme for oobn under R:Project.
(Inherited from NetworkModel.)
GetNodes()
Returns the Nodes of this NetworkModel. No ordering can be inferred.
(Inherited from NetworkModel.)
GetNodeSize()
Returns the size of the displayed nodes.
(Inherited from NetworkModel.)
GetOutputs()
Returns a list of the output nodes defined for this Class.
GetType()
Gets the Type of the current instance.
(Inherited from Object.)
GetUserData()
Returns the value stored within the user data slot of this NetworkModel.
(Inherited from NetworkModel.)
IsAlive()
Is this NetworkModel object alive?
(Inherited from NetworkModel.)
MemberwiseClone()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OpenLogFile(String)
Opens a log file to be associated with this NetworkModel. The file is opened in create mode.
(Inherited from NetworkModel.)
OpenLogFile(String, Boolean)
Opens a log file to be associated with this NetworkModel.
(Inherited from NetworkModel.)
ParseNodes(String, ParseListener)
Parses file named fileName and returns a NodeList. This is used for reading an elimination order from a file.
(Inherited from NetworkModel.)
SaveAsNet(String)
Writes a NET description of this NetworkModel to a file.
(Inherited from NetworkModel.)
SetAttribute(String, String)
Inserts the key/value pair in the attribute list for this NetworkModel.
(Inherited from NetworkModel.)
SetAttributes(List<(Of Attribute>))
Sets the attributes of this NetworkModel to attributes.
(Inherited from NetworkModel.)
SetName(String)
Sets the name of this Class.
SetNodeSize(Size)
Sets the size of the nodes.
(Inherited from NetworkModel.)
SetUserData(Object)
Sets the user data field of this NetworkModel.
(Inherited from NetworkModel.)
ToString()
Returns a String that represents the current Object.
(Inherited from Object.)
Remarks
Instances of the Class class represent object-oriented Bayesian networks and influence diagrams. Such an instance can contain nodes representing instances of other network classes and so on. To use an instance (i.e., propagate evidence and calculate updated beliefs and expected utilities), it must first be unfolded to a plain Bayesian network or influence diagram. The CreateDomain() method handles this.
Inheritance Hierarchy
Object
NetworkModel
 Class

Assembly: hugincs-8.6-2.0-x64 (Module: hugincs-8.6-2.0-x64)