Author Topic: faulty case output  (Read 10136 times)

Offline leif

  • Newbie
  • *
  • Posts: 1
    • View Profile
faulty case output
« 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?

Offline Anders L Madsen

  • HUGIN Expert
  • Hero Member
  • *****
  • Posts: 2282
    • View Profile
Re: faulty case output
« Reply #1 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).
HUGIN EXPERT A/S