Package prolog.logic

Examples of prolog.logic.Fun


    // avoid confusion with socket layers
    if("server".equals(args[0])) {
      if(rli_start_server(portName,null)<0)
        System.exit(1);
    } else {
      Fun goal=new Fun("println","hello");
      Object answer=rli_call(host,portName,goal);
      System.out.println("got: "+answer);
    }
  }
View Full Code Here


          }
        }
      }
      // System.err.println("!!!V="+V);
      Object[] args=V.toArray();
      return new Fun("inetAddresses",args);
    } catch(Exception e) {
      e.printStackTrace();
      return null;
    }
  }
View Full Code Here

      BigInteger[] tuple=bigint2tuple(getArity(),B);
      Object[] args=new Object[getArity()];
      for(int i=0;i<tuple.length;i++) {
        args[i]=toExpr(tuple[i]);
      }
      return new Fun(name,args);
    }
  }
View Full Code Here

    int D=get(Calendar.DAY_OF_MONTH);
    int H=get(Calendar.HOUR_OF_DAY);
    int N=get(Calendar.MINUTE);
    int S=get(Calendar.SECOND);
   
    Fun R=new Fun("date",
        new Integer(Y),
        new Integer(M),
        new Integer(D),
        new Integer(H),
        new Integer(N),
View Full Code Here

TOP

Related Classes of prolog.logic.Fun

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.