Skip to content

Commit 0516ae3

Browse files
committed
Renamed variable MAX_TUPLE_LEN to MAX_TUPLE_LEN_FOR_TABLING
1 parent f334bfb commit 0516ae3

File tree

1 file changed

+5
-3
lines changed
  • PSOATransRun/src/main/java/org/ruleml/psoa/psoatransrun/prolog

1 file changed

+5
-3
lines changed

PSOATransRun/src/main/java/org/ruleml/psoa/psoatransrun/prolog/XSBEngine.java

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@
1717
public class XSBEngine extends PrologEngine {
1818
private String m_xsbBinPath, m_xsbFolder;
1919
private File m_transKBFile;
20-
protected static final int MAX_TUPLE_LEN = 10;
20+
21+
// Maximum tuple length of psoa atoms for tupterm/prdtupterm tabling
22+
protected static final int MAX_TUPLE_LEN_FOR_TABLING = 10;
23+
2124

2225
/**
2326
* XSB engine configuration
@@ -129,8 +132,7 @@ public void loadKB(String kb) {
129132
writer.println(":- index prdsloterm/4-2.");
130133
writer.println(":- index prdsloterm/4-3.");
131134

132-
// Assume a maximum tuple length of 10
133-
for (int i = 1; i < 2 + MAX_TUPLE_LEN; i++)
135+
for (int i = 1; i < 2 + MAX_TUPLE_LEN_FOR_TABLING; i++)
134136
{
135137
writer.println(":- table(tupterm/" + i + ").");
136138
writer.println(":- table(prdtupterm/" + (i + 1) + ").");

0 commit comments

Comments
 (0)