Revision 104,
758 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Line | |
---|
1 | package test.rewolucja.resources.physical.implementation; |
---|
2 | |
---|
3 | import test.rewolucja.energy.extension.EnergyExtension; |
---|
4 | import test.rewolucja.energy.profile.PowerInterface; |
---|
5 | import test.rewolucja.resources.description.ExecResourceDescription; |
---|
6 | import test.rewolucja.resources.physical.base.ComputingResource; |
---|
7 | |
---|
8 | public class DataCenter extends ComputingResource{ |
---|
9 | |
---|
10 | public DataCenter(ExecResourceDescription resDesc) { |
---|
11 | super(resDesc); |
---|
12 | accept(resDesc.getPowerProfile()); |
---|
13 | //extensionList.add(new EnergyExtension(this, "example.energy.DataCenterEnergyEstimationPlugin")); |
---|
14 | } |
---|
15 | |
---|
16 | public void accept(PowerInterface powIntVis){ |
---|
17 | extensionList.add(new EnergyExtension(this, powIntVis, "example.energy.DataCenterEnergyEstimationPlugin")); |
---|
18 | powIntVis.visit(this); |
---|
19 | } |
---|
20 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.