尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證CloudSim Plus Examples: the starting point to understand how to use the framework and create your own simulations
翻譯準備中
取自儲存庫 README
正在載入完整 README。
檢視完整 README ↗This module contains several CloudSim Plus examples, including those inherited from CloudSim and new ones for exclusive features. Those later ones are available into the org.cloudsimplus.examples package. They have more meaningful names, making it easier to get an overview of what an example is about, before even opening it.
To get started you can check the ReducedExample.java,
which shows the minimum code required to build cloud simulations using CloudSim Plus.
The example places all the required code inside the main() method just for convenience, making it easier for new users to understand the code.
However, that code is not reusable. If you try to build simulations that way, you'll end up with a messy and duplicated code. Therefore, after you understood how to build basic simulations, you may want to try checking the BasicFirstExample.java. It's a structured and reusable code that gives a picture of the best ways to write your simulations.
CloudSim Plus Examples is a Java 25 project that uses maven for build and dependency management. To build and run the project, you need JDK 25+ installed.
All project dependencies are downloaded automatically by maven (including CloudSim Plus jars).
You can download this project using (i) the download button on top of this page (ii) your own IDE for it or (iii) the command line as described below.
Considering that you have git installed on your operating system, download the project source by cloning the repository issuing the following command at a terminal:
git clone https://github.com/cloudsimplus/cloudsimplus-examples.git
CloudSim Plus Examples is a maven project, therefore to build it, you have two ways:
Open the project on your favorite IDE and click the build button and that is it.
Open a terminal at the project root directory and type one of the following commands:
on Linux/macOS
./mvnw clean install
./mvnw dependency:resolve -Dclassifier=javadoc
on Windows
mvnw.cmd clean install
mvnw.cmd dependency:resolve -Dclassifier=javadoc
The second command is optional but very useful to download CloudSim Plus JavaDocs and help you understand the API inside your IDE.
There are 2 ways to run the examples in this project, as presented below.
The easiest way to run the examples is relying on some IDE. Below are required steps:
The project has a bootstrap.sh script you can use to build and run CloudSim Plus examples. This is a script for Unix-like systems such as Linux, FreeBSD and macOS.
To run some example, type the following command at a terminal inside the project's root directory: sh bootstrap.sh package.ExampleClassName.
For instance, to run the BasicFirstExample you can type: sh bootstrap.sh org.cloudsimplus.examples.BasicFirstExample.
The script checks if it is required to build the project, using maven in this case, making sure to download all dependencies. To see which examples are available, just navigate through the src/main/java directory. To check more script options, run it without any parameter.