ome.io.nio
Class SimpleBackOff
java.lang.Object
ome.io.nio.SimpleBackOff
- All Implemented Interfaces:
- BackOff
public class SimpleBackOff
- extends Object
- implements BackOff
Basic BackOff
implementation which attempts several writes of the
default block size on startup, and uses that as a scaling factor for all
subsequent calculations.
- Since:
- Beta4.3.1
- Author:
- Josh Moore, josh at glencoesoftware.com
- See Also:
ticket:5910
scalingFactor
protected final double scalingFactor
warmUpFactor
protected final double warmUpFactor
count
protected final int count
sizes
protected final TileSizes sizes
SimpleBackOff
public SimpleBackOff()
SimpleBackOff
public SimpleBackOff(TileSizes sizes)
getCount
public int getCount()
getScalingFactor
public double getScalingFactor()
getWarmUpFactor
public double getWarmUpFactor()
throwMissingPyramidException
public void throwMissingPyramidException(String msg,
ome.model.core.Pixels pixels)
- Specified by:
throwMissingPyramidException
in interface BackOff
calculate
protected long calculate(ome.model.core.Pixels pixels)
countTiles
protected int countTiles(ome.model.core.Pixels pixels)
calculate
protected double calculate()
throws Exception
- Throws:
Exception
toString
public String toString()
- Overrides:
toString
in class Object
OmeroJava Api
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.