2012-09-25 21:29:00 -04:00
|
|
|
public class baseAlgorithm{
|
|
|
|
|
2012-10-30 20:26:34 -04:00
|
|
|
int[] memoryBlock;
|
2012-09-25 21:29:00 -04:00
|
|
|
|
2012-10-30 20:26:34 -04:00
|
|
|
void baseAlgorithm(int memorySize){
|
|
|
|
/* Constructor needed for each algorithm */
|
|
|
|
memoryBlock = new int[memorySize];
|
2012-09-25 21:29:00 -04:00
|
|
|
}
|
|
|
|
|
2012-11-05 17:59:08 -05:00
|
|
|
void allocate(int jobID, int jobSize, int jobTime){
|
2012-10-30 20:26:34 -04:00
|
|
|
/* This method to be overloaded by each algorithm */
|
2012-09-25 21:29:00 -04:00
|
|
|
}
|
2012-11-05 17:59:08 -05:00
|
|
|
void deallocate(int jobSize, int beginningLocation){
|
2012-09-25 21:29:00 -04:00
|
|
|
|
|
|
|
}
|
2012-10-30 20:26:34 -04:00
|
|
|
}
|