network unknown {
}
variable AccidentDoNotOccur {
  type discrete [ 2 ] { True, False };
}
variable AccidentUnderControl {
  type discrete [ 2 ] { True, False };
}
variable BlastWavesThroughPipes {
  type discrete [ 2 ] { True, False };
}
variable BuildingDamage {
  type discrete [ 4 ] { I, II, III, IV };
}
variable Casualties {
  type discrete [ 4 ] { I, II, III, IV };
}
variable CombustibleDustAccumulates {
  type discrete [ 2 ] { True, False };
}
variable DirectEconomicLosses {
  type discrete [ 4 ] { I, II, III, IV };
}
variable DustAccumulationUnderControl {
  type discrete [ 2 ] { True, False };
}
variable DustCloudDisappearance {
  type discrete [ 2 ] { True, False };
}
variable DustExplosionIntensityCoefficient {
  type discrete [ 5 ] { I, II, III, IV, V };
}
variable EndOfRescue {
  type discrete [ 2 ] { True, False };
}
variable EnvironmentalImpact {
  type discrete [ 4 ] { I, II, III, IV };
}
variable EquipmentDamage {
  type discrete [ 4 ] { I, II, III, IV };
}
variable ExplosionPreventionMeasures {
  type discrete [ 2 ] { True, False };
}
variable ExtinctionOfSpark {
  type discrete [ 2 ] { True, False };
}
variable IgnitingTheDustCloud {
  type discrete [ 2 ] { True, False };
}
variable InitiateEmergencyResponse {
  type discrete [ 2 ] { True, False };
}
variable Misoperation {
  type discrete [ 2 ] { True, False };
}
variable NoExplosionControlMeasures {
  type discrete [ 2 ] { True, False };
}
variable OpenFireExtinguished {
  type discrete [ 2 ] { True, False };
}
variable PreventFurtherExpansion {
  type discrete [ 2 ] { True, False };
}
variable RestrictedSpace {
  type discrete [ 2 ] { True, False };
}
variable SparkDetectorExtinguishSparks {
  type discrete [ 2 ] { True, False };
}
variable SparkOccurence {
  type discrete [ 2 ] { True, False };
}
variable StrengthenDustControl {
  type discrete [ 2 ] { True, False };
}
variable TriggerSecondaryExplosion {
  type discrete [ 2 ] { True, False };
}
probability ( AccidentDoNotOccur | ExtinctionOfSpark ) {
  (True) 0.97, 0.03;
  (False) 0.5, 0.5;
}
probability ( AccidentUnderControl | InitiateEmergencyResponse, PreventFurtherExpansion ) {
  (True, True) 0.85, 0.15;
  (False, True) 0.73, 0.27;
  (True, False) 0.15, 0.85;
  (False, False) 0.27, 0.73;
}
probability ( BlastWavesThroughPipes ) {
  table 0.62, 0.38;
}
probability ( BuildingDamage | IgnitingTheDustCloud, TriggerSecondaryExplosion ) {
  (True, True) 0.0, 0.8, 0.1, 0.1;
  (False, True) 0.3, 0.6, 0.1, 0.0;
  (True, False) 0.0, 0.6, 0.3, 0.1;
  (False, False) 0.3, 0.5, 0.2, 0.0;
}
probability ( Casualties | IgnitingTheDustCloud, TriggerSecondaryExplosion ) {
  (True, True) 0.9, 0.1, 0.0, 0.0;
  (False, True) 1.0, 0.0, 0.0, 0.0;
  (True, False) 1.0, 0.0, 0.0, 0.0;
  (False, False) 1.0, 0.0, 0.0, 0.0;
}
probability ( CombustibleDustAccumulates | RestrictedSpace, StrengthenDustControl ) {
  (True, True) 0.23, 0.77;
  (False, True) 0.38, 0.62;
  (True, False) 0.97, 0.03;
  (False, False) 0.85, 0.15;
}
probability ( DirectEconomicLosses | IgnitingTheDustCloud, SparkOccurence, TriggerSecondaryExplosion ) {
  (True, True, True) 0.9, 0.1, 0.0, 0.0;
  (False, True, True) 0.9, 0.1, 0.0, 0.0;
  (True, False, True) 0.9, 0.1, 0.0, 0.0;
  (False, False, True) 1.0, 0.0, 0.0, 0.0;
  (True, True, False) 0.9, 0.1, 0.0, 0.0;
  (False, True, False) 1.0, 0.0, 0.0, 0.0;
  (True, False, False) 1.0, 0.0, 0.0, 0.0;
  (False, False, False) 1.0, 0.0, 0.0, 0.0;
}
probability ( DustAccumulationUnderControl | CombustibleDustAccumulates ) {
  (True) 0.62, 0.38;
  (False) 0.85, 0.15;
}
probability ( DustCloudDisappearance | DustAccumulationUnderControl ) {
  (True) 0.97, 0.03;
  (False) 0.48, 0.52;
}
probability ( DustExplosionIntensityCoefficient | CombustibleDustAccumulates ) {
  (True) 0.0, 0.2, 0.3, 0.4, 0.1;
  (False) 0.2, 0.2, 0.3, 0.2, 0.1;
}
probability ( EndOfRescue | OpenFireExtinguished ) {
  (True) 0.97, 0.03;
  (False) 0.15, 0.85;
}
probability ( EnvironmentalImpact | IgnitingTheDustCloud, TriggerSecondaryExplosion ) {
  (True, True) 0.7, 0.2, 0.1, 0.0;
  (False, True) 0.8, 0.2, 0.0, 0.0;
  (True, False) 0.8, 0.2, 0.0, 0.0;
  (False, False) 0.9, 0.1, 0.0, 0.0;
}
probability ( EquipmentDamage | IgnitingTheDustCloud, SparkOccurence, TriggerSecondaryExplosion ) {
  (True, True, True) 0.0, 0.8, 0.1, 0.1;
  (False, True, True) 0.2, 0.7, 0.1, 0.0;
  (True, False, True) 0.2, 0.7, 0.1, 0.0;
  (False, False, True) 0.2, 0.6, 0.2, 0.0;
  (True, True, False) 0.2, 0.7, 0.1, 0.0;
  (False, True, False) 0.2, 0.6, 0.2, 0.0;
  (True, False, False) 0.2, 0.6, 0.2, 0.0;
  (False, False, False) 0.6, 0.4, 0.0, 0.0;
}
probability ( ExplosionPreventionMeasures ) {
  table 0.27, 0.73;
}
probability ( ExtinctionOfSpark | SparkOccurence ) {
  (True) 0.15, 0.85;
  (False) 0.97, 0.03;
}
probability ( IgnitingTheDustCloud | ExplosionPreventionMeasures, NoExplosionControlMeasures, SparkOccurence ) {
  (True, True, True) 0.48, 0.52;
  (False, True, True) 0.15, 0.85;
  (True, False, True) 0.97, 0.03;
  (False, False, True) 0.97, 0.03;
  (True, True, False) 0.27, 0.73;
  (False, True, False) 0.27, 0.73;
  (True, False, False) 0.85, 0.15;
  (False, False, False) 0.48, 0.52;
}
probability ( InitiateEmergencyResponse ) {
  table 0.85, 0.15;
}
probability ( Misoperation ) {
  table 0.62, 0.38;
}
probability ( NoExplosionControlMeasures ) {
  table 0.85, 0.15;
}
probability ( OpenFireExtinguished | TriggerSecondaryExplosion ) {
  (True) 0.85, 0.15;
  (False) 0.27, 0.73;
}
probability ( PreventFurtherExpansion | IgnitingTheDustCloud ) {
  (True) 0.03, 0.97;
  (False) 0.85, 0.15;
}
probability ( RestrictedSpace ) {
  table 0.97, 0.03;
}
probability ( SparkDetectorExtinguishSparks ) {
  table 0.27, 0.73;
}
probability ( SparkOccurence | CombustibleDustAccumulates, Misoperation, SparkDetectorExtinguishSparks ) {
  (True, True, True) 0.03, 0.97;
  (False, True, True) 0.48, 0.52;
  (True, False, True) 0.97, 0.03;
  (False, False, True) 0.97, 0.03;
  (True, True, False) 0.27, 0.73;
  (False, True, False) 0.15, 0.85;
  (True, False, False) 0.85, 0.15;
  (False, False, False) 0.85, 0.15;
}
probability ( StrengthenDustControl ) {
  table 0.15, 0.85;
}
probability ( TriggerSecondaryExplosion | BlastWavesThroughPipes, IgnitingTheDustCloud ) {
  (True, True) 0.97, 0.03;
  (False, True) 0.5, 0.5;
  (True, False) 0.62, 0.38;
  (False, False) 0.15, 0.85;
}
