<< Click to Display Table of Contents >> Navigation: Using SMILE > Diagnosis > Diagnostic roles |
DSL_node::SetDiagType allows for setting for each node one of three possible diagnostic roles, listed in the following enumeration:
enum dsl_diagType { dsl_diagFault, dsl_diagObservation, dsl_diagAux };
•dsl_diagFault is used for diagnostic faults. Diagnostic fault nodes require at least one fault state. During a diagnostic session, SMILE calculates the probabilities of the fault states after a change in the set of observations. To set a state of a diagnostic fault node to be a fault, use DSL_discDef::SetFaultOutcome.
•dsl_diagObservation indicates diagnostic observation. Diagnostic observation nodes can be instantiated (set to specified evidence) during a diagnostic session. Observations can have default outcomes, which are instantiated automatically when a diagnostic session begins. To set the default outcome, call DSL_discDef::SetDefaultOutcome. To mark that the observation node should be included in the ranked list of observations, use DSL_node::SetDiagRanked. To make the observation mandatory, use DSL_node::SetDiagMandatory. The diagnostic session will not rank observations until all mandatory observations have been instantiated.
•dsl_diagAux is the default value, and is neither an observation nor a fault.
When DSL_network object is saved to a .xdsl file, the diagnostic roles of nodes are preserved.
For full API details, see the reference for DSL_node and DSL_discDef.