78 lines
1.7 KiB
Java
78 lines
1.7 KiB
Java
/**
|
|
* <PRE>
|
|
* AbstractSort.java
|
|
*
|
|
* Revisions: 1.0 Nov. 04, 2002
|
|
* Created the AbstractSort class
|
|
* 1.1 Nov. 04, 2002
|
|
* Finished, Compiled, Commented
|
|
*
|
|
* </PRE>
|
|
*
|
|
* Collaboration Statement:
|
|
* I worked on the homework assignment alone, using only
|
|
* course materials.
|
|
*
|
|
* Created with JCreatorLE, some indents are off when viewed through notepad
|
|
* or EMACS
|
|
*
|
|
* @author <A HREF="mailto:gtg184g@mail.gatech.edu">Jose Manuel Caban</A>
|
|
* @version Version 1.1, Nov. 04, 2002
|
|
*/
|
|
|
|
public abstract class AbstractSort {
|
|
|
|
/**
|
|
*Holds the array to be sorted
|
|
*/
|
|
protected ArrayWrapper arrayWrap;
|
|
|
|
////////////////
|
|
//Constructors//
|
|
////////////////
|
|
|
|
public AbstractSort(ArrayWrapper arrayWrap){
|
|
this.arrayWrap = arrayWrap;
|
|
}
|
|
|
|
///////////////////////
|
|
//Accessors/Modifiers//
|
|
///////////////////////
|
|
|
|
/**
|
|
*Modifier for arrayWrap
|
|
*@param arrayWrap, the new value of arrayWrap
|
|
*/
|
|
public void setArrayWrap(ArrayWrapper arrayWrap){
|
|
this.arrayWrap = arrayWrap;
|
|
}
|
|
|
|
/**
|
|
*Accessor for arrayWrap
|
|
*@return the value of arrayWrap
|
|
*/
|
|
public ArrayWrapper getArrayWrapper(){
|
|
return arrayWrap;
|
|
}
|
|
|
|
/**
|
|
*Sort arrayWrap
|
|
*/
|
|
public abstract void doSort();
|
|
|
|
/***************************************************************/
|
|
|
|
/**
|
|
* Debugging main for class AbstractSort.
|
|
* This method will rigorously test my code.
|
|
*
|
|
* <br><br>
|
|
* @param args a String array of command line arguments.
|
|
*/
|
|
public static void main(String[] args) {
|
|
|
|
|
|
}// end of main(String[] args)
|
|
|
|
}// end of class AbstractSort
|