CombineValues.emam 348 Bytes
Newer Older
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
1
/* (c) https://github.com/MontiCore/monticore */
Jean-Marc Ronck's avatar
Jean-Marc Ronck committed
2
3
package de.rwth.pacman.heithoff2.coneSearch;

4
5
// a simple add

Jean-Marc Ronck's avatar
Jean-Marc Ronck committed
6
7
8
9
10
11
12
13
14
15
component CombineValues {
    ports 
      in Z valueCoins,
      in Z valueEnemies,
      
      out Z value;
      
    implementation Math {
        // some weightning here
        
16
        value = valueCoins + valueEnemies;
Jean-Marc Ronck's avatar
Jean-Marc Ronck committed
17
    }
Bernhard Rumpe's avatar
BR-sy    
Bernhard Rumpe committed
18
}