mirror of
https://github.com/bspeice/itcs3146-project
synced 2024-11-14 03:58:19 -05:00
18 lines
599 B
Java
18 lines
599 B
Java
public class dummyAlgorithm implements baseAlgorithm{
|
|
|
|
int[] memoryBlock;
|
|
|
|
dummyAlgorithm(int memorySize){
|
|
/* Constructor needed for each algorithm */
|
|
memoryBlock = new int[memorySize];
|
|
}
|
|
|
|
public void allocate(int jobID, int jobSize, int jobTime){
|
|
/* This method to be overloaded by each algorithm */
|
|
System.out.println("Allocating job " + jobID + " with size: " + jobSize + " for: " + jobTime + " milliseconds.");
|
|
}
|
|
public void deallocate(int jobSize, int beginningLocation){
|
|
System.out.println("Removing job with size: " + jobSize + " beginning at: " + beginningLocation);
|
|
}
|
|
}
|