public interface ModuleComputation
Only the center ping should be modified.
The buffered surrounding pings, specified by getPingBufferRadius(), are only for reading.
Computation that do not require buffering could use SinglePingModuleComputation.
| Modifier and Type | Method and Description |
|---|---|
void |
compute(PingBuffer aPingBuffer)
The computation implementation.
|
int |
getPingBufferRadius()
The (maximum) number of pings that should be made available for reading on either side of the center ping.
|
int getPingBufferRadius()
2 × PingBufferRadius + 1.
At the beginning and end of the file fewer pings will be available, as specified by
the functions PingBuffer.getBeginIndex() and PingBuffer.getEndIndex().void compute(PingBuffer aPingBuffer)
Note: Only the center ping, with index 0, should be modified.
aPingBuffer - the buffer containing the accessible ping.Copyright © 2017 MAREC, Norway. All Rights Reserved.