Fault default outcome

The engine.
Post Reply
apopescu
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Fault default outcome

Post by apopescu »

Hello,

Is there a function that returns the default outcome of a fault?
network.getDefaultOutcome(node) returns -1 if the node is a fault.

The setter function is:
network.setFaultOutcome(node, 0, true);

I need a function that returns the second parameter from setFaultOutcome. What can I use?

Regards,
Adrian
shooltz[BayesFusion]
Site Admin
Posts: 1417
Joined: Mon Nov 26, 2007 5:51 pm

Re: Fault default outcome

Post by shooltz[BayesFusion] »

apopescu wrote:Is there a function that returns the default outcome of a fault?
network.getDefaultOutcome(node) returns -1 if the node is a fault.
The default outcome is used for observation nodes only. It has nothing to do with fault outcomes of fault nodes.
The setter function is:
network.setFaultOutcome(node, 0, true);
I need a function that returns the second parameter from setFaultOutcome. What can I use?
You should use Network.isFaultOutcome. Note that single fault node can have more than one fault outcome.
apopescu
Posts: 8
Joined: Fri Feb 29, 2008 9:02 am

Post by apopescu »

Thanks, that's exactly the function I was looking for.
Post Reply