VectorToAffordance.emadl 1.01 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
package dp.subcomponents;

import ChangeRange;

component VectorToAffordance {
    ports in Q^{16} affordanceIndicators,
              out Affordance affordance;

        implementation Math {
            affordance.fast = affordanceIndicators(1);
            affordance.distL = affordanceIndicators(2);
            affordance.distR = affordanceIndicators(3);
            affordance.toMarkingL = affordanceIndicators(4);
            affordance.toMarkingM = affordanceIndicators(5);
            affordance.toMarkingR = affordanceIndicators(6);
            affordance.distLL = affordanceIndicators(7);
            affordance.distMM = affordanceIndicators(8);
            affordance.distRR = affordanceIndicators(9);
            affordance.toMarkingLL = affordanceIndicators(10);
            affordance.toMarkingML = affordanceIndicators(11);
            affordance.toMarkingMR = affordanceIndicators(12);
            affordance.toMarkingRR = affordanceIndicators(13);
            affordance.angle = affordanceIndicators(15);
        }

}