acsicuib / YAFS

Yet Another Fog Simulator (YAFS)
MIT License
101 stars 73 forks source link

About SELECTOR algorithm,I find a bug in core.py #21

Closed jiaweiwangwang closed 5 years ago

jiaweiwangwang commented 5 years ago

Hello, When I implemented my project using the YAFS, I found that one of the passed parameters was missing in the select path algorithm. In line 183 of core.py, according to the path of the path selection algorithm given by the document, we need to pass 9 parameters to get_path()(get_path(self, sim, app_name, message, topology_src, alloc_DES, alloc_module, traffic, from_des)).However, only 8 parameters are passed in the source code where is located line 183 of core.py , and the sim parameter is missing(get_path(self,app_name, message, self.alloc_DES[idDES], self.alloc_DES, self.alloc_module, self.last_busy_time)).