eMoflon / emoflon-ibex

Shared, eMoflon-specific component for incremental unidirectional and bidirectional graph transformations
GNU General Public License v3.0
13 stars 4 forks source link

GT attribute expressions with different data types #408

Open maxkratz opened 3 years ago

maxkratz commented 3 years ago

Currently, it is not possible to either:

In my example, substrateNode.residualCpu is an ELong and I want to check if it is greater than 0: Screenshot_2021-07-16_12-09-42

Possible feature requests:

  1. Implement a language feature to express (E)Longs in GT rules/patterns, e.g.: # substrateNode.residualCpu > 0l
  2. Implement a feature for the backend, that compatible data types can be "casted" automatically. This would allow comparing, e.g., ELongs with EInts: # substrateNode.residualCpu > 0

IMO is 2. the preferred solution as this is how it is handled in Java.