public class SimpleBackOff extends java.lang.Object implements BackOff
BackOff
implementation which attempts several writes of the
default block size on startup, and uses that as a scaling factor for all
subsequent calculations.Modifier and Type | Field and Description |
---|---|
protected int |
count |
protected long |
defaultValue |
protected long |
maxPixels |
protected double |
scalingFactor |
protected TileSizes |
sizes |
protected double |
warmUpFactor |
Constructor and Description |
---|
SimpleBackOff() |
SimpleBackOff(TileSizes sizes) |
SimpleBackOff(TileSizes sizes,
long defaultValue,
long maxPixels) |
Modifier and Type | Method and Description |
---|---|
protected double |
calculate() |
protected long |
calculate(ome.model.core.Pixels pixels) |
protected int |
countTiles(ome.model.core.Pixels pixels) |
int |
getCount() |
double |
getScalingFactor() |
double |
getWarmUpFactor() |
void |
throwMissingPyramidException(java.lang.String msg,
ome.model.core.Pixels pixels) |
java.lang.String |
toString() |
protected final double scalingFactor
protected final double warmUpFactor
protected final int count
protected final TileSizes sizes
protected final long maxPixels
protected final long defaultValue
public SimpleBackOff()
public SimpleBackOff(TileSizes sizes)
public SimpleBackOff(TileSizes sizes, long defaultValue, long maxPixels)
public int getCount()
public double getScalingFactor()
public double getWarmUpFactor()
public void throwMissingPyramidException(java.lang.String msg, ome.model.core.Pixels pixels)
throwMissingPyramidException
in interface BackOff
protected long calculate(ome.model.core.Pixels pixels)
protected int countTiles(ome.model.core.Pixels pixels)
protected double calculate() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object