Package net.sf.kpex.prolog

Examples of net.sf.kpex.prolog.Fluent


   */
  @Override
  public int exec(Prog p)
  {
    Term I = getArg(0);
    Fluent f;
    if (I instanceof CharReader)
    {
      f = new ClauseReader((I), p);
    }
    else
View Full Code Here


   */
  @Override
  public int exec(Prog p)
  {
    String s = ((Const) getArg(0)).getName();
    Fluent f = new CharWriter(s, p);
    return putArg(1, f, p);
  }
View Full Code Here

   */
  @Override
  public int exec(Prog p)
  {
    String s = ((Const) getArg(0)).getName();
    Fluent f = new ClauseWriter(s, p);
    return putArg(1, f, p);
  }
View Full Code Here

  }

  @Override
  public int exec(Prog p)
  {
    Fluent S = (Fluent) getArg(0);
    S.stop();
    return 1;
  }
View Full Code Here

   */
  @Override
  public int exec(Prog p)
  {
    Term I = getArg(0);
    Fluent f;
    if (I instanceof CharReader)
    {
      f = new CharReader(((CharReader) I), p);
    }
    else
View Full Code Here

  }

  @Override
  public int exec(Prog p)
  {
    Fluent F = (Fluent) getArg(0);
    Term R = F.isPersistent() ? Const.YES : Const.NO;
    return putArg(1, R, p);
  }
View Full Code Here

  }

  @Override
  public int exec(Prog p)
  {
    Fluent F = (Fluent) getArg(0);
    Const R = (Const) getArg(1);
    boolean yesno = !R.eq(Const.NO);
    F.setPersistent(yesno);
    return 1;
  }
View Full Code Here

TOP

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

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.