Package org.cloudsimplus.automation
Class YamlCloudScenario
java.lang.Object
org.cloudsimplus.automation.YamlCloudScenario
Represents a Cloud Computing simulation scenario read from an YAML file.
Each scenario inside an YAML file is represented by an object of this class
and is used to create a CloudSim Plus simulation.
It stores all data representing the simulation to be created in CloudSim Plus
and enables one to build and execute the simulation.
---
Objects of this class are created automatically by
a YamlCloudScenarioReader
class.
After you have one of these instances, you may
pass it to the the CloudSimulation
constructor
to create the Cloud Computing simulation using CloudSim Plus
and further run it.
Each scenario inside the YAML file can be delimited using 3 dashes:
- Author:
- Manoel Campos da Silva Filho
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionA default constructor that is called by aYamlReader
using reflection. -
Method Summary
Modifier and TypeMethodDescriptionGets a List ofCustomerRegistry
objects representing abstract information about customers (brokers).Gets a List ofDatacenterRegistry
objects representing information about data centers.void
setCustomers
(List<CustomerRegistry> customers) Sets a List ofCustomerRegistry
objects representing abstract information about customers (brokers).void
setDatacenters
(List<DatacenterRegistry> datacenters) Gets a List ofDatacenterRegistry
objects.
-
Constructor Details
-
YamlCloudScenario
public YamlCloudScenario()A default constructor that is called by aYamlReader
using reflection. This way, usually objects of this class don't have to be created manually.- See Also:
-
-
Method Details
-
getDatacenters
Gets a List ofDatacenterRegistry
objects representing information about data centers. These objects contain, for instance, the amount of datacenters to be created and the host amount and configurations.Each YAML scenario can have multiple datacenters that are abstractly specified using DatacenterRegistry objects. The concrete datacenters are created by CloudSim Plus.
- Returns:
-
setDatacenters
Gets a List ofDatacenterRegistry
objects.- Parameters:
datacenters
- the datacenters to set- See Also:
-
getCustomers
Gets a List ofCustomerRegistry
objects representing abstract information about customers (brokers). These objects contain, for instance, the amount of customers to be created and the VM amount and configurations.Each YAML scenario can have multiple customers that are abstractly specified using CustomerRegistry objects. The concrete customers are created by CloudSim Plus as its DatacenterBroker objects.
- Returns:
-
setCustomers
Sets a List ofCustomerRegistry
objects representing abstract information about customers (brokers).- Parameters:
customers
- the customers to set- See Also:
-