1 23 24 package org.objectweb.medor.eval.lib; 25 26 import org.objectweb.medor.eval.api.EvaluationMetaData; 27 28 32 public class BasicEvaluationMetaData implements EvaluationMetaData { 33 34 boolean isCache = false; 35 boolean isParallel = false; 36 int rangeStart = 0; 37 int rangeSize = Integer.MAX_VALUE; 38 39 public void setCache(boolean isCache) { 40 this.isCache = isCache; 41 } 42 43 public boolean isCache() { 44 return isCache; 45 } 46 47 public void setParallel(boolean isParallel) { 48 this.isParallel = isParallel; 49 } 50 51 public boolean isParallel() { 52 return isParallel; 53 } 54 55 public boolean isLimitedRange() { 56 return rangeSize < Integer.MAX_VALUE; 57 } 58 59 public void setLimitedRangeStartAt(int start) { 60 rangeStart = start; 61 } 62 63 public int getLimitedRangeStartAt() { 64 return rangeStart; 65 } 66 67 public void setLimitedRangeSize(int number) { 68 rangeSize = number; 69 } 70 71 public int getLimitedRangeSize() { 72 return rangeSize; 73 } 74 } 75 | Popular Tags |