<!DOCTYPE Tree SYSTEM "IPSA.dtd">
<Tree chk="1126516850" type="Script" onEnd="default" onBackExit="back">
<Header>
<IFile>
<FileName name="variante_ecu">
</FileName>
<Modif date="25/09/2014" user="mohamedhedi.hwaneb" site="THESAU">
</Modif>
</IFile>
<ITool name="ime2" revision="7.3.2.4" exedate="03/02/2014">
</ITool>
</Header>
<precel>
</precel>
<cel>
<Start posc=17 posl=1 destc=17 destl=2 ident=69>
<Comment>Détermination de la Variante ECU
</Comment>
</Start>
<End posc=31 posl=2 ident=67>
</End>
<Act posc=17 posl=7 destc=17 destl=8 ident=70>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="INPUT_ECU_DESCRIPTOR">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="OUTPUT_ECU_DESCRIPTOR">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="DESCRIPTOR">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="INPUT_ECU_DESCRIPTOR">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
<ECUCommunication>
<ECUFunctionCall name="ECU_DESCRIPTOR">
<TextBuffer name="INPUT_ECU_DESCRIPTOR">
</TextBuffer>
<Destination>
<TextBuffer name="OUTPUT_ECU_DESCRIPTOR">
</TextBuffer>
</Destination>
</ECUFunctionCall>
</ECUCommunication>
<Execution>
</Execution>
</Act>
<Test posc=17 posl=8 destyesc=17 destyesl=9 destnoc=27 destnol=8 ident=71>
<MathAndLogic>
<LogicalTest>
<For>
<DataComparison type="EQUAL">
<Source>
<FloatVar name="VCHK">
</FloatVar>
</Source>
<Source>
<StandardValue name="SUCCESS">
</StandardValue>
</Source>
</DataComparison>
</For>
</LogicalTest>
</MathAndLogic>
</Test>
<Act posc=17 posl=9 destc=31 destl=2 ident=76>
<Comment>Lecture de la variante ECU à partir du descripteur GPC
</Comment>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="OUTPUT_ECU_DESCRIPTOR">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=17 posl=3 destc=17 destl=5 ident=78>
<Comment>Clear des buffers globaux à la session de diagnostic calculateur
</Comment>
<Comment>ECU_VARIANTE : contiendra la variante calculateur à déterminer
</Comment>
<MathAndLogic>
<Clear>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
<Destination>
<TextBuffer name="DETERMINATION_VAR_ECU">
</TextBuffer>
</Destination>
</Clear>
<Assignment>
<Source>
<ASCIIString value="FAITE">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="DETERMINATION_VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="ETAT_DETERMINATION_VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=23 posl=6 destc=31 destl=2 ident=87>
<Comment>Variante par défaut en mode dégradé
</Comment>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="DEFAULT_VAR_ECU">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
<Clear>
<Destination>
<TextBuffer name="DEFAULT_VAR_ECU">
</TextBuffer>
</Destination>
</Clear>
</MathAndLogic>
</Act>
<Switch posc=17 posl=5 ident=90>
<Source>
<ECUData ParamName="STATE">
</ECUData>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="OK">
</ASCIIString>
</Source>
<TargetCell destc=17 destl=7>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="Degraded">
</ASCIIString>
</Source>
<TargetCell destc=23 destl=6>
</TargetCell>
</SwitchTest>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="Undefined">
</ASCIIString>
</Source>
<TargetCell destc=25 destl=7>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=27 destl=8>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
<Act posc=25 posl=7 destc=31 destl=2 ident=94>
<Comment>détermination de la variante impossible (erreur de comm)
</Comment>
<MathAndLogic>
<Assignment>
<Source>
<ASCIIString value="ERREUR_COMM">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="NOK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="ETAT_DETERMINATION_VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Act posc=27 posl=8 destc=31 destl=2 ident=95>
<Comment>Problème de détermination de la variante
</Comment>
<MathAndLogic>
<Assignment>
<Source>
<TextBuffer name="DEFAULT_VAR_ECU">
</TextBuffer>
</Source>
<Destination>
<TextBuffer name="VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
<Assignment>
<Source>
<ASCIIString value="NOK">
</ASCIIString>
</Source>
<Destination>
<TextBuffer name="ETAT_DETERMINATION_VAR_ECU">
</TextBuffer>
</Destination>
</Assignment>
</MathAndLogic>
</Act>
<Switch posc=17 posl=2 ident=98>
<Source>
<TextBuffer name="DETERMINATION_VAR_ECU">
</TextBuffer>
</Source>
<SwitchTest type="EQUAL">
<Source>
<ASCIIString value="FAITE">
</ASCIIString>
</Source>
<TargetCell destc=31 destl=2>
</TargetCell>
</SwitchTest>
<DefaultSwitchTarget>
<TargetCell destc=17 destl=3>
</TargetCell>
</DefaultSwitchTarget>
</Switch>
</cel>
</Tree>
