]> gerrit.simantics Code Review - simantics/platform.git/blob
3f95fa5077c043c71ff1ba91663993fba84c828b
[simantics/platform.git] /
1 package org.simantics.scl.compiler.internal.codegen.chr;
2
3 import org.cojen.classfile.TypeDesc;
4
5 public interface CHRCodeGenerationConstants {
6
7     public static final TypeDesc FACT_ID_TYPE = TypeDesc.INT;
8     
9     public static final String CHRHashIndex_name = "org/simantics/scl/runtime/chr/CHRHashIndex";
10     public static final TypeDesc CHRHashIndex = TypeDesc.forClass(CHRHashIndex_name);
11     
12     public static final String CHRFact_name = "org/simantics/scl/runtime/chr/CHRFact";
13     public static final TypeDesc CHRFact = TypeDesc.forClass(CHRFact_name);
14     
15     public static final String CHRPriority_name = "org/simantics/scl/runtime/chr/CHRPriority";
16     
17     public static final String CHRPriorityFactContainer_name = "org/simantics/scl/runtime/chr/CHRPriorityFactContainer";
18     public static final TypeDesc CHRPriorityFactContainer = TypeDesc.forClass(CHRPriorityFactContainer_name);
19     
20     public static final String CHRContext_name = "org/simantics/scl/runtime/chr/CHRContext";
21     public static final TypeDesc CHRContext = TypeDesc.forClass(CHRContext_name);
22     
23     public static final String CHRRuntimeRuleset_name = "org/simantics/scl/runtime/chr/CHRRuntimeRuleset";
24     public static final TypeDesc CHRRuntimeRuleset = TypeDesc.forClass(CHRRuntimeRuleset_name);
25
26     public static String priorityName(int priority) {
27         return "l" + priority;
28     }
29
30     public static String fieldName(int id) {
31         return "c" + id;
32     }
33
34     public static String parameterName(int i) {
35         return "p" + i;
36     }
37 }