oms3.EmbeddedCLI Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of oms Show documentation
Show all versions of oms Show documentation
Object Modeling System (OMS) is a pure Java object-oriented framework.
OMS v3.+ is a highly interoperable and lightweight modeling framework for component-based model and simulation development on multiple platforms.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package oms3;
import java.util.jar.Manifest;
import ngmf.util.Jars;
/**
*
* @author od
*/
public class EmbeddedCLI {
public static void main(String[] args) throws Exception {
Manifest mf = new Manifest(EmbeddedCLI.class.getResourceAsStream("/META-INF/MANIFEST.MF"));
String simName = mf.getMainAttributes().getValue(Jars.MANIFEST_NAME_OMS_DSL);
CLI.setOMSProperties(simName, "run");
if (System.getProperty("oms.prj")==null) {
System.setProperty("oms.prj", System.getProperty("user.dir"));
}
CLI.dsl(EmbeddedCLI.class.getResourceAsStream("/META-INF/" + simName), simName, "INFO", "run");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy