Changeset 1415 for DCWoRMS/branches/coolemall/src/schedframe/scheduling/tasks/phases/ExecutionProfile.java
- Timestamp:
- 07/15/14 16:26:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
DCWoRMS/branches/coolemall/src/schedframe/scheduling/tasks/phases/ExecutionProfile.java
r1362 r1415 5 5 public class ExecutionProfile { 6 6 7 protected LinkedList< ResourceConsumption> resourceConsumptionList;7 protected LinkedList<ExecutionPhase> resourceConsumptionList; 8 8 protected long usefulWork; 9 protected double completionPercentage; 9 10 private int currentPhase; 11 10 12 11 public ExecutionProfile(LinkedList< ResourceConsumption> resourceConsumptionList) {13 public ExecutionProfile(LinkedList<ExecutionPhase> resourceConsumptionList) { 12 14 this.resourceConsumptionList = resourceConsumptionList; 15 this.completionPercentage = 0; 13 16 this.currentPhase = 0; 14 17 } 15 18 16 public LinkedList< ResourceConsumption> getResourceConsumptionList(){19 public LinkedList<ExecutionPhase> getResourceConsumptionList(){ 17 20 return resourceConsumptionList; 18 21 } 19 22 20 public ResourceConsumptiongetCurrentResourceConsumption(){23 public ExecutionPhase getCurrentResourceConsumption(){ 21 24 return resourceConsumptionList.get(currentPhase); 22 25 } … … 44 47 return false; 45 48 } 49 50 public double getCompletionPercentage() { 51 return completionPercentage; 52 } 53 54 public void setCompletionPercentage(double completionPercentage) { 55 this.completionPercentage = completionPercentage; 56 } 57 58 public long getLength() { 59 long length = 0; 60 for(ExecutionPhase execPhase: resourceConsumptionList){ 61 length = length + execPhase.getLenght(); 62 } 63 return length; 64 } 46 65 }
Note: See TracChangeset
for help on using the changeset viewer.