Fix dumb errors in the dummyAlgorithm

This commit is contained in:
Bradlee Speice 2012-11-06 19:53:11 -05:00
parent 68bc6b8ba4
commit a466157d5f

View File

@ -2,16 +2,16 @@ public class dummyAlgorithm{
int[] memoryBlock; int[] memoryBlock;
void dummyAlgorithm(int memorySize){ dummyAlgorithm(int memorySize){
/* Constructor needed for each algorithm */ /* Constructor needed for each algorithm */
memoryBlock = new int[memorySize]; memoryBlock = new int[memorySize];
} }
void allocate(int jobID, int jobSize, int jobTime){ void allocate(int jobID, int jobSize, int jobTime){
/* This method to be overloaded by each algorithm */ /* This method to be overloaded by each algorithm */
return System.out.println("Allocating job " + jobID + " with size: " + jobSize + " for: " + jobTime + " milliseconds."); System.out.println("Allocating job " + jobID + " with size: " + jobSize + " for: " + jobTime + " milliseconds.");
} }
void deallocate(int jobSize, int beginningLocation){ void deallocate(int jobSize, int beginningLocation){
return System.out.println("Removing job with size: " + jobSize + " beginning at: " + beginningLocation); System.out.println("Removing job with size: " + jobSize + " beginning at: " + beginningLocation);
} }
} }