I am working on the iFogSim for research. I want to experiment some ideas.
One of them is to change the parent of a FogDevice dynamically while running the program. I do this simply by setting the parentId of a FogDevice to another one for example
this.parentId = 10;
but there is something odd happening which is the attributes of available mips, rams, bw does not change and give me one value no matter how big the network is. So, is my way a good one for changing the parent? If yes, so why the attributes always have one value and If no, so what is the right way.