All Downloads are FREE. Search and download functionalities are using the official Maven repository.

oms3.EmbeddedCLI Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 3.5.12
Show newest version
/*
 * 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