private boolean fmuLoaded = false;
public void loadFMUFile(String path) throws FMILException {
+ if (!Files.exists(Paths.get(path)))
+ throw new FMILException("File " + path + " does not exist");
+ if (!Files.isRegularFile(Paths.get(path)))
+ throw new FMILException("Path " + path + " is not a file");
+
synchronized(syncObject) {
if(fmuN % 2 == 0) {
}
}
- private native int loadFMUFile_(String path, String toDir);
+ private native int loadFMUFile_(String path, String toDir) throws FMILException;
/**
* Set a step length for simulation