forum.hugin.com

User Forums => HUGIN API Discussion => C# => Topic started by: leif on August 13, 2007, 16:32:15

Title: faulty case output
Post by: leif on August 13, 2007, 16:32:15
Hello,
I hope you can help me to solve my problem. I have to save the state of the current loaded domain with all cases.
If I use the Domain.SaveCase(filename) method, I will not get all cases. I can only safe the cases of nodes which are not an ouput node.
I've tried also the SaveAsKB(filename) method.

Is there anything to get all cases of a domain?
Title: Re: faulty case output
Post by: Anders L Madsen on August 14, 2007, 08:54:17
Assuming the data to be stored in a file is a set of cases (and not a single case of evidence), the appropriate method to use is the "saveCases" method. That is, data entered to a Domain object using the "newCase" and "setCaseState" methods or the "parseCases" method can be stored in a file using the "saveCases" method. This method saves all cases entered in the Domain object in a file with a given file name (if the file exists, it is overwritten).
(The "saveCase" method stores the evidence entered to a Domain object in a file).