|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mathworks.toolbox.javabuilder.internal.MWComponentInstance<PredictiveModel>
ca.ubc.cs.beta.activeconfigurator.matlab.predictivemodels.PredictiveModel
public class PredictiveModel
The PredictiveModel
/Users/chrisnell/Documents/workspace/matlab/PredictivePerfModels-Code/modelPr
edictForJava.m
/Users/chrisnell/Documents/workspace/matlab/PredictivePerfModels-Code/read_mo
del_from_file.m
The dispose()
method must be called on a
PredictiveModel
instance when it is no longer needed to ensure
that native resources allocated by this class are properly freed.
Field Summary |
---|
Fields inherited from class com.mathworks.toolbox.javabuilder.internal.MWComponentInstance |
---|
fMCR |
Constructor Summary | |
---|---|
PredictiveModel()
Constructs a new instance of the PredictiveModel class. |
|
PredictiveModel(com.mathworks.toolbox.javabuilder.MWComponentOptions componentOptions)
Constructs a new instance of the PredictiveModel class. |
|
PredictiveModel(java.lang.String pathToComponent)
Constructs a new instance of the PredictiveModel class. |
Method Summary | |
---|---|
void |
dispose()
Frees native resources associated with this object |
static void |
disposeAllInstances()
Calls dispose method for each outstanding instance of this class. |
static void |
main(java.lang.String[] args)
Invokes the first m-function specified by MCC, with any arguments given on the command line, and prints the result. |
java.lang.Object[] |
modelPredictForJava(int nargout,
java.lang.Object... rhs)
Provides the standard interface for calling the modelPredictForJava M-function with 3 input arguments. |
void |
modelPredictForJava(java.util.List lhs,
java.util.List rhs)
Provides the mlx interface for calling the modelPredictForJava M-function. |
void |
modelPredictForJava(java.lang.Object[] lhs,
java.lang.Object[] rhs)
Provides the mlx interface for calling the modelPredictForJava M-function. |
java.lang.Object[] |
read_model_from_file(int nargout,
java.lang.Object... rhs)
Provides the standard interface for calling the read_model_from_file M-function with 1 input argument. |
void |
read_model_from_file(java.util.List lhs,
java.util.List rhs)
|
void |
read_model_from_file(java.lang.Object[] lhs,
java.lang.Object[] rhs)
Provides the mlx interface for calling the read_model_from_file M-function. |
Methods inherited from class com.mathworks.toolbox.javabuilder.internal.MWComponentInstance |
---|
finalize, waitForFigures |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PredictiveModel() throws com.mathworks.toolbox.javabuilder.MWException
PredictiveModel
class.
com.mathworks.toolbox.javabuilder.MWException
public PredictiveModel(java.lang.String pathToComponent) throws com.mathworks.toolbox.javabuilder.MWException
PredictiveModel
class. Use
this constructor to specify a component directory other than the default
location.
pathToComponent
- Path to component directory.
com.mathworks.toolbox.javabuilder.MWException
public PredictiveModel(com.mathworks.toolbox.javabuilder.MWComponentOptions componentOptions) throws com.mathworks.toolbox.javabuilder.MWException
PredictiveModel
class. Use
this constructor to specify the options required to instantiate this
component.
The options will be specific to the instance of this component being
created.
componentOptions
- Options specific to the component.
com.mathworks.toolbox.javabuilder.MWException
Method Detail |
---|
public void dispose()
dispose
in interface com.mathworks.toolbox.javabuilder.Disposable
dispose
in class com.mathworks.toolbox.javabuilder.internal.MWComponentInstance<PredictiveModel>
public static void main(java.lang.String[] args)
public static void disposeAllInstances()
public void modelPredictForJava(java.util.List lhs, java.util.List rhs) throws com.mathworks.toolbox.javabuilder.MWException
modelPredictForJava
M-function.
lhs
- List in which to return outputs. Number of outputs (nargout) is
determined by allocated size of this List. Outputs are returned as
sub-classes of com.mathworks.toolbox.javabuilder.MWArray
.
Each output array should be freed by calling its dispose()
method.rhs
- List containing inputs. Number of inputs (nargin) is determined
by the allocated size of this List. Input arguments may be passed as
sub-classes of com.mathworks.toolbox.javabuilder.MWArray
, or
as arrays of any supported Java type. Arguments passed as Java types are
converted to MATLAB arrays according to default conversion rules.
com.mathworks.toolbox.javabuilder.MWException
- An error has occured during the function call.public void modelPredictForJava(java.lang.Object[] lhs, java.lang.Object[] rhs) throws com.mathworks.toolbox.javabuilder.MWException
modelPredictForJava
M-function.
lhs
- array in which to return outputs. Number of outputs (nargout)
is determined by allocated size of this array. Outputs are returned as
sub-classes of com.mathworks.toolbox.javabuilder.MWArray
.
Each output array should be freed by calling its dispose()
method.rhs
- array containing inputs. Number of inputs (nargin) is
determined by the allocated size of this array. Input arguments may be
passed as sub-classes of
com.mathworks.toolbox.javabuilder.MWArray
, or as arrays of
any supported Java type. Arguments passed as Java types are converted to
MATLAB arrays according to default conversion rules.
com.mathworks.toolbox.javabuilder.MWException
- An error has occured during the function call.public java.lang.Object[] modelPredictForJava(int nargout, java.lang.Object... rhs) throws com.mathworks.toolbox.javabuilder.MWException
modelPredictForJava
M-function with 3 input arguments.
Input arguments may be passed as sub-classes of
com.mathworks.toolbox.javabuilder.MWArray
, or as arrays of
any supported Java type. Arguments passed as Java types are converted to
MATLAB arrays according to default conversion rules.
nargout
- Number of outputs to return.rhs
- The inputs to the M function.
com.mathworks.toolbox.javabuilder.MWArray
. Each output array
should be freed by calling its dispose()
method.
com.mathworks.toolbox.javabuilder.MWException
- An error has occured during the function call.public void read_model_from_file(java.util.List lhs, java.util.List rhs) throws com.mathworks.toolbox.javabuilder.MWException
com.mathworks.toolbox.javabuilder.MWException
public void read_model_from_file(java.lang.Object[] lhs, java.lang.Object[] rhs) throws com.mathworks.toolbox.javabuilder.MWException
read_model_from_file
M-function.
lhs
- array in which to return outputs. Number of outputs (nargout)
is determined by allocated size of this array. Outputs are returned as
sub-classes of com.mathworks.toolbox.javabuilder.MWArray
.
Each output array should be freed by calling its dispose()
method.rhs
- array containing inputs. Number of inputs (nargin) is
determined by the allocated size of this array. Input arguments may be
passed as sub-classes of
com.mathworks.toolbox.javabuilder.MWArray
, or as arrays of
any supported Java type. Arguments passed as Java types are converted to
MATLAB arrays according to default conversion rules.
com.mathworks.toolbox.javabuilder.MWException
- An error has occured during the function call.public java.lang.Object[] read_model_from_file(int nargout, java.lang.Object... rhs) throws com.mathworks.toolbox.javabuilder.MWException
read_model_from_file
M-function with 1 input argument.
Input arguments may be passed as sub-classes of
com.mathworks.toolbox.javabuilder.MWArray
, or as arrays of
any supported Java type. Arguments passed as Java types are converted to
MATLAB arrays according to default conversion rules.
nargout
- Number of outputs to return.rhs
- The inputs to the M function.
com.mathworks.toolbox.javabuilder.MWArray
. Each output array
should be freed by calling its dispose()
method.
com.mathworks.toolbox.javabuilder.MWException
- An error has occured during the function call.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |