25 lines
488 B
Java
25 lines
488 B
Java
package org.fog.utils.distribution;
|
|
|
|
import java.util.Random;
|
|
|
|
public abstract class Distribution {
|
|
|
|
public static int NORMAL = 1;
|
|
public static int DETERMINISTIC = 2;
|
|
public static int UNIFORM = 3;
|
|
|
|
protected Random random;
|
|
public abstract double getNextValue();
|
|
|
|
public Random getRandom() {
|
|
return random;
|
|
}
|
|
|
|
public void setRandom(Random random) {
|
|
this.random = random;
|
|
}
|
|
|
|
public abstract int getDistributionType();
|
|
public abstract double getMeanInterTransmitTime();
|
|
}
|