Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
hekate:cases:hekate_case_cashpoint:conceptualization [2009/10/28 09:38]
kinio
hekate:cases:hekate_case_cashpoint:conceptualization [2019/06/27 15:49] (current)
Line 13: Line 13:
   * **if** //​enteredPIN//​ = //​correctPIN//​ **then** //​authorized//​ := **true**;   * **if** //​enteredPIN//​ = //​correctPIN//​ **then** //​authorized//​ := **true**;
   * **if** //​enteredPIN//​ ≠ //​correctPIN//​ **then** //​authorized//​ := **false**;   * **if** //​enteredPIN//​ ≠ //​correctPIN//​ **then** //​authorized//​ := **false**;
-The XTT method does not allow to direct comparison ​of two attributes within conditional part of a rule. So, you cannot create the rules presented above. If you want to compare the values of two attributes you have to introduce a third, supplementary attribute that will hold the value, which corresponds to the result of comparison. Then, depending on the value of this (supplementary) attribute, the further decisions can be taken. \\+The XTT method does not allow to direct comparison ​between ​two attributes within conditional part of a rule. So, you cannot create the rules presented above. If you want to compare the values of two attributes you have to introduce a third, supplementary attribute that will hold the value, which corresponds to the result of the comparison. Then, depending on the value of this (supplementary) attribute, the further decisions can be taken. \\
 **I.E.** According to rules presented above, we can introduce a new attribute //​pidDifference//,​ which will hold the value of subtraction of the attributes //​enteredPIN//​ and //​correctPIN//​. So, those two rules can replaced with: **I.E.** According to rules presented above, we can introduce a new attribute //​pidDifference//,​ which will hold the value of subtraction of the attributes //​enteredPIN//​ and //​correctPIN//​. So, those two rules can replaced with:
   * **if** //​enteredPIN//​ ≠ **null and** //​correctPIN//​ ≠ **null then** //​pidDifference//​ := //​enteredPIN//​ - //​correctPIN//;​   * **if** //​enteredPIN//​ ≠ **null and** //​correctPIN//​ ≠ **null then** //​pidDifference//​ := //​enteredPIN//​ - //​correctPIN//;​
hekate/cases/hekate_case_cashpoint/conceptualization.1256719101.txt.gz · Last modified: 2019/06/27 16:00 (external edit)
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0