Revision 1247,
847 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[477] | 1 | package schedframe.resources.computing; |
---|
| 2 | |
---|
[520] | 3 | import java.util.List; |
---|
| 4 | |
---|
| 5 | import schedframe.resources.StandardResourceType; |
---|
[477] | 6 | import schedframe.resources.computing.description.ComputingResourceDescription; |
---|
| 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())); |
---|
[756] | 13 | //PowerInterface pi = PowerInterfaceFactory.createPowerInterface(this, resDesc.getPowerProfile()); |
---|
| 14 | //accept(new EnergyExtension(pi, resDesc.getPowerProfile())); |
---|
[477] | 15 | } |
---|
[520] | 16 | |
---|
| 17 | @SuppressWarnings("unchecked") |
---|
[1247] | 18 | public List<Node> getNodes(){ |
---|
| 19 | return (List<Node>) getDescendantsByType(StandardResourceType.Node); |
---|
[520] | 20 | } |
---|
[756] | 21 | |
---|
| 22 | /*private void accept(EnergyExtension e){ |
---|
| 23 | extensionList.add(e); |
---|
| 24 | e.setResource(this); |
---|
| 25 | }*/ |
---|
[477] | 26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.