itcs3146-project/baseAlgorithm.java

17 lines
366 B
Java
Raw Normal View History

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