From: Alex G. <fro...@ya...> - 2009-08-13 09:40:31
|
Hello everyone, I'm a PhD student from Romania and I'm trying to build my own framework for some experimental studies. I'm trying to build a flow which is basically User -> Provider (this is just to keep things simple). The user is a parametrized object that can generate Gridlets based on some distribution. I wish to do the same on the Provider side i.e. : Provider should act as a resource pool. Since I'm quite lazy and I'm trying to do a statistical study as well I wish to generate the Resources (based on distributions for number of machines, no of pes, etc.). But since there is no common interface for all resources this would mean either to do my own common interface/abstract class and then do a wrapper for each resource (ARGridResource, GridResource and GridResourceWithFailure), either to work just with one type of resource or to add to the gridsim toolkit an interface/abstract class AbstractResource that is to become the base for all resources. The questions are: Is this feasible and a good design pattern to treat the resources uniformly? What would be the common methods that all resources should share? (setRegionalGIS() would be my suggestion for start). Best regards, Alex |