Interface LogRow

  • All Known Implementing Classes:
    LogRowArray

    public interface LogRow
    The states of the items in one row in the log.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int BITS_PER_LONG
      The number of bits used in each long in the array returned by getData().
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long[] getData()
      Get a copy of the data as an array of long.
      java.lang.String getDataString()
      Get data as a string of 1's and 0's
      int getNumStates()
      Get the number of states in the row.
      boolean getState​(int index)
      Get the state of one item.
      void setState​(int index, boolean state)
      Get the state of one item.
    • Method Detail

      • getNumStates

        int getNumStates()
        Get the number of states in the row.
        Returns:
        the number of states in the row
      • getState

        boolean getState​(int index)
        Get the state of one item.
        Parameters:
        index - the row index
        Returns:
        true if the state is active
      • setState

        void setState​(int index,
                      boolean state)
        Get the state of one item.
        Parameters:
        index - the row index
        state - the new state
      • getData

        long[] getData()
        Get a copy of the data as an array of long. This could be, but don't need to be, the way data is stored internally.
        Returns:
        a clone of the raw data
      • getDataString

        java.lang.String getDataString()
        Get data as a string of 1's and 0's
        Returns:
        the data