Interface PingBuffer


public interface PingBuffer
Buffered pings as needed by ModuleComputation.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    The first valid index usable by getPing(int).
    int
    One past the last valid index usable by getPing(int).
    getPing(int index)
    Returns a ping indexed relative to the center ping.
  • Method Details

    • getBeginIndex

      int getBeginIndex()
      The first valid index usable by getPing(int).
      Returns:
      the first valid index
    • getEndIndex

      int getEndIndex()
      One past the last valid index usable by getPing(int).
      Returns:
      one past the last valid index
    • getPing

      Ping getPing(int index)
      Returns a ping indexed relative to the center ping. The center ping can be accessed by getPing(0). The surrounding pings can be access by getPing(index), where
      getBeginIndex() ≤ index < getEndIndex().
      Parameters:
      index - the index relative to the center ping
      Returns:
      a ping