CHRRuleset ruleset = new CHRRuleset();
CHRConstraint exampleFact = new CHRConstraint(Locations.NO_LOCATION, "ExampleFact", new Type[] { Types.INTEGER, Types.INTEGER });
- ruleset.constraints.add(exampleFact);
+ ruleset.addConstraint(exampleFact);
System.out.println("==============================================================================================");
ruleset.initializeCodeGeneration(compilationContext);