algo
Class DistBestStore

java.lang.Object
  extended by algo.DistBestStore

 class DistBestStore
extends java.lang.Object

Storage for best path found so far.


Field Summary
private  int idlers
           
private  Path path
           
 int threads
           
 
Constructor Summary
DistBestStore(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

DistBestStore

public DistBestStore(Path b,
                     int i,
                     int t)
Parameters:
b - a Path.
i - number of idle processes.
t - total number of processes.
Method Detail

getPath

public Path getPath()
Returns:
path.

setPath

public void setPath(Path p)
Parameters:
p - a Path.

incIdle

public void incIdle()

decIdle

public void decIdle()

allIdle

public boolean allIdle()