public class MWApplication
extends java.lang.Object
MWApplication
class can be used to initialize the global state of MATLAB Runtime.
This class also provides methods to access this global state.Constructor and Description |
---|
MWApplication() |
Modifier and Type | Method and Description |
---|---|
static java.util.concurrent.Callable<java.io.PrintStream> |
getDefaultErrorStream()
The current late-bound PrintStream for MATLAB Runtime error text.
|
static java.util.concurrent.Callable<java.io.PrintStream> |
getDefaultOutputStream()
The current late-bound PrintStream for MATLAB Runtime output text.
|
static java.lang.String |
getMCRLogfileName()
Function to get the logfile name used by MATLAB Runtime
|
static void |
initialize(MWMCROption... options)
Initializes the global state of MATLAB Runtime
|
static void |
initializeApplication(MWMCROption... options)
Deprecated.
use initialize instead.
|
static boolean |
isMCRInitialized()
Function to query whether MATLAB Runtime has been initialized
|
static boolean |
isMCRJVMEnabled()
Function to check whether MATLAB Runtime has been initialized with JVM
|
static boolean |
isMCRNoDisplaySet()
Function to check whether MATLAB Runtime has been initialized with display set
|
static void |
terminate()
Terminates usage of the MATLAB Runtime.
|
@Deprecated public static void initializeApplication(MWMCROption... options)
options
- Array of MWMCROption representing MATLAB Runtime optionspublic static void initialize(MWMCROption... options)
options
- Array of MWMCROption representing MATLAB Runtime optionspublic static boolean isMCRInitialized()
public static boolean isMCRJVMEnabled()
public static boolean isMCRNoDisplaySet()
NOTE: This function always returns false on Windows since the -nodisplay option is not supported on Windows.
public static java.lang.String getMCRLogfileName()
public static void terminate()
public static java.util.concurrent.Callable<java.io.PrintStream> getDefaultOutputStream()
public static java.util.concurrent.Callable<java.io.PrintStream> getDefaultErrorStream()
© 1994-2017 The MathWorks, Inc. Patents Trademarks