public class UtilizationModelPlanetLabInMemory extends java.lang.Object implements UtilizationModel
| Constructor and Description |
|---|
UtilizationModelPlanetLabInMemory(java.lang.String inputPath,
double schedulingInterval)
Instantiates a new utilization model PlanetLab.
|
UtilizationModelPlanetLabInMemory(java.lang.String inputPath,
double schedulingInterval,
int dataSamples)
Instantiates a new utilization model PlanetLab with variable data samples.
|
| Modifier and Type | Method and Description |
|---|---|
double |
getSchedulingInterval()
Gets the scheduling interval.
|
double |
getUtilization(double time)
Returns utilization in percents according to the time.
|
void |
setSchedulingInterval(double schedulingInterval)
Sets the scheduling interval.
|
public UtilizationModelPlanetLabInMemory(java.lang.String inputPath,
double schedulingInterval)
throws java.lang.NumberFormatException,
java.io.IOException
inputPath - the input pathjava.lang.NumberFormatException - the number format exceptionjava.io.IOException - Signals that an I/O exception has occurred.public UtilizationModelPlanetLabInMemory(java.lang.String inputPath,
double schedulingInterval,
int dataSamples)
throws java.lang.NumberFormatException,
java.io.IOException
inputPath - the input pathdataSamples - number of samples in the filejava.lang.NumberFormatException - the number format exceptionjava.io.IOException - Signals that an I/O exception has occurred.public double getUtilization(double time)
UtilizationModelgetUtilization in interface UtilizationModeltime - the timepublic void setSchedulingInterval(double schedulingInterval)
schedulingInterval - the new scheduling intervalpublic double getSchedulingInterval()