ome.io.nio
Class SimpleBackOff

java.lang.Object
  extended by 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

Field Summary
protected  int count
           
protected  double scalingFactor
           
protected  TileSizes sizes
           
protected  double warmUpFactor
           
 
Constructor Summary
SimpleBackOff()
           
SimpleBackOff(TileSizes sizes)
           
 
Method Summary
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(String msg, ome.model.core.Pixels pixels)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

scalingFactor

protected final double scalingFactor

warmUpFactor

protected final double warmUpFactor

count

protected final int count

sizes

protected final TileSizes sizes
Constructor Detail

SimpleBackOff

public SimpleBackOff()

SimpleBackOff

public SimpleBackOff(TileSizes sizes)
Method Detail

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.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.