Revision 495,
859 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package schedframe.resources.computing; |
---|
2 | |
---|
3 | import schedframe.resources.computing.description.ComputingResourceDescription; |
---|
4 | import schedframe.resources.computing.profiles.energy.EnergyExtension; |
---|
5 | import schedframe.resources.computing.profiles.energy.power.PowerInterfaceFactory; |
---|
6 | import schedframe.resources.computing.profiles.energy.power.ui.PowerInterface; |
---|
7 | |
---|
8 | public class DataCenter extends ComputingResource{ |
---|
9 | |
---|
10 | public DataCenter(ComputingResourceDescription resDesc) { |
---|
11 | super(resDesc); |
---|
12 | //extensionList.add(new EnergyExtension(this, resDesc.getPowerInterface(), resDesc.getEnergyEstimationPlugin())); |
---|
13 | PowerInterface pi = PowerInterfaceFactory.createPowerInterface(this, resDesc.getPowerProfile()); |
---|
14 | accept(new EnergyExtension(pi, resDesc.getPowerProfile())); |
---|
15 | } |
---|
16 | |
---|
17 | public void accept(EnergyExtension e){ |
---|
18 | extensionList.add(e); |
---|
19 | e.setResource(this); |
---|
20 | } |
---|
21 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.