From af99b632847e66f27c2cf31759c1ad2e3b5e05d2 Mon Sep 17 00:00:00 2001 From: Bradlee Speice Date: Tue, 30 Oct 2012 20:26:34 -0400 Subject: [PATCH] Update the baseAlgorithm class --- baseAlgorithm.java | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/baseAlgorithm.java b/baseAlgorithm.java index 044034a..e19d944 100644 --- a/baseAlgorithm.java +++ b/baseAlgorithm.java @@ -1,18 +1,16 @@ public class baseAlgorithm{ - int memoryBlock[]; + int[] memoryBlock; - void baseAlgorithm(){ - + void baseAlgorithm(int memorySize){ + /* Constructor needed for each algorithm */ + memoryBlock = new int[memorySize]; } void allocate(){ - + /* This method to be overloaded by each algorithm */ } void deallocate(){ } - void createThread(){ - - } -} \ No newline at end of file +}