binalcParekh / cloudsim

Automatically exported from code.google.com/p/cloudsim
0 stars 0 forks source link

Turn the 'future' queue of CloudSim class protected #2

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
from Lien Deboosere:

I would like to add a priority field to the SimEvent class to order the 
SimEvents according to their priority.
My idea was to extend the SimEvent class and simply add this field "priority".
So far so good, but when I want to create an extension of the CloudSim class to 
implement the priority mechanism, I cannot access the "future" queue object 
which is needed for example to override the function "addEntity".

My problem would be solved if the "future" queue object in the CloudSim class 
would be declared protected instead of private.
However, for compatibility with future releases of cloudsim, does any one know 
another way to implement this extension of SimEvent?
Or would it be possible to declare this object protected in future releases of 
cloudsim, or is there a reason not to do this?

Original issue reported on code.google.com by rodrigo.calheiros on 28 Jun 2011 at 1:31

GoogleCodeExporter commented 8 years ago

Original comment by rodrigo.calheiros on 19 Jul 2011 at 4:16

GoogleCodeExporter commented 8 years ago
Fixed for newer versions of CloudSim:

future field of CloudSim was changed from private to protected.

Original comment by rodrigo.calheiros on 15 Dec 2011 at 3:33