Class MatlabEnginePool
java.lang.Object
org.eclipse.epsilon.emc.simulink.engine.MatlabEnginePool
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static String
protected static MatlabEnginePool
protected static String
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 libraryPath, String engineJarPath) static void
void
release
(MatlabEngine engine) static void
reset()
static boolean
static boolean
Attempts to locate a MATLAB installation.
-
Field Details
-
instance
-
matlabClassLoader
-
libraryPath
-
engineJarPath
-
pool
-
matlabEngineClass
-
projectEngine
-
-
Method Details
-
getInstance
public static MatlabEnginePool getInstance(String libraryPath, String engineJarPath) throws MatlabRuntimeException - Throws:
MatlabRuntimeException
-
getInstance
- Throws:
MatlabRuntimeException
-
reset
public static void reset() -
getEngineForProject
- Throws:
MatlabException
Exception
-
getMatlabEngine
- Throws:
Exception
-
release
-
getEngineJarPath
-
getLibraryPath
-
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.
-