algo
Class BestByteLocStore

java.lang.Object
  extended by algo.BestByteLocStore

 class BestByteLocStore
extends java.lang.Object

Storage for best path found so far.


Field Summary
private  int idlers
           
private  Path path
           
 int threads
           
 
Constructor Summary
BestByteLocStore(Path b, int i, int t)
           
 
Method Summary
 boolean allIdle()
           
 void decIdle()
           
 Path getPath()
           
 void incIdle()
           
 void setPath(Path p)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

private Path path

idlers

private int idlers

threads

public final int threads
Constructor Detail

BestByteLocStore

public BestByteLocStore(Path b,
                        int i,
                        int t)
Parameters:
b - best known path.
i - idle threads.
t - number of threads.
Method Detail

getPath

public Path getPath()
Returns:
path.

setPath

public void setPath(Path p)
Parameters:
p - new best path.

incIdle

public void incIdle()

decIdle

public void decIdle()

allIdle

public boolean allIdle()
Returns:
(idlers == threads).