omaymayounis / cloudsim

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

Access modifier of DatacenterBroker::cloudletsSubmitted #9

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a subclass of DatacenterBroker
2. Implement a method (new or overriden) that uses the 
DatacenterBroker::cloudletsSubmitted private field.
3.

What is the expected output? What do you see instead?

The new class won't inherit the private field 
DatacenterBroker::cloudletsSubmitted. This prevents it from compiling 
successfully.

What version of the product are you using? On what operating system?

CloudSim 2.1.1
OS: Linux and Windows

Please provide any additional information below.

Changing the field's access modifier to protected or public will solve this 
issue. An alternate solution is to create a public getter/setter, since this is 
the only field of this class that is not encapsulated.

Original issue reported on code.google.com by thiagot...@gmail.com on 2 Sep 2011 at 12:46

GoogleCodeExporter commented 8 years ago
All fields from DatacenterBroker were changed from "private" to "protected" to 
allow easy extension.

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

GoogleCodeExporter commented 8 years ago
Issue 16 has been merged into this issue.

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