Ignore:
Timestamp:
07/30/14 12:25:00 (11 years ago)
Author:
wojtekp
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • DCWoRMS/branches/coolemall/src/schedframe/scheduling/tasks/phases/ExecutionProfile.java

    r1415 r1423  
    55public class ExecutionProfile { 
    66         
    7         protected LinkedList<ExecutionPhase> resourceConsumptionList; 
     7        protected LinkedList<ExecutionPhase> executionPhases; 
    88        protected long usefulWork; 
    99        protected double completionPercentage; 
     
    1111         
    1212 
    13         public ExecutionProfile(LinkedList<ExecutionPhase> resourceConsumptionList) { 
    14                 this.resourceConsumptionList = resourceConsumptionList; 
     13        public ExecutionProfile(LinkedList<ExecutionPhase> execPhases) { 
     14                this.executionPhases = execPhases; 
    1515                this.completionPercentage = 0; 
    1616                this.currentPhase = 0; 
    1717        } 
    1818         
    19         public LinkedList<ExecutionPhase> getResourceConsumptionList(){ 
    20                 return resourceConsumptionList; 
     19        public LinkedList<ExecutionPhase> getExecutionPhases(){ 
     20                return executionPhases; 
    2121        } 
    2222         
    23         public ExecutionPhase getCurrentResourceConsumption(){ 
    24                 return resourceConsumptionList.get(currentPhase); 
     23        public ExecutionPhase getCurrentExecutionPhase(){ 
     24                return executionPhases.get(currentPhase); 
    2525        } 
    2626 
     
    4242         
    4343        public boolean isLast(){ 
    44                 if(currentPhase == resourceConsumptionList.size() - 1){ 
     44                if(currentPhase == executionPhases.size() - 1){ 
    4545                        return true; 
    4646                } 
     
    5858        public long getLength() { 
    5959                long length = 0; 
    60                 for(ExecutionPhase execPhase: resourceConsumptionList){ 
     60                for(ExecutionPhase execPhase: executionPhases){ 
    6161                        length = length + execPhase.getLenght(); 
    6262                } 
Note: See TracChangeset for help on using the changeset viewer.