Rev | Line | |
---|
[883] | 1 | package schedframe.scheduling.tasks.phases; |
---|
| 2 | |
---|
| 3 | import org.qcg.broker.schemas.resreqs.PhaseBehaviourType; |
---|
| 4 | |
---|
[1415] | 5 | public class PhaseSystemLoad { |
---|
[883] | 6 | |
---|
| 7 | protected String resName; |
---|
| 8 | protected double utilization; |
---|
| 9 | |
---|
[1415] | 10 | PhaseSystemLoad(String resName, double utilization) { |
---|
[883] | 11 | this.resName = resName; |
---|
| 12 | this.utilization = utilization; |
---|
| 13 | } |
---|
| 14 | |
---|
[1415] | 15 | PhaseSystemLoad(String resName) { |
---|
[883] | 16 | this.resName = resName; |
---|
| 17 | this.utilization = 100; |
---|
| 18 | } |
---|
| 19 | |
---|
[1415] | 20 | PhaseSystemLoad(PhaseBehaviourType pbt) { |
---|
[883] | 21 | this.resName = pbt.getName(); |
---|
| 22 | this.utilization = pbt.getParameterTypeChoice().getParameterTypeChoiceItem(0).getParameterValue().getContent(); |
---|
| 23 | } |
---|
| 24 | |
---|
| 25 | public String getResouceName() { |
---|
| 26 | return resName; |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | public double getUtilization() { |
---|
| 30 | return utilization; |
---|
| 31 | } |
---|
| 32 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.