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(Pixels pixels) |
protected int |
countTiles(Pixels pixels) |
int |
getCount() |
double |
getScalingFactor() |
double |
getWarmUpFactor() |
void |
throwMissingPyramidException(java.lang.String msg,
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, Pixels pixels)
throwMissingPyramidException
in interface BackOff
protected long calculate(Pixels pixels)
protected int countTiles(Pixels pixels)
protected double calculate() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
toString
in class java.lang.Object
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.