nativeInit();
}
private static void loadLib (String name) {
- String Path = "NATIVE/"+System.getProperty("os.name")+"/"+System.getProperty("os.arch")+"/";
+ String Os = System.getProperty("os.name");
+ //Windows may report its name in java differently from cmake, which generated the path
+ if(Os.toLowerCase().indexOf("win") >= 0) Os = "Windows";
+ String Path = "NATIVE/"+Os+"/"+System.getProperty("os.arch")+"/";
+
String filename=name;
InputStream in = Msg.class.getClassLoader().getResourceAsStream(Path+filename);
}
/** Retrieve the simulation time
- * @return
+ * @return The simulation time.
*/
public final static native double getClock();
/**
* The natively implemented method to initialize a MSG simulation.
*
* @param args The arguments of the command line of the simulation.
- *
- * @see Msg.init()
*/
public final static native void init(String[]args);
* {@link #clean()} if you really insist on cleaning the C side), so you can freely
* retrieve the informations that you want from the simulation. In particular, retrieving the status
* of a process or the current date is perfectly ok.
- *
- * @see MSG_run
*/
public final static native void run() ;
*/
public final static native void createEnvironment(String platformFile);
+ public final static native As environmentGetRoutingRoot();
+
/**
* The method to deploy the simulation.
*