ikg.eleven.sortarray
Class MyVerfahren

java.lang.Object
  extended by ikg.eleven.sortarray.MyVerfahren

public class MyVerfahren
extends java.lang.Object

Class for demonstrating sort algorithms.


Field Summary
(package private)  GraphicArrayObserver gview
          The graphical observer attribute
(package private)  SortArray myField
          We have to instantied the following attributes: - an array of SortArray type
(package private)  int start
           
(package private)  int stop
           
(package private)  TextArrayObserver view
          The textual observer attribute
 
Constructor Summary
MyVerfahren(int anz)
          The constructor with the parameters
- number of array elements.
 
Method Summary
 void sortiere()
          This methods implements the sortalgorithm we want to test.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

gview

GraphicArrayObserver gview
The graphical observer attribute

See Also:
GraphicArrayObserver

myField

SortArray myField
We have to instantied the following attributes: - an array of SortArray type. - to integers for saving the start and stop index of the array. - the observers if we wish to see how the algorithm works.


start

int start

stop

int stop

view

TextArrayObserver view
The textual observer attribute

See Also:
TextArrayObserver
Constructor Detail

MyVerfahren

public MyVerfahren(int anz)
The constructor with the parameters
- number of array elements.
- type of graphic (rR/pP).
The wished observer objects have to be instantiated
- view = new TextArrayObserver();
- gview = new GraphicArrayObserver(50,typ);
and to be added to the array we are sorting
- mArray.addObserver(gview);

Method Detail

sortiere

public void sortiere()
This methods implements the sortalgorithm we want to test.