importance Analise


importanceAnalise
Flag-p
ParametrString: name (name of event)
Description

Check importance analisis

Output: success

"Result of the analysis Events Tree: "


If exception will be catch (during the analysis):

"Events tree is not ok"

Output: fail"There is no tree that I could analyze."
  •  Detailed description

    This function check probability before and after cut an event which was passed as parameter. The probability of scenario is calculated by formula

    P(x1,...,Xn) - probability of scenario

    P(X1),P(Xn) - probability of events which led to that scenario

    If to that function we will pass name of Event 2, function will cut Failure(2f) and all its sub trees then it will calculate probability of scenario without excluded part and print it with information about probability of primary tree(before cut was done).

    Event Tree analysis concept


    It is worth to mention that probability of success of event and probability of failure of that event must sum to 1.

    Also probability of scenario is not equal to intensity of scenario occurrence. In intensity of scenario occurrence (intensity of specific scenario e.g. Failure scenario D) we take also intensity of initiating event occurrence (IIE) but in probability of scenario we start form first event. (Event 1)


    Importance Analise
    Step1: The function initializes empty string (e.g. 'outputText') and (e.g. 'a').
    Step2: If eventTree !=null create object of TreesService class and set boolean (e.g. 'ok') to true. After that start analyse of event tree using function doAnalise.
    doAnalise function is checking the probability before and after the removingEdge. At first it compute probability of basic tree, it is done by computing probability of each scenario associated with leaf. It is calculated in 'computeProbabolityForLeaf' function, probability of leaf is assigned to 'tmpProbability' variable and probability of its parent to 'edge' variable then multiply of leaf and theirs parent probability is assigned to 'tmpProbabolity'. This process is executed up to Event 1. At last in 'computeProbabilityForLeaf' it's sums probability of scenarios which led to that consequence and return them to 'importanceAnalisis' function which pass them to 'doAnalise' function.
    After that 'doAnalise' removes edgeList which we passed to 'importanceAnalise' and one more time it runs 'doAnalise' function for tree in which we removed some edges.
    At end of 'doAnalise' it return string "Prawdopodobieństwa przed: " + oldProbability + "\nPrawdopodobieństwa po: " + newProbability" which is also output of 'importanceAnalise' function.
    Step3: If eventTree = null The function assign "There is no tree" to the 'outputText' and then display it.
radek95gg (Unlicensed)
June 25, 2017

Wzory powinny być już poprawione.