Interface Row<I>

  • Type Parameters:
    I - input symbol type

    public interface Row<I>
    A row in an observation table. Minimally, a row consists of a prefix (the row label) and a unique identifier in its observation table which remains constant throughout the whole process.

    Apart from that, a row is also associated with contents (via an integer id). The prefix of a row may be either a short or long prefix. In the former case, the row will also have successor rows (one-step futures) associated with it.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      Word<I> getLabel()
      Retrieves the label of this row.
      int getRowContentId()
      Retrieves the unique identifier associated with the content of this row (may be -1 if this row has not yet been initialized).
      int getRowId()
      Retrieves the unique row identifier associated with this row.
      Row<I> getSuccessor​(int pos)
      Retrieves the successor row for this short label row and the given alphabet symbol (by index).
      boolean isShortPrefixRow()
      Retrieves whether this row is a short or a long prefix row.
    • Method Detail

      • getRowId

        int getRowId()
        Retrieves the unique row identifier associated with this row.
        Returns:
        the row identifier
        See Also:
        ObservationTable.numberOfRows()
      • getRowContentId

        int getRowContentId()
        Retrieves the unique identifier associated with the content of this row (may be -1 if this row has not yet been initialized).
        Returns:
        the row content identifier
        See Also:
        ObservationTable.numberOfDistinctRows()
      • getLabel

        Word<I> getLabel()
        Retrieves the label of this row.
        Returns:
        the label of this row
      • isShortPrefixRow

        boolean isShortPrefixRow()
        Retrieves whether this row is a short or a long prefix row.
        Returns:
        true if this row is a short prefix row, false otherwise.
      • getSuccessor

        Row<I> getSuccessor​(int pos)
        Retrieves the successor row for this short label row and the given alphabet symbol (by index). If this is no short label row, an exception might occur.
        Parameters:
        pos - the index of the alphabet symbol.
        Returns:
        the successor row (may be null)