Free Touch Pricker
    Preparing search index...

    Class SerialContainer<Block>Abstract

    Abstract container that manages a series of child blocks

    Child blocks are managed by changing the length of the container. Might be used to represent a course of a single method.

    Type Parameters

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    _blocks: Block[] = []

    Blocks within the container

    _initialRow: Row

    Initial row for the block

    _ownership?: BlockOwnership

    Ownership of this block

    Accessors

    • get defaultLength(): number

      Returns the default length for this container N.b. this is likely to vary depending on the stage

      Returns number

    • get index(): number | undefined

      Allows public access to the index

      Returns number | undefined

    • get initialRow(): Row

      Read access to the initial row

      Returns Row

    • set initialRow(initialRow: Row): void

      Write access to the initial row

      Parameters

      • initialRow: Row

      Returns void

    • get rows(): number

      Estimates the number of rows in the block The estimate doesn't take into account coming round part-way through

      Returns number

    Methods

    • Creates a new block for the container

      Used by extend() when creating the container or increasing its length.

      Parameters

      • initialRow: Row

        initial row for the block

      • index: number

        index of block in container

      Returns Block