1 package org.simantics.scl.runtime.chr;
3 public class CHRContext {
4 public CHRPriority topPriority;
5 public int currentId = 0;
7 public void activate(int maxPriority) {
8 //System.out.println("--- ACTIVATE " + maxPriority + "---------------------------------------------");
9 while(topPriority != null && topPriority.priority < maxPriority) {
10 CHRPriority currentPriority = topPriority;
11 topPriority = currentPriority.nextPriority();
12 currentPriority.activate(this);
13 currentPriority.inContext = false;
15 //System.out.println("--- FINISHED " + maxPriority + "---------------------------------------------");
18 public int generateId() {