Revision 104,
656 bytes
checked in by wojtekp, 13 years ago
(diff) |
|
-
Property svn:mime-type set to
text/plain
|
Rev | Line | |
---|
[104] | 1 | package schedframe.resources; |
---|
| 2 | |
---|
| 3 | import java.util.List; |
---|
| 4 | |
---|
| 5 | import schedframe.resources.units.Processor; |
---|
| 6 | |
---|
| 7 | public class ComputingNode { |
---|
| 8 | |
---|
| 9 | protected String id; |
---|
| 10 | protected List<Processor> processors; |
---|
| 11 | |
---|
| 12 | protected PowerInterface powerProfile; |
---|
| 13 | |
---|
| 14 | public ComputingNode(String id){ |
---|
| 15 | this.id = id; |
---|
| 16 | } |
---|
| 17 | |
---|
| 18 | public void setProcessors(List<Processor> list){ |
---|
| 19 | this.processors = list; |
---|
| 20 | } |
---|
| 21 | |
---|
| 22 | public List<Processor> getProcessors(){ |
---|
| 23 | return this.processors; |
---|
| 24 | } |
---|
| 25 | |
---|
| 26 | public PowerInterface getPowerProfile(){ |
---|
| 27 | return this.powerProfile; |
---|
| 28 | } |
---|
| 29 | |
---|
| 30 | public String getId(){ |
---|
| 31 | return this.id; |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | |
---|
| 35 | public void accept(PowerInterface v){ |
---|
| 36 | v.visit(this); |
---|
| 37 | this.powerProfile = v; |
---|
| 38 | } |
---|
| 39 | |
---|
| 40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.