}
}
+ /* FIXME: kill these C crufts */
/** Returns the last error code of the simulation */
public final static native int getErrCode();
/** Something must be not perfectly clean (but I may be paranoid freak...) */
public static final int WARNING = 1;
- /** There has been a problem during you task transfer.
+ /** There has been a problem during your task transfer.
* Either the network is down or the remote host has been shutdown */
public static final int TRANSFERT_FAILURE = 2;
/** You've done something wrong. You'd better look at it... */
public static final int FATAL_ERROR = 5;
-
/** Retrieve the simulation time */
public final static native double getClock();
* @param platformFile The XML file which contains the description of the environment of the simulation
*
*/
- public final static native void createEnvironment(String platformFile)
- throws NativeException;
+ public final static native void createEnvironment(String platformFile) throws NativeException;
/**
* The method to deploy the simulation.
*
* @param platformFile The XML file which contains the description of the application to deploy.
*/
- public final static native void deployApplication(String deploymentFile)
- throws NativeException;
+ public final static native void deployApplication(String deploymentFile) throws NativeException;
/** Example launcher. You can use it or provide your own launcher, as you wish */
static public void main(String[]args) throws MsgException {
/* Load the platform and deploy the application */
Msg.createEnvironment(args[0]);
Msg.deployApplication(args[1]);
-
/* Execute the simulation */
Msg.run();
}