Package no.marec.api.korona
Interface PingBuffer
-
public interface PingBufferBuffered pings as needed byModuleComputation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intgetBeginIndex()The first valid index usable bygetPing(int).intgetEndIndex()One past the last valid index usable bygetPing(int).PinggetPing(int index)Returns a ping indexed relative to the center ping.
-
-
-
Method Detail
-
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
Ping getPing(int index)
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
-
-