Revision 1415,
781 bytes
checked in by wojtekp, 11 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[1274] | 1 | package schedframe.resources.devices; |
---|
| 2 | |
---|
| 3 | import java.util.ArrayList; |
---|
| 4 | import java.util.List; |
---|
| 5 | |
---|
[1415] | 6 | import schedframe.resources.computing.ComputingResource; |
---|
[1274] | 7 | import schedframe.resources.devices.description.DeviceDescription; |
---|
| 8 | |
---|
| 9 | public class Fan extends Device{ |
---|
| 10 | |
---|
| 11 | protected List<String> chilledResources; |
---|
| 12 | |
---|
| 13 | public Fan(DeviceDescription devDesc) { |
---|
| 14 | super(devDesc); |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | public List<String> getChilledResources(){ |
---|
[1415] | 18 | if(chilledResources == null){ |
---|
| 19 | List<String> resNames = new ArrayList<String>(); |
---|
| 20 | for(ComputingResource compRes: this.getComputingResource().getChildren()){ |
---|
| 21 | resNames.add(compRes.getFullName()); |
---|
| 22 | } |
---|
| 23 | return resNames; |
---|
| 24 | } |
---|
[1274] | 25 | return chilledResources; |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | public void setChilledResources(List<String> chilledResources) { |
---|
| 29 | this.chilledResources = chilledResources; |
---|
| 30 | } |
---|
| 31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.