Class CloudSimulation

java.lang.Object
org.cloudsimplus.automation.CloudSimulation
All Implemented Interfaces:
Runnable

public class CloudSimulation
extends Object
implements Runnable
Represents a simulation created in CloudSim Plus.
Author:
Manoel Campos da Silva Filho
  • Constructor Details

  • Method Details

    • run

      public void run()
      Builds and runs the simulation scenario in CloudSim Plus.
      Specified by:
      run in interface Runnable
    • getCloudSimPlus

      public org.cloudbus.cloudsim.core.CloudSim getCloudSimPlus()
      Gets the CloudSim Plus instance used to run the simulation.
      Returns:
    • getDatacenters

      public List<org.cloudbus.cloudsim.datacenters.Datacenter> getDatacenters()
      Gets the list of Datacenters created in CloudSim Plus, obtained from the DatacenterRegistry.
      Returns:
    • getHosts

      public List<org.cloudbus.cloudsim.hosts.Host> getHosts()
      Gets the list of all Hosts created in CloudSim Plus for all Datacenters.
      Returns:
    • getBrokers

      public List<org.cloudbus.cloudsim.brokers.DatacenterBroker> getBrokers()
      Gets the list of DatacenterBrokers created in CloudSim Plus, each one representing a customer obtained from a CustomerRegistry.
      Returns:
    • getVms

      public List<org.cloudbus.cloudsim.vms.Vm> getVms​(org.cloudbus.cloudsim.brokers.DatacenterBroker broker)
      Gets the list of Virtual Machines (Vm) for each customer (DatacenterBroker) created in CloudSim Plus.
      Returns:
      See Also:
      getVms()
    • getVms

      public List<org.cloudbus.cloudsim.vms.Vm> getVms()
      Gets the list of all Virtual Machines (Vm created in CloudSim Plus.
      Returns:
      See Also:
      getVms(DatacenterBroker)
    • getCloudlets

      public List<org.cloudbus.cloudsim.cloudlets.Cloudlet> getCloudlets​(org.cloudbus.cloudsim.brokers.DatacenterBroker broker)
      Gets the list of applications (Cloudlets) for each customer (DatacenterBroker) created in CloudSim Plus.
      Returns:
      See Also:
      getCloudlets()
    • getCloudlets

      public List<org.cloudbus.cloudsim.cloudlets.Cloudlet> getCloudlets()
      Gets the list of all applications (Cloudlets) created in CloudSim Plus.
      Returns:
      See Also:
      getCloudlets(DatacenterBroker)
    • isShowResults

      public boolean isShowResults()
    • setShowResults

      public CloudSimulation setShowResults​(boolean showResults)
    • isLogEnabled

      public boolean isLogEnabled()
    • setLogEnabled

      public CloudSimulation setLogEnabled​(boolean logEnabled)
    • isPrintScenariosConfiguration

      public boolean isPrintScenariosConfiguration()
    • setPrintScenariosConfiguration

      public CloudSimulation setPrintScenariosConfiguration​(boolean printScenariosConfiguration)