de.heineken.studienarbeit
Class SSTF
implements the algorithm "Shortest Seek Time First".
SSTF(int puffergroesse, int[] eingabe, int anfangszahl) - Constructor for the algorithm; sets input numbers
|
private int | minimaledistanz(int anfangszahl) - The method Minimaldistanz looks for the min.
|
int[] | run() - the method run starts the algorithm´s work
|
anfangszahl
private int anfangszahl
SSTF
public SSTF(int puffergroesse,
int[] eingabe,
int anfangszahl)
Constructor for the algorithm; sets input numbers
minimaledistanz
private int minimaledistanz(int anfangszahl)
The method Minimaldistanz looks for the min. distance from one number to an other
anfangszahl
- , current position of the head
run
public int[] run()
the method run starts the algorithm´s work
- run in interface Algorithmus