Skip to content

Commit 38c81de

Browse files
committed
Use static class variable for maximum tuple length
1 parent 78742bc commit 38c81de

File tree

1 file changed

+2
-1
lines changed
  • PSOATransRun/src/main/java/org/ruleml/psoa/psoatransrun/prolog

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
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;
2021

2122
/**
2223
* XSB engine configuration
@@ -129,7 +130,7 @@ public void loadKB(String kb) {
129130
writer.println(":- index prdsloterm/4-3.");
130131

131132
// Assume a maximum tuple length of 10
132-
for (int i = 1; i < 12; i++)
133+
for (int i = 1; i < 2 + MAX_TUPLE_LEN; i++)
133134
{
134135
writer.println(":- table(tupterm/" + i + ").");
135136
writer.println(":- table(prdtupterm/" + (i + 1) + ").");

0 commit comments

Comments
 (0)