Repair


Description

In the Evidence collection of a troubleshooting network, repair a node.

Repair puts the node in its normal (0th) state in the Evidence collection. It also remove any infomation for the Evidence collection that the repair makes out of date.

Syntax

theEvidence.Repair(indexNode)

Parameter Description
theEvidence Evidence collection of a troubleshooting model..
indexNode An integer, or a string, or a Node object specifying the Node object to add to the collection. The zero-based integer is a index into the ModelNodes collection. Likewise, the Node object must be in the ModelNodes collection and the string must be the name of a Node object in the ModelNodes collection.

 

Remarks

Repair puts the node in its normal (0th) state in the Evidence collection. It also remove any infomation for the Evidence collection that the repair makes out of date.

In a troubleshooting model (a model containing cost information, not just probabilities) some nodes can be repaired not just observed. Repairing a node is much like setting it to its normal states. The difference is when a node is repaired some old observations become out of date.

For example, if you observe that the lights of a car don't work and then you repair the battery, your previous observation about the lights is out of date. In other words, you no longer know if the lights work.

As a side effect of Repair, MSBN3 automatically removes any out of date information from the Evidence collection. The automatic removal can be monitored via a pair of events: EvidenceAdd and EvidenceRemove.

Return Value

None.

Applies To

Evidence

Also See

Set (Assignment, Evidence)

Inference: an Overview