예제 #1
0
 public TptpCollection(Formula formula)
 {
     _formula = formula;
 }
예제 #2
0
 public ClauseCollection(Formula formula)
 {
     _formula = formula;
     _it = _formula.Intern.getClauses().iterator();
 }
예제 #3
0
 public ArrayList Ask(int argNum1, string term1, int argNum2, string term2)
 {
     ArrayList result = new ArrayList();
     java.util.ArrayList jres = _kb.askWithRestriction(argNum1, term1, argNum2, term2);
     if(jres == null) return result;
     java.util.Iterator it = jres.iterator();
     while(it.hasNext())
     {
     	com.articulate.sigma.Formula jform = (com.articulate.sigma.Formula)it.next();
     	Formula f = new Formula(jform);
         result.Add(f);
     }
     return result;
 }
예제 #4
0
 public ClauseCollection(Formula formula)
 {
     _formula = formula;
     _it      = _formula.Intern.getClauses().iterator();
 }