ca.ubc.cs.beta.activeconfigurator.matlab.predictivemodels
Class PredictiveModel

java.lang.Object
  extended by com.mathworks.toolbox.javabuilder.internal.MWComponentInstance<PredictiveModel>
      extended by ca.ubc.cs.beta.activeconfigurator.matlab.predictivemodels.PredictiveModel
All Implemented Interfaces:
com.mathworks.toolbox.javabuilder.Disposable

public class PredictiveModel
extends com.mathworks.toolbox.javabuilder.internal.MWComponentInstance<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

PredictiveModel

public PredictiveModel()
                throws com.mathworks.toolbox.javabuilder.MWException
Constructs a new instance of the PredictiveModel class.

Throws:
com.mathworks.toolbox.javabuilder.MWException

PredictiveModel

public PredictiveModel(java.lang.String pathToComponent)
                throws com.mathworks.toolbox.javabuilder.MWException
Constructs a new instance of the PredictiveModel class. Use this constructor to specify a component directory other than the default location.

Parameters:
pathToComponent - Path to component directory.
Throws:
com.mathworks.toolbox.javabuilder.MWException

PredictiveModel

public PredictiveModel(com.mathworks.toolbox.javabuilder.MWComponentOptions componentOptions)
                throws com.mathworks.toolbox.javabuilder.MWException
Constructs a new instance of the 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.

Parameters:
componentOptions - Options specific to the component.
Throws:
com.mathworks.toolbox.javabuilder.MWException
Method Detail

dispose

public void dispose()
Frees native resources associated with this object

Specified by:
dispose in interface com.mathworks.toolbox.javabuilder.Disposable
Overrides:
dispose in class com.mathworks.toolbox.javabuilder.internal.MWComponentInstance<PredictiveModel>

main

public 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.


disposeAllInstances

public static void disposeAllInstances()
Calls dispose method for each outstanding instance of this class.


modelPredictForJava

public void modelPredictForJava(java.util.List lhs,
                                java.util.List rhs)
                         throws com.mathworks.toolbox.javabuilder.MWException
Provides the mlx interface for calling the modelPredictForJava M-function.

Parameters:
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.
Throws:
com.mathworks.toolbox.javabuilder.MWException - An error has occured during the function call.

modelPredictForJava

public void modelPredictForJava(java.lang.Object[] lhs,
                                java.lang.Object[] rhs)
                         throws com.mathworks.toolbox.javabuilder.MWException
Provides the mlx interface for calling the modelPredictForJava M-function.

Parameters:
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.
Throws:
com.mathworks.toolbox.javabuilder.MWException - An error has occured during the function call.

modelPredictForJava

public java.lang.Object[] modelPredictForJava(int nargout,
                                              java.lang.Object... rhs)
                                       throws com.mathworks.toolbox.javabuilder.MWException
Provides the standard interface for calling the 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.

Parameters:
nargout - Number of outputs to return.
rhs - The inputs to the M function.
Returns:
Array of length nargout containing the function outputs. Outputs are returned as sub-classes of com.mathworks.toolbox.javabuilder.MWArray. Each output array should be freed by calling its dispose() method.
Throws:
com.mathworks.toolbox.javabuilder.MWException - An error has occured during the function call.

read_model_from_file

public void read_model_from_file(java.util.List lhs,
                                 java.util.List rhs)
                          throws com.mathworks.toolbox.javabuilder.MWException
Throws:
com.mathworks.toolbox.javabuilder.MWException

read_model_from_file

public void read_model_from_file(java.lang.Object[] lhs,
                                 java.lang.Object[] rhs)
                          throws com.mathworks.toolbox.javabuilder.MWException
Provides the mlx interface for calling the read_model_from_file M-function.

Parameters:
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.
Throws:
com.mathworks.toolbox.javabuilder.MWException - An error has occured during the function call.

read_model_from_file

public java.lang.Object[] read_model_from_file(int nargout,
                                               java.lang.Object... rhs)
                                        throws com.mathworks.toolbox.javabuilder.MWException
Provides the standard interface for calling the 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.

Parameters:
nargout - Number of outputs to return.
rhs - The inputs to the M function.
Returns:
Array of length nargout containing the function outputs. Outputs are returned as sub-classes of com.mathworks.toolbox.javabuilder.MWArray. Each output array should be freed by calling its dispose() method.
Throws:
com.mathworks.toolbox.javabuilder.MWException - An error has occured during the function call.