Class AbstractMultiMatrixOperation

    • Constructor Detail

      • AbstractMultiMatrixOperation

        public AbstractMultiMatrixOperation()
    • Method Detail

      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.

        Default implementation returns null.
        Specified by:
        getQuickInfo in interface QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • minNumMatricesRequired

        public abstract int minNumMatricesRequired()
        Returns the minimum number of matrices that are required for the operation.
        Returns:
        the number of matrices that are required, <= 0 means no lower limit
      • maxNumMatricesRequired

        public abstract int maxNumMatricesRequired()
        Returns the maximum number of matrices that are required for the operation.
        Returns:
        the number of matrices that are required, <= 0 means no upper limit
      • checkSameDimensions

        protected boolean checkSameDimensions​(us.hebi.matlab.mat.types.Matrix array1,
                                              us.hebi.matlab.mat.types.Matrix array2)
        Checks whether the two matrices have the same dimensions.
        Parameters:
        array1 - the first array
        array2 - the second array
        Returns:
        true if the same dimensions
      • checkSameDimensions

        protected String checkSameDimensions​(us.hebi.matlab.mat.types.Matrix[] matrices)
        Checks whether the matrices have the same dimensions.
        Parameters:
        matrices - the matrices
        Returns:
        null if the same dimensions, other error message
      • check

        protected void check​(us.hebi.matlab.mat.types.Matrix[] matrices)
        Checks the matrices.

        Default implementation only ensures that matrices are present.
        Parameters:
        matrices - the matrices to check
      • doProcess

        protected abstract us.hebi.matlab.mat.types.Matrix[] doProcess​(us.hebi.matlab.mat.types.Matrix[] matrices)
        Performs the actual processing of the matrices.
        Parameters:
        matrices - the matrices to process
        Returns:
        the generated array(s)
      • process

        public us.hebi.matlab.mat.types.Matrix[] process​(us.hebi.matlab.mat.types.Matrix[] matrices)
        Processes the matrices.
        Parameters:
        matrices - the matrices to process
        Returns:
        the generated array(s)