Package org.cloudsimplus.automation
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 Summary
Constructors Constructor Description CloudSimulation(YamlCloudScenario scenario)
Instantiates a CloudSimulation object to enable building and runningCloud Simulation Scenario
in CloudSim Plus.CloudSimulation(YamlCloudScenario scenario, String label)
Builds aCloud Simulation Scenario
read from an YAML file in CloudSim Plus. -
Method Summary
Modifier and Type Method Description List<org.cloudbus.cloudsim.brokers.DatacenterBroker>
getBrokers()
Gets the list ofDatacenterBroker
s created in CloudSim Plus, each one representing a customer obtained from aCustomerRegistry
.List<org.cloudbus.cloudsim.cloudlets.Cloudlet>
getCloudlets()
Gets the list of all applications (Cloudlet
s) created in CloudSim Plus.List<org.cloudbus.cloudsim.cloudlets.Cloudlet>
getCloudlets(org.cloudbus.cloudsim.brokers.DatacenterBroker broker)
Gets the list of applications (Cloudlet
s) for each customer (DatacenterBroker
) created in CloudSim Plus.org.cloudbus.cloudsim.core.CloudSim
getCloudSimPlus()
Gets the CloudSim Plus instance used to run the simulation.List<org.cloudbus.cloudsim.datacenters.Datacenter>
getDatacenters()
Gets the list ofDatacenter
s created in CloudSim Plus, obtained from theDatacenterRegistry
.List<org.cloudbus.cloudsim.hosts.Host>
getHosts()
Gets the list of allHost
s created in CloudSim Plus for allDatacenter
s.List<org.cloudbus.cloudsim.vms.Vm>
getVms()
Gets the list of all Virtual Machines (Vm
created in CloudSim Plus.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.boolean
isLogEnabled()
boolean
isPrintScenariosConfiguration()
boolean
isShowResults()
void
run()
Builds and runs the simulation scenario in CloudSim Plus.CloudSimulation
setLogEnabled(boolean logEnabled)
CloudSimulation
setPrintScenariosConfiguration(boolean printScenariosConfiguration)
CloudSimulation
setShowResults(boolean showResults)
-
Constructor Details
-
CloudSimulation
Instantiates a CloudSimulation object to enable building and runningCloud Simulation Scenario
in CloudSim Plus.- Parameters:
scenario
- theYamlCloudScenario
read from an YAML file
-
CloudSimulation
Builds aCloud Simulation Scenario
read from an YAML file in CloudSim Plus.- Parameters:
scenario
- theYamlCloudScenario
read 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.cloudbus.cloudsim.core.CloudSim getCloudSimPlus()Gets the CloudSim Plus instance used to run the simulation.- Returns:
-
getDatacenters
Gets the list ofDatacenter
s created in CloudSim Plus, obtained from theDatacenterRegistry
.- Returns:
-
getHosts
Gets the list of allHost
s created in CloudSim Plus for allDatacenter
s.- Returns:
-
getBrokers
Gets the list ofDatacenterBroker
s created in CloudSim Plus, each one representing a customer obtained from aCustomerRegistry
.- 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
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 (Cloudlet
s) for each customer (DatacenterBroker
) created in CloudSim Plus.- Returns:
- See Also:
getCloudlets()
-
getCloudlets
Gets the list of all applications (Cloudlet
s) created in CloudSim Plus.- Returns:
- See Also:
getCloudlets(DatacenterBroker)
-
isShowResults
public boolean isShowResults() -
setShowResults
-
isLogEnabled
public boolean isLogEnabled() -
setLogEnabled
-
isPrintScenariosConfiguration
public boolean isPrintScenariosConfiguration() -
setPrintScenariosConfiguration
-