com.mathworks.toolbox.javabuilder.MWApplication Class
Namespace: com.mathworks.toolbox.javabuilder
Java class to initialize and manage MATLAB Runtime global state
Description
Declaration
public MWApplication()
The MWApplication class can be used to initialize the global state of MATLAB Runtime. This class also provides methods to access this global state.
Implemented Interfaces:
Direct Known Subclasses: ,
Class Attributes: ,
Creation
Constructors
public MWApplication()
Initializes the global state of MATLAB Runtime.
Methods
Public Methods
getDefaultErrorStream |
The current late-bound PrintStream for MATLAB Runtime error text. Overrides: None Returns: default error stream |
getDefaultOutputStream |
The current late-bound PrintStream for MATLAB Runtime output text. Overrides: None Returns: default output stream |
getMCRLogfileName |
Function to get the logfile name used by MATLAB Runtime Overrides: None Returns: Returns the string representing the name of the logfile |
initialize |
Initializes the global state of MATLAB Runtime Overrides: None Returns: None Parameters:
|
isMCRInitialized |
Function to query whether MATLAB Runtime has been initialized Overrides: None Returns: Returns true if MATLAB Runtime has been initialized, else returns false |
isMCRJVMEnabled |
Function to check whether MATLAB Runtime has been initialized with JVM Overrides: None Returns: Returns true if MATLAB Runtime has been initialized with JVM, else returns false |
isMCRNoDisplaySet |
Function to check whether MATLAB Runtime has been initialized with display set Overrides: None Returns: Returns true if display is not set, else returns false. NOTE: This function always returns false on Windows since the -nodisplay option is not supported on Windows. |
terminate |
Terminates usage of the MATLAB Runtime. This method should be called when the Java application is shutting down or no longer needs the services of the MATLAB Runtime. Normally the user does not need to call this method because it is automatically called by a JVM shutdown hook installed when the MATLAB Runtime has been initialized. If shutdown hooks are not expected to run, it is crucial that this method be called before the application exits. Failure to do so will result in undefined behavior. Overrides: None Returns: None |
Inherited Methods
Methods inherited from class java.lang.Object
.
clone |
Creates and returns a copy of this object. |
equals |
Indicates whether some other object is "equal to" this one. |
finalize |
Called by the garbage collector on an object when garbage collection determines that there are no more references to the object. |
getClass |
Returns the runtime class of this Object. |
hashCode |
Returns a hash code value for the object. |
notify |
|
notifyAll |
Wakes up all threads that are waiting on this object's monitor. |
toString |
Returns a string representation of the object. |
wait |
Causes the current thread to wait until another thread invokes the notify() method or the notifyAll() method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed. |
Specialized Operators and Functions
These methods specialize standard MATLAB® operators and functions for objects in this class.
| |
|
Protected Methods
Examples
Hello World
Version History
Introduced in R2006a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)