Class YamlCloudScenario

java.lang.Object
org.cloudsimplus.automation.YamlCloudScenario

public class YamlCloudScenario extends Object
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 Details

    • YamlCloudScenario

      public YamlCloudScenario()
      A default constructor that is called by a YamlReader using reflection. This way, usually objects of this class don't have to be created manually.
      See Also:
  • Method Details

    • getDatacenters

      public List<DatacenterRegistry> getDatacenters()
      Gets a List of DatacenterRegistry 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

      public void setDatacenters(List<DatacenterRegistry> datacenters)
      Gets a List of DatacenterRegistry objects.
      Parameters:
      datacenters - the datacenters to set
      See Also:
    • getCustomers

      public List<CustomerRegistry> getCustomers()
      Gets a List of CustomerRegistry 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

      public void setCustomers(List<CustomerRegistry> customers)
      Sets a List of CustomerRegistry objects representing abstract information about customers (brokers).
      Parameters:
      customers - the customers to set
      See Also: