cloudsimplus / cloudsimplus

State-of-the-art Framework 🏗 for Cloud Computing ⛅️ Simulation: a modern, full-featured, easier-to-use, highly extensible 🧩, faster 🚀 and more accurate ☕️ Java 17+ tool for cloud computing research 🎓. Examples: https://github.com/cloudsimplus/cloudsimplus-examples

Home Page:https://cloudsimplus.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Allows a DatacenterBroker to sort submitted VMs and Cloudlets

RaysaOliveira opened this issue · comments

Feature

  • Updates the DatacenterBroker interface and implementing classes, including the methods setVmComparator and setCloudletComparator to enable a developer to set a Comparator object (which can be given as a Lambda Expression) to be used to sort Vms and Cloudlets, respectively, every time when such objects are submitted to the broker.
    This new feature ensures that such submitted objects are are sorted before requesting their creation.
  • This sorting feature enables defining priorities to request the creation of Vms and Cloudlets, following the order defined by the given Comparators.
  • If no Comparator is set, the broker will request the creation of the submitted objects in the order they were submitted.

Notes

The feature was introduced in the previous commit d2c223d. This issue is just for documentation purposes.

Closed by d2c223d