1 27 28 package org.objectweb.clif.scenario.util.timers; 29 30 34 public abstract class RandomTimer implements Timer { 35 36 private int min; 37 private int max; 38 39 43 public int getRange() { 44 return max - min; 45 } 46 47 52 public void setRange(int min, int max) { 53 this.min = min; 54 this.max = max; 55 } 56 57 61 public void setMin(int min) { 62 this.min = min; 63 } 64 65 69 public int getMin() { 70 return min; 71 } 72 73 77 public void setMax(int max) { 78 this.max = max; 79 } 80 81 85 public int getMax() { 86 return max; 87 } 88 89 } 90 | Popular Tags |