class Class : public NetworkModel The Class class is one of the principal structures in HUGIN
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.
Note: The Nodes in the Domain will not be immediately identifiable
as the Nodes from the Class (i.e., they will not have meaningfull
names). To determine what Node in the Class a given domain-node
is derived from, you should use Node::getSource().
void saveAsNet(const std::string& filename) throw(ExceptionHugin)
std::string getAttribute(std::string& key) const throw( ExceptionHugin )
std::string getFileName() throw( ExceptionHugin )
NodeList getNodes() const throw(ExceptionHugin)
Node* getNodeByName(const std::string& name) const throw( ExceptionHugin )
void setAttribute(std::string& key, std::string& value) throw(ExceptionHugin)
void setLogFile(FILE *log) throw( ExceptionHugin )
bool hasAttribute(const std::string& key) throw(ExceptionHugin)
std::pair <unsigned int,unsigned int> getNodeSize() throw(ExceptionHugin)
void setNodeSize(unsigned int width, unsigned int height) throw(ExceptionHugin)
std::vector <Attribute*> getAttributes() throw( ExceptionHugin )
void generateTables() throw( ExceptionHugin )
void setName(const std::string& name) throw(ExceptionHugin)
void setName(char* name) throw(ExceptionHugin)
std::string getName() const throw(ExceptionHugin)
NodeList getInputs() throw(ExceptionHugin)
NodeList getOutputs() throw(ExceptionHugin)
NodeList getInstances() throw(ExceptionHugin)
Domain* createDomain() throw(ExceptionHugin)
ClassCollection* getClassCollection() throw(ExceptionHugin)
alphabetic index hierarchy of classes
this page has been generated automatically by doc++
(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de