程序包 org.xmeta

类 Application

java.lang.Object
org.xmeta.Application

public class Application extends Object
当模型引擎作为系统全局引擎时,代表引擎外执行的模型应用。
  • 方法详细资料

    • getRootDirectory

      public File getRootDirectory()
    • getSourceDirectory

      public File getSourceDirectory()
    • getProperties

      public Properties getProperties()
    • getInstance

      public static Application getInstance()
    • init

      public static Application init(File file) throws IOException
      初始化。如果之前已经初始化,忽略。在file所在目录或父目录(递归)找.dml文件,如果存在那么初始化,如果不存在使用file所在目录初始化。
      参数:
      file - 模型文件或目录
      抛出:
      IOException
    • getThingPath

      public String getThingPath(File thingFile) throws IOException
      通过文件获取指定模型的路径。
      参数:
      thingFile - 模型文件
      返回:
      路径
      抛出:
      IOException