Class YMacroBlock


public class YMacroBlock extends MacroBlock
Author:
Jack Bradshaw
  • Constructor Details

  • Method Details

    • subBlockCopy

      protected MacroBlock subBlockCopy(int current_class)
      Description copied from class: MacroBlock
      Factory Method for sub-block creation This method is to be overridden by subclasses to instantiate a copy of the current block (of the correct type) For instance, a copy of an XMacroBlocks needs to be a XMacroBlock
      Specified by:
      subBlockCopy in class MacroBlock
      Parameters:
      current_class - The class for which the copy is created
      Returns:
      A shallow copy of calling block, for the current_class. Without micro blocks.
    • newMicroBlock

      protected MicroBlock newMicroBlock(Position block_position, int h) throws InternalErrorException
      Description copied from class: MacroBlock
      Factory Method for Micro Blocks To be overridden by subclasses in order to create the appropriate subclass of MacroBlock in the parallel hierarchy. i.e. XMacroBlocks are composed of XMicroBlocks
      Specified by:
      newMicroBlock in class MacroBlock
      Parameters:
      block_position - Starting position for the new macro block
      h - Number of non-zeros associated with the macro block
      Throws:
      InternalErrorException