init
This commit is contained in:
24
src/org/fog/utils/distribution/Distribution.java
Normal file
24
src/org/fog/utils/distribution/Distribution.java
Normal file
@@ -0,0 +1,24 @@
|
||||
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();
|
||||
}
|
||||
Reference in New Issue
Block a user