Revision 1560,
774 bytes
checked in by wojtekp, 9 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.resources.computing.profiles.load; |
---|
2 | |
---|
3 | import example.load.AppBasedProcessorLoadEstimationPlugin; |
---|
4 | import example.load.DefaultLoadEstimationPlugin; |
---|
5 | import schedframe.resources.ResourceType; |
---|
6 | import schedframe.resources.StandardResourceType; |
---|
7 | import schedframe.resources.computing.profiles.load.plugin.LoadEstimationPlugin; |
---|
8 | |
---|
9 | public 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.