Package net.sf.kpex.prolog

Examples of net.sf.kpex.prolog.Fun


    {
      T = p.getBuiltins().toBuiltin(new Const(s));
    }
    else
    {
      Fun F = new Fun(s);
      F.init(i);
      T = p.getBuiltins().toBuiltin(F);
    }
    return putArg(2, T, p);
  }
View Full Code Here


  public static LayoutManager to_layout(Term L)
  {
    LayoutManager M = null;
    if (L instanceof Fun)
    {
      Fun F = (Fun) L;
      int x = (int) ((Int) F.getArg(0)).getValue();
      int y = (int) ((Int) F.getArg(1)).getValue();
      M = new GridLayout(x, y, 5, 5);
    }
    else
    {
      String m = ((Const) L).getName();
View Full Code Here

   */
  @Override
  public int exec(Prog p)
  {
    JinniCanvas C = (JinniCanvas) ((JavaObject) getArg(0)).toObject();
    Fun D = (Fun) getArg(1);
    C.to_draw(D);
    return 1;
  }
View Full Code Here

    {
      X = Const.NO;
    }
    else
    {
      X = new Fun("the", X);
    }
    return putArg(1, X, p);
  }
View Full Code Here

TOP

Related Classes of net.sf.kpex.prolog.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.