Package net.sf.kpex.prolog

Examples of net.sf.kpex.prolog.Term


  // synchronized
  protected final Term take(String k, Term pattern)
  {
    List<Term> nomatch = new ArrayList<Term>();
    Term result;
    while (true)
    {
      result = pick(k);
      if (null == result)
      {
        break;
      }
      // IO.trace("$$After pick: t="+t+this);
      if (result.matches(pattern))
      {
        break;
      }
      else
      {
View Full Code Here


    Queue<Term> queue = get(k);
    if (queue == null)
    {
      return null;
    }
    Term T = queue.poll();
    if (queue.isEmpty())
    {
      remove(k);
      // IO.trace("$$Removed key:"+k+this);
    }
View Full Code Here

TOP

Related Classes of net.sf.kpex.prolog.Term

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.