public class UtilizationModelStochastic extends Object implements UtilizationModel
| Constructor and Description |
|---|
UtilizationModelStochastic()
Instantiates a new utilization model stochastic.
|
UtilizationModelStochastic(long seed)
Instantiates a new utilization model stochastic.
|
| Modifier and Type | Method and Description |
|---|---|
protected Map<Double,Double> |
getHistory()
Gets the history.
|
Random |
getRandomGenerator()
Gets the random generator.
|
double |
getUtilization(double time)
Returns utilization in percents according to the time.
|
void |
loadHistory(String filename)
Load history.
|
void |
saveHistory(String filename)
Save history.
|
protected void |
setHistory(Map<Double,Double> history)
Sets the history.
|
void |
setRandomGenerator(Random randomGenerator)
Sets the random generator.
|
public UtilizationModelStochastic()
public UtilizationModelStochastic(long seed)
seed - the seedpublic double getUtilization(double time)
UtilizationModelgetUtilization in interface UtilizationModeltime - the timeprotected void setHistory(Map<Double,Double> history)
history - the historypublic void saveHistory(String filename) throws Exception
filename - the filenameException - the exceptionpublic void loadHistory(String filename) throws Exception
filename - the filenameException - the exceptionpublic void setRandomGenerator(Random randomGenerator)
randomGenerator - the new random generatorpublic Random getRandomGenerator()
Copyright © 2012 The Cloud Computing and Distributed Systems (CLOUDS) Laboratory, The University of Melbourne. All Rights Reserved.