source: DCWoRMS/branches/coolemall/src/schedframe/resources/computing/profiles/load/LoadEstimationPluginFactory.java @ 1560

Revision 1560, 774 bytes checked in by wojtekp, 9 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package schedframe.resources.computing.profiles.load;
2
3import example.load.AppBasedProcessorLoadEstimationPlugin;
4import example.load.DefaultLoadEstimationPlugin;
5import schedframe.resources.ResourceType;
6import schedframe.resources.StandardResourceType;
7import schedframe.resources.computing.profiles.load.plugin.LoadEstimationPlugin;
8
9public class LoadEstimationPluginFactory {
10
11       
12        public static LoadEstimationPlugin createLoadEstimationPlugi(ResourceType resType){
13                LoadEstimationPlugin loadEstimationPlugin = null;
14               
15                if(resType.getName().equals(StandardResourceType.Processor.getName()))
16                        loadEstimationPlugin = new AppBasedProcessorLoadEstimationPlugin();
17                else
18                        loadEstimationPlugin = new DefaultLoadEstimationPlugin();
19               
20                return loadEstimationPlugin;
21        }
22}
Note: See TracBrowser for help on using the repository browser.