Interface MatlabPlatformConfiguration

    • Method Detail

      • setMatlabVersionName

        void setMatlabVersionName​(java.lang.String matlabVersionName)
                           throws java.rmi.RemoteException
        Set the matlab version name.
        Parameters:
        matlabVersionName - The name of the MATLAB version to be used
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getMatlabVersionName

        java.lang.String getMatlabVersionName()
                                       throws java.rmi.RemoteException
        Returns:
        The MATLAB version name
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setSutSubsystemPath

        void setSutSubsystemPath​(java.lang.String sutSubsystemPath)
                          throws java.rmi.RemoteException
        Set the subsystem block path.
        Parameters:
        sutSubsystemPath - the new subsystem block path
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getSutSubsystemPath

        java.lang.String getSutSubsystemPath()
                                      throws java.rmi.RemoteException
        Returns:
        the subsystem block path
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setOriginalModelFilePath

        void setOriginalModelFilePath​(java.lang.String originalModelFilePath)
                               throws java.rmi.RemoteException
        Set the path to the original model file.
        Parameters:
        originalModelFilePath - the path to the new original model file
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getOriginalModelFilePath

        java.lang.String getOriginalModelFilePath()
                                           throws java.rmi.RemoteException
        Returns:
        the path to the original model file
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getTestframeFilePath

        java.lang.String getTestframeFilePath()
                                       throws java.rmi.RemoteException
        Returns:
        the path to the test frame file. If deriving the test frame file path is enabled, this will return the automatically derived path.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setCustomTestframeFilePath

        void setCustomTestframeFilePath​(java.lang.String testframeFilePath)
                                 throws java.rmi.RemoteException
        Set a custom test frame file path.
        Parameters:
        testframeFilePath - the new test frame file path
        Throws:
        java.rmi.RemoteException - remote communication problem
      • isTestFrameFilePathDeriveFromOriginalModel

        boolean isTestFrameFilePathDeriveFromOriginalModel()
                                                    throws java.rmi.RemoteException
        Returns:
        true if the test frame file path is derived from the original model
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setTestframeFilePathDeriveFromOriginalModel

        void setTestframeFilePathDeriveFromOriginalModel()
                                                  throws java.rmi.RemoteException
        Automatically derive the test frame file path from the original model.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setOriginalModelLoadScript

        void setOriginalModelLoadScript​(java.lang.String originalModelLoadScript)
                                 throws java.rmi.RemoteException
        Set the original model load script
        Parameters:
        originalModelLoadScript - the new original model load script
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getOriginalModelLoadScript

        java.lang.String getOriginalModelLoadScript()
                                             throws java.rmi.RemoteException
        Returns:
        the original model load script
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setTestframeModelLoadScript

        void setTestframeModelLoadScript​(java.lang.String testframeModelLoadScript)
                                  throws java.rmi.RemoteException
        Set the test frame model load script
        Parameters:
        testframeModelLoadScript - the new test frame model load script
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getTestframeModelLoadScript

        java.lang.String getTestframeModelLoadScript()
                                              throws java.rmi.RemoteException
        Returns:
        the test frame model load script
        Throws:
        java.rmi.RemoteException - remote communication problem
      • setTestRunScript

        void setTestRunScript​(java.lang.String testRunScript)
                       throws java.rmi.RemoteException
        Set the test run script
        Parameters:
        testRunScript - the new test run script
        Throws:
        java.rmi.RemoteException - remote communication problem
      • getTestRunScript

        java.lang.String getTestRunScript()
                                   throws java.rmi.RemoteException
        Returns:
        the test run script
        Throws:
        java.rmi.RemoteException - remote communication problem
      • importIO

        void importIO​(Project.SynchronizationMethod syncMethod)
               throws java.rmi.RemoteException
        Import the interface from the configured original model and subsystem block path (default all)
        Parameters:
        syncMethod - Should the objects be synchronized by name or by external name
        Throws:
        java.rmi.RemoteException - remote communication problem
      • generateTestframe

        void generateTestframe​(boolean reuseExistingInterfaceData)
                        throws java.rmi.RemoteException
        Generate the test frame for the model specified in the Matlab-configuration.
        Parameters:
        reuseExistingInterfaceData - Specify if interface data from a previous interface import that still exists in the MATLAB workspace shall be used
        Throws:
        java.rmi.RemoteException - remote communication problem
      • openOriginalModel

        void openOriginalModel()
                        throws java.rmi.RemoteException
        Open the original model in MATLAB via running the configured original model load script in MATLAB.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • openTestframeModel

        void openTestframeModel()
                         throws java.rmi.RemoteException
        Open the test frame model in MATLAB via running the configured test frame model load script in MATLAB.
        Throws:
        java.rmi.RemoteException - remote communication problem
      • registerOfflineLogging

        void registerOfflineLogging​(java.lang.String tptName,
                                    java.lang.String typeStr,
                                    java.lang.String defaultValueStr,
                                    java.lang.String sourceBlockPath,
                                    int portNumber,
                                    java.lang.String slLogName,
                                    java.lang.String tlLogdataStructName,
                                    boolean useTlddLogging)
                             throws java.rmi.RemoteException
        Add a measurement to project declarations and configure the mapping-data for offline logging with TPT. The settings are not automatically applied in MATLAB.

        Note: This is for internal use only and may change in future versions of TPT.

        Parameters:
        tptName - The name of the new Measurement
        typeStr - The type string of the new Measurement
        defaultValueStr - The default value of the new Measurement
        sourceBlockPath - The source block path of the simulink signal that shall be logged
        portNumber - The source port number of the simulink signal that shall be logged
        slLogName - The simulink logging name
        tlLogdataStructName - The TargetLink log data struct name (empty if simulink logging is used)
        useTlddLogging - Enable to use logging via TargetLink DD, otherwise block-logging is used
        Throws:
        java.rmi.RemoteException - remote communication problem