public class MWComponentOptions
extends java.lang.Object
Constructor and Description |
---|
MWComponentOptions()
Create default option set for deployed component initialization.
|
MWComponentOptions(MWComponentOptions that)
Create a clone of
that . |
MWComponentOptions(java.lang.Object... options)
Create an option set with all of the specified component initialization options
applied to it.
|
Modifier and Type | Method and Description |
---|---|
MWCtfSource |
getCtfSource()
From where should CTF data be read?
|
java.util.concurrent.Callable<java.io.PrintStream> |
getErrorStream()
The Callable<PrintStream> which, when called, produces the PrintStream
object to which error output from MATLAB code should be written.
|
com.mathworks.toolbox.javabuilder.internal.MWMCR |
getExecutionContext()
The MATLAB Runtime instance to be used for execution of MATLAB code by components
initialized using
this . |
MWCtfExtractLocation |
getExtractLocation()
To where should extracted CTF data be written?
|
java.util.concurrent.Callable<java.io.PrintStream> |
getPrintStream()
The Callable<PrintStream> which, when called, produces the PrintStream
object to which standard output from MATLAB code should be written.
|
void |
setCtfSource(MWCtfSource ctfSource)
Set the source for reading CTF data.
|
void |
setErrorStream(java.util.concurrent.Callable<java.io.PrintStream> err)
Set the destination for error output written by MATLAB code in the scope of all
component instances initialized using
this . |
void |
setErrorStream(java.io.PrintStream err)
Set the destination for error output written by MATLAB code in the scope of all
component instances initialized using
this . |
void |
setExecutionContext(com.mathworks.toolbox.javabuilder.internal.MWMCR executionContext)
Set the MATLAB Runtime instance to be used for execution of MATLAB code
by components initialized using
this . |
void |
setExtractLocation(MWCtfExtractLocation extractLocation)
Set where CTF data should be written.
|
void |
setPrintStream(java.util.concurrent.Callable<java.io.PrintStream> out)
Set the destination for standard output written by MATLAB code in the scope of all
component instances initialized using
this . |
void |
setPrintStream(java.io.PrintStream out)
Set the destination for standard output written by MATLAB code in the scope of all
component instances initialized using
this . |
public MWComponentOptions()
public MWComponentOptions(java.lang.Object... options)
options
must be either a PrintStream (in which case the first such
object is set to receive standard output, and the second such object, if present,
is set to receive error output) or an implementation of MWComponentOption.
The effect of applying objects that implement MWComponentOption is documented per implementation class.
The passed list of options is applied, in order, to this
.options
- comma-separated list of zero or more optionsjava.lang.IllegalArgumentException
- if any of the options is neither an MWComponentOption
nor a PrintStreamMWComponentOption
,
MWCtfSource
,
MWCtfExtractLocation
,
MWMCR
public MWComponentOptions(MWComponentOptions that)
that
.that
- options to be clonedpublic MWCtfSource getCtfSource()
public MWCtfExtractLocation getExtractLocation()
public void setExtractLocation(MWCtfExtractLocation extractLocation)
extractLocation
- location to which CTF data should be writtenMWCtfExtractLocation
public void setCtfSource(MWCtfSource ctfSource)
ctfSource
- source for reading CTF dataMWCtfSource
public com.mathworks.toolbox.javabuilder.internal.MWMCR getExecutionContext()
this
.
Internal use only public void setExecutionContext(com.mathworks.toolbox.javabuilder.internal.MWMCR executionContext)
this
.
Internal use only executionContext
- MATLAB Runtime instance to be used by componentspublic java.util.concurrent.Callable<java.io.PrintStream> getPrintStream()
public void setPrintStream(java.io.PrintStream out)
this
.out
- destination for standard outputpublic void setPrintStream(java.util.concurrent.Callable<java.io.PrintStream> out)
this
.
Every time standard output is requested from MATLAB code, the Callable<PrintStream>
associated with the component instance will be invoked to retrieve the
PrintStream to use. This allows the PrintStream used by a component
instance to change over time, if desired.out
- returns the destination for MATLAB standard outputpublic java.util.concurrent.Callable<java.io.PrintStream> getErrorStream()
public void setErrorStream(java.io.PrintStream err)
this
.err
- the destination for MATLAB error outputpublic void setErrorStream(java.util.concurrent.Callable<java.io.PrintStream> err)
this
.
Every time error output is requested from MATLAB code, the Callable<PrintStream>
associated with the component instance will be invoked to retrieve the
PrintStream to use. This allows the PrintStream used by a component
instance to change over time, if desired.err
- returns the destination for MATLAB error output© 1994-2017 The MathWorks, Inc. Patents Trademarks