de.heineken.studienarbeit
Class Loesung
java.lang.Thread
de.heineken.studienarbeit.Loesung
public class Loesung
extends java.lang.Thread
Shows the solution with the currently selected combination of algorithm and buffer size.
A thread is needed, because if not used, a stop from the user's side wouldn´t
be possible at all.
Loesung(Applet1 applet1, int[] eingabewerte, int[] ausgabewerte, int anfangswert) - Constructor
|
void | reset() - Sending back and using the object again is possible after a run of this Loesung
|
void | run() - Solution is shown on the GUI
|
void | setpfeil(int erste, int zweite) - The method sets the arrow in the solution properly
current position in "erste" new position in parameter "zweite"
|
anfangswert
(package private) int anfangswert
applet1
(package private) Applet1 applet1
ausgabewerte
(package private) int[] ausgabewerte
eingabewerte
(package private) int[] eingabewerte
mayRun
public boolean mayRun
terminated
public boolean terminated
Loesung
public Loesung(Applet1 applet1,
int[] eingabewerte,
int[] ausgabewerte,
int anfangswert)
Constructor
reset
public void reset()
Sending back and using the object again is possible after a run of this Loesung
run
public void run()
Solution is shown on the GUI
setpfeil
public void setpfeil(int erste,
int zweite)
The method sets the arrow in the solution properly
current position in "erste" new position in parameter "zweite"
erste
- current position of the headzweite
- next or new position of the head