Class MatlabEnginePool
java.lang.Object
org.eclipse.epsilon.emc.simulink.engine.MatlabEnginePool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static String
protected static MatlabEnginePool
protected static MatlabClassLoader
protected Class<?>
protected Set<MatlabEngine>
protected Map<String,
MatlabEngine> -
Method Summary
Modifier and TypeMethodDescriptiongetEngineForProject
(String absoluteLocation) static MatlabEnginePool
static MatlabEnginePool
getInstance
(String engineJarPath) protected int
static void
void
release
(MatlabEngine engine) static void
reset()
static boolean
static boolean
Attempts 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:
MatlabException
Exception
-
getMatlabEngine
- Throws:
Exception
-
release
-
getEngineJarPath
-
main
- Throws:
Exception
-
resolveFromEnv
public static boolean resolveFromEnv()Attempts to locate a MATLAB installation.- Returns:
true
iff the paths could be resolved.- Since:
- 1.6
-
resolve
- Parameters:
library
- The MATLAB library path.engineJar
- The MATLAB engine.jar file path.- Returns:
true
iff the paths exist.
-