(refs #7365) Fixed the bug in the test CHR11.scl
[simantics/platform.git] / bundles / org.simantics.scl.runtime / src / org / simantics / scl / runtime / chr / CHRRuntimeRuleset.java
1 package org.simantics.scl.runtime.chr;
2
3 public class CHRRuntimeRuleset {
4         int currentId;
5         
6         public void register(CHRContext context) {
7                 if(context.currentId < currentId)
8                         context.currentId = currentId;
9         }
10         
11         public void unregister(CHRContext context) {
12                 if(context.currentId > currentId)
13                         currentId = context.currentId;
14         }
15 }