Package org.cloudsimplus.automation
Class CloudSimulation
java.lang.Object
org.cloudsimplus.automation.CloudSimulation
- All Implemented Interfaces:
Runnable
Represents a simulation created in CloudSim Plus.
- Author:
- Manoel Campos da Silva Filho
-
Constructor Summary
ConstructorsConstructorDescriptionCloudSimulation(YamlCloudScenario scenario) Instantiates a CloudSimulation object to enable building and runningCloud Simulation Scenarioin CloudSim Plus.CloudSimulation(YamlCloudScenario scenario, String label) Builds aCloud Simulation Scenarioread from an YAML file in CloudSim Plus. -
Method Summary
Modifier and TypeMethodDescriptionList<org.cloudsimplus.brokers.DatacenterBroker>Gets the list ofDatacenterBrokers created in CloudSim Plus, each one representing a customer obtained from aCustomerRegistry.List<org.cloudsimplus.cloudlets.Cloudlet>Gets the list of all applications (Cloudlets) created in CloudSim Plus.List<org.cloudsimplus.cloudlets.Cloudlet>getCloudlets(org.cloudsimplus.brokers.DatacenterBroker broker) Gets the list of applications (Cloudlets) for each customer (DatacenterBroker) created in CloudSim Plus.org.cloudsimplus.core.CloudSimPlusGets the CloudSim Plus instance used to run the simulation.List<org.cloudsimplus.datacenters.Datacenter>Gets the list ofDatacenters created in CloudSim Plus, obtained from theDatacenterRegistry.List<org.cloudsimplus.hosts.Host>getHosts()Gets the list of allHosts created in CloudSim Plus for allDatacenters.List<org.cloudsimplus.vms.Vm>getVms()Gets the list of all Virtual Machines (Vmcreated in CloudSim Plus.List<org.cloudsimplus.vms.Vm>getVms(org.cloudsimplus.brokers.DatacenterBroker broker) Gets the list of Virtual Machines (Vm) for each customer (DatacenterBroker) created in CloudSim Plus.booleanbooleanbooleanvoidrun()Builds and runs the simulation scenario in CloudSim Plus.setLogEnabled(boolean logEnabled) setPrintScenariosConfiguration(boolean printScenariosConfiguration) setShowResults(boolean showResults)
-
Constructor Details
-
CloudSimulation
Instantiates a CloudSimulation object to enable building and runningCloud Simulation Scenarioin CloudSim Plus.- Parameters:
scenario- theYamlCloudScenarioread from an YAML file
-
CloudSimulation
Builds aCloud Simulation Scenarioread from an YAML file in CloudSim Plus.- Parameters:
scenario- theYamlCloudScenarioread from an YAML filelabel- A label to be used to identify the running simulation scenario. Commonly this can be the name of the loaded YAML file.
-
-
Method Details
-
run
public void run()Builds and runs the simulation scenario in CloudSim Plus. -
getCloudSimPlus
public org.cloudsimplus.core.CloudSimPlus getCloudSimPlus()Gets the CloudSim Plus instance used to run the simulation.- Returns:
-
getDatacenters
Gets the list ofDatacenters created in CloudSim Plus, obtained from theDatacenterRegistry.- Returns:
-
getHosts
Gets the list of allHosts created in CloudSim Plus for allDatacenters.- Returns:
-
getBrokers
Gets the list ofDatacenterBrokers created in CloudSim Plus, each one representing a customer obtained from aCustomerRegistry.- Returns:
-
getVms
Gets the list of Virtual Machines (Vm) for each customer (DatacenterBroker) created in CloudSim Plus.- Returns:
- See Also:
-
getVms
Gets the list of all Virtual Machines (Vmcreated in CloudSim Plus.- Returns:
- See Also:
-
getCloudlets
public List<org.cloudsimplus.cloudlets.Cloudlet> getCloudlets(org.cloudsimplus.brokers.DatacenterBroker broker) Gets the list of applications (Cloudlets) for each customer (DatacenterBroker) created in CloudSim Plus.- Returns:
- See Also:
-
getCloudlets
Gets the list of all applications (Cloudlets) created in CloudSim Plus.- Returns:
- See Also:
-
isShowResults
public boolean isShowResults() -
setShowResults
-
isLogEnabled
public boolean isLogEnabled() -
setLogEnabled
-
isPrintScenariosConfiguration
public boolean isPrintScenariosConfiguration() -
setPrintScenariosConfiguration
-