Skip to content

Commit cb89e07

Browse files
committed
Updates Example1 and README
Signed-off-by: Manoel Campos <[email protected]>
1 parent 71ca8a6 commit cb89e07

File tree

2 files changed

+15
-16
lines changed

2 files changed

+15
-16
lines changed

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
## 1. Introduction
66

7-
**CloudSim Plus Automation** is a Java 17+ command line tool based on [CloudSim Plus](http://cloudsimplus.org)
7+
**CloudSim Plus Automation** is a Java 17+ command line tool based on [CloudSim Plus](https://cloudsimplus.org)
88
(and some [CloudReports](https://github.com/thiagotts/CloudReports) classes)
99
which is able to read specifications of CloudSim Plus simulation scenarios from a YAML file,
1010
a very human-readable data format.
@@ -73,7 +73,7 @@ This work contributes to:
7373
- avoid programming on the creation of CloudSim Plus simulation environments;
7474
- reduce learning curve on creation of CloudSim Plus simulation scenarios;
7575
- facilitate and automate CloudSim Plus simulation environments creation;
76-
- use a human readable file format to specify cloud simulation scenarios and speed up such a simulation process phase;
76+
- use a human-readable file format to specify cloud simulation scenarios and speed up such a simulation process phase;
7777
- allow reuse, extension and sharing of simulations scenarios.
7878
7979
## 2. Requirements
@@ -87,11 +87,11 @@ mvn clean install
8787

8888
## 3. Using the command line tool
8989

90-
You can simply download the [jar file from the latest release](https://github.com/manoelcampos/cloudsim-plus-automation/releases/latest) and run it in a terminal
90+
You can simply download the [jar file from the latest release](https://github.com/cloudsimplus/cloudsimplus-automation/releases/latest) and run it in a terminal
9191
by issuing the following command (check the correct version number of the jar file):
9292

9393
```bash
94-
java -jar cloudsim-plus-automation-7.1.0-with-dependencies.jar PathToSimulationScenario.yml
94+
java -jar cloudsimplus-automation-8.0.0-with-dependencies.jar PathToSimulationScenario.yml
9595
```
9696

9797
Execute the tool without any parameter to see the usage help.
@@ -105,7 +105,7 @@ Just add CloudSim Plus Automation as a Maven dependency into your own project an
105105
```xml
106106
<dependency>
107107
<groupId>org.cloudsimplus</groupId>
108-
<artifactId>cloudsim-plus-automation</artifactId>
108+
<artifactId>cloudsimplus-automation</artifactId>
109109
<!-- Set a specific version or use the latest one -->
110110
<version>LATEST</version>
111111
</dependency>
@@ -117,28 +117,28 @@ The complete example project is available [here](example).
117117
```java
118118
try {
119119
//Loads a YAML file containing 1 or more simulation scenarios.
120-
final YamlCloudScenarioReader reader = new YamlCloudScenarioReader("PATH TO YOUR YAML FILE");
120+
final var reader = new YamlCloudScenarioReader("PATH TO YOUR YAML FILE");
121121
//Gets the list or parsed scenarios.
122-
final List<YamlCloudScenario> simulationScenarios = reader.getScenarios();
122+
final var yamlCloudScenariosList = reader.getScenarios();
123123
//For each existing scenario, creates and runs it in CloudSim Plus, printing results.
124-
for (YamlCloudScenario scenario : simulationScenarios) {
124+
for (YamlCloudScenario scenario : yamlCloudScenariosList) {
125125
new CloudSimulation(scenario).run();
126126
}
127127
} catch (FileNotFoundException | YamlException e) {
128-
System.err.println("Error when trying to load the simulation scenario from the YAML file: "+e.getMessage());
128+
System.err.println("Error loading the simulation scenario from the YAML file: "+e.getMessage());
129129
}
130130
```
131131

132132
## 5. Published Paper
133133

134-
For more information, read the paper published on the [Springer Lecture Notes in Computer Science Volume 8662](http://doi.org/10.1007/978-3-319-11167-4_34). Realize the paper is related to an older version of the tool, which is compatible with CloudSim 3.
134+
For more information, read the paper published on the [Springer Lecture Notes in Computer Science Volume 8662](https://doi.org/10.1007/978-3-319-11167-4_34). Realize the paper is related to an older version of the tool, which is compatible with CloudSim 3.
135135
The YAML structure has changed since there too, making it simpler and matching the name of entries with CloudSim and CloudSim Plus classes (such as VmAllocationPolicy, VmScheduler, CloudletScheduler). See the last section for more information.
136136

137137
**If you are using this work for publishing a paper, please cite our paper above.**
138138

139139
## 6. Notice
140140

141141
If you are looking for the **CloudSim Automation**,
142-
which is the version compatible with [CloudSim 4](http://github.com/Cloudslab/cloudsim),
143-
it is available at [cloudsim-version](https://github.com/manoelcampos/cloudsim-plus-automation/tree/cloudsim-version) branch.
142+
which is the version compatible with [CloudSim 4](https://github.com/Cloudslab/cloudsim),
143+
it is available at [cloudsim-version](https://github.com/cloudsimplus/cloudsimplus-automation/tree/cloudsim-version) branch.
144144
However, that version is not supported anymore.

src/main/java/org/cloudsimplus/automation/examples/Example1.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import org.cloudsimplus.util.ResourceLoader;
99

1010
import java.io.FileNotFoundException;
11-
import java.util.List;
1211

1312
/**
1413
* Starts the example, parsing a YAML file containing
@@ -27,13 +26,13 @@ private Example1(){
2726
//Loads the YAML file containing 1 or more simulation scenarios.
2827
final var reader = new YamlCloudScenarioReader(yamlFilePath);
2928
//Gets the list or parsed scenarios.
30-
final List<YamlCloudScenario> simulationScenarios = reader.getScenarios();
29+
final var yamlCloudScenariosList = reader.getScenarios();
3130
//For each existing scenario, creates and runs it in CloudSim Plus, printing results.
32-
for (YamlCloudScenario scenario : simulationScenarios) {
31+
for (YamlCloudScenario scenario : yamlCloudScenariosList) {
3332
new CloudSimulation(scenario).run();
3433
}
3534
} catch (FileNotFoundException | YamlException e) {
36-
System.err.println("Error when trying to load the simulation scenario from the YAML file: "+e.getMessage());
35+
System.err.println("Error loading the simulation scenario from the YAML file: "+e.getMessage());
3736
}
3837
}
3938

0 commit comments

Comments
 (0)