Class MatlabEnginePool
java.lang.Object
org.eclipse.epsilon.emc.simulink.engine.MatlabEnginePool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static Stringprotected static MatlabEnginePoolprotected static MatlabClassLoaderprotected Class<?>protected Set<MatlabEngine>protected Map<String,MatlabEngine> -
Method Summary
Modifier and TypeMethodDescriptiongetEngineForProject(String absoluteLocation) static MatlabEnginePoolstatic MatlabEnginePoolgetInstance(String engineJarPath) protected intstatic voidvoidrelease(MatlabEngine engine) static voidreset()static booleanstatic booleanAttempts to locate a MATLAB installation.
-
Field Details
-
instance
-
matlabClassLoader
-
engineJarPath
-
pool
-
matlabEngineClass
-
projectEngine
-
-
Method Details
-
getJavaVersion
protected int getJavaVersion() -
getInstance
- Throws:
MatlabRuntimeException
-
getInstance
- Throws:
MatlabRuntimeException
-
reset
public static void reset() -
getEngineForProject
- Throws:
MatlabExceptionException
-
getMatlabEngine
- Throws:
Exception
-
release
-
getEngineJarPath
-
main
- Throws:
Exception
-
resolveFromEnv
public static boolean resolveFromEnv()Attempts to locate a MATLAB installation.- Returns:
trueiff the paths could be resolved.- Since:
- 1.6
-
resolve
- Parameters:
library- The MATLAB library path.engineJar- The MATLAB engine.jar file path.- Returns:
trueiff the paths exist.
-