CharafeddineMechalikh / PureEdgeSim

PureEdgeSim: A simulation framework for performance evaluation of cloud, fog, and pure edge computing environments.
GNU General Public License v3.0
185 stars 75 forks source link

Created customizable ComputingNodesGenerator + small fixes #38

Closed hennas closed 7 months ago

hennas commented 1 year ago
  1. The ComputingNodesGenerator class is now customizable similarly to TopologyCreator, SimulationManager, etc., classes. I believe this is a useful modification that allows the simulator users to have more control in how the resources are generated, improving the extensibility of the simulator. For example, in my own use case, I needed to provide more information about the edge datacenters than is specified in the XML setting file, and the simplest way to do this was to add my own fields into the XML file and then handle the added fields in the generator. Further, in some use cases users may want to have more control over how the edge devices are initially placed on the simulation area
  2. A couple small fixes:
    • In NetworkLink.java file, line 177, zero is added to the task's network time. I changed this so that it adds the link's latency, which is evidently what should be added.
    • When placing the edge devices in the computing node generator, both x and y coordinates are randomly drawn based on the simulation map length. I changed this so that the x coordinate is randomly drawn based on the simulation map width.
sonarcloud[bot] commented 7 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud