algorithm
Class FourStepSearchAlgorithm
public class FourStepSearchAlgorithm
Überschrift:
Beschreibung:
Copyright: Copyright (c) 2002
Organisation:
NUM_STEPS , counter , docCounter , grid , gui , imageViewer , images , listenerList , maxError , minError , optPos , quietMode , searchRange , stepCounter , threshold |
addAlgorithmListener , fillSearchCoordinatesQueue , fireAlgorithmEvent , getDocCounter , getMaxError , getMinError , getNextExplenationURL , getNumComparisons , getOptimalPostion , getSearchRange , hasUserDefinedSearchRange , hasUserDefinedThreshold , incrementCounter , init , performNextComparison , removeAlgorithmListener , reset , setQuietMode , setSearchRange , setThreshold |
docCounter
private int docCounter
optPosOld
private Point optPosOld
pointers
private Point[] pointers
searchCounter
private int searchCounter
searchQueue
private LinkedList searchQueue
FourStepSearchAlgorithm
public FourStepSearchAlgorithm(ImageHolder ih)
getDistance
private int getDistance(Point newPos,
Point oldPos)
newPos
- new optimal positionoldPos
- old optimal position
- index represinting the distance vector in the array 'pointers'
getNewCoordinates
private LinkedList getNewCoordinates(int dist)
toString
public String toString()