Package jason.stdlib

Class include

All Implemented Interfaces:
InternalAction, Serializable

public class include extends DefaultInternalAction

Internal action: .include.

Description: loads an .asl file, i.e., includes beliefs, goals, and plans from a file.

Parameters:

  • + the file (string): the file name or any valid URL
  • + the name space (atom or var -- optional): sets the name space where the included components (bels, plans, ...) will be placed. If this argument is a var, it will unifies with and random new name space.

Examples:

  • .include("x.asl").
  • .include("https://raw.githubusercontent.com/jason-lang/jason/master/examples/auction/ag3.asl").
  • .include("jar:file:/Users/jomi/lib/test.jar!/l.asl") includes from a local jar file.
See Also: