init
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
package org.fog.utils.distribution;
|
||||
|
||||
public class DeterministicDistribution extends Distribution{
|
||||
|
||||
private double value;
|
||||
|
||||
public DeterministicDistribution(double value) {
|
||||
super();
|
||||
setValue(value);
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getNextValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public double getValue() {
|
||||
return value;
|
||||
}
|
||||
|
||||
public void setValue(double value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getDistributionType() {
|
||||
return Distribution.DETERMINISTIC;
|
||||
}
|
||||
|
||||
@Override
|
||||
public double getMeanInterTransmitTime() {
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user