Package no.marec.api.korona
Interface PingBuffer
public interface PingBuffer
Buffered pings as needed by
ModuleComputation
.-
Method Summary
Modifier and TypeMethodDescriptionint
The first valid index usable bygetPing(int)
.int
One past the last valid index usable bygetPing(int)
.getPing
(int index) Returns a ping indexed relative to the center ping.
-
Method Details
-
getBeginIndex
int getBeginIndex()The first valid index usable bygetPing(int)
.- Returns:
- the first valid index
-
getEndIndex
int getEndIndex()One past the last valid index usable bygetPing(int)
.- Returns:
- one past the last valid index
-
getPing
Returns a ping indexed relative to the center ping. The center ping can be accessed bygetPing(0)
. The surrounding pings can be access bygetPing(index)
, wheregetBeginIndex()
≤ index <getEndIndex()
.- Parameters:
index
- the index relative to the center ping- Returns:
- a ping
-