Update the baseAlgorithm class

This commit is contained in:
Bradlee Speice 2012-10-30 20:26:34 -04:00
parent 1fd7966e3b
commit af99b63284

View File

@ -1,18 +1,16 @@
public class baseAlgorithm{ public class baseAlgorithm{
int memoryBlock[]; int[] memoryBlock;
void baseAlgorithm(){ void baseAlgorithm(int memorySize){
/* Constructor needed for each algorithm */
memoryBlock = new int[memorySize];
} }
void allocate(){ void allocate(){
/* This method to be overloaded by each algorithm */
} }
void deallocate(){ void deallocate(){
} }
void createThread(){ }
}
}