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
Fault default outcome
-
- Site Admin
- Posts: 1417
- Joined: Mon Nov 26, 2007 5:51 pm
Re: Fault default outcome
The default outcome is used for observation nodes only. It has nothing to do with fault outcomes of fault nodes.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.
You should use Network.isFaultOutcome. Note that single fault node can have more than one fault outcome.The setter function is:
network.setFaultOutcome(node, 0, true);
I need a function that returns the second parameter from setFaultOutcome. What can I use?