Package org.cloudsimplus.automation
Class YamlCloudScenarioReader
java.lang.Object
org.cloudsimplus.automation.YamlCloudScenarioReader
public class YamlCloudScenarioReader extends Object
Reads Cloud Computing simulation scenarios
from an YAML file and stores them into a
List
of
YamlCloudScenario
objects.
These YamlCloudScenario
are built using CloudSim Plus.
To create simulation scenarios from an YAML file,
you have to use the class constructor that will try
to read the given file.
The scenarios read will be available in the scenarios
attribute.
Then, to build and run each simulation scenario in CloudSim Plus,
instantiate a CloudSimulation
passing a YamlCloudScenario
to it.
- Author:
- Manoel Campos da Silva Filho
- See Also:
YamlCloudScenario
-
Constructor Summary
Constructors Constructor Description YamlCloudScenarioReader(String filePath)
Instantiates a YamlCloudScenarioReader and reads the YAML file containing the data to create Cloud Computing simulation scenarios. -
Method Summary
Modifier and Type Method Description File
getFile()
Gets the YAMLFile
to read.List<YamlCloudScenario>
getScenarios()
Gets the List of Cloud Simulation scenarios loaded from theYAML file
.
-
Constructor Details
-
YamlCloudScenarioReader
public YamlCloudScenarioReader(String filePath) throws IllegalArgumentException, FileNotFoundException, com.esotericsoftware.yamlbeans.YamlExceptionInstantiates a YamlCloudScenarioReader and reads the YAML file containing the data to create Cloud Computing simulation scenarios. Then, the List of simulation scenarios can be accessed usinggetScenarios()
.- Parameters:
filePath
- the path of the YAML file to read- Throws:
IllegalArgumentException
FileNotFoundException
com.esotericsoftware.yamlbeans.YamlException
-
-
Method Details