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/dcworms/schedframe/scheduling/Executable.java

    r1415 r1423  
    5151         
    5252        protected int estimatedDuration; 
    53         protected String schedName; 
     53        protected String schedulerName; 
    5454 
    5555        protected double submissionTime; 
     
    157157        } 
    158158         
    159         public boolean isFinished() 
    160     { 
     159        public boolean isFinished(){ 
    161160                return task.isFinished(); 
    162161    } 
     
    264263 
    265264    public void setSchedulerName(int resourceId){ 
    266         this.schedName = GridSim.getEntityName(resourceId); 
     265        this.schedulerName = GridSim.getEntityName(resourceId); 
    267266    } 
    268267     
    269268    public void setSchedulerName(String resourceId){ 
    270         this.schedName = resourceId; 
     269        this.schedulerName = resourceId; 
    271270    } 
    272271 
    273272    public String getSchedulerName(){ 
    274         return schedName; 
     273        return schedulerName; 
    275274    } 
    276275         
     
    375374         
    376375        private void preparePhases(String resourceType) { 
    377                 LinkedList<ExecutionPhase> resourceConsumptionList = new LinkedList<ExecutionPhase>(); 
     376                LinkedList<ExecutionPhase> execPhases = new LinkedList<ExecutionPhase>(); 
    378377                 
    379378                long usefulWork = -1; 
     
    388387                                e.printStackTrace(); 
    389388                        } 
    390                         resourceConsumptionList.add(resConsumption); 
     389                        execPhases.add(resConsumption); 
    391390                } else { 
    392391                        boolean found = false; 
     
    396395                                                for(ResourceConsumptionType resConsumption: resConsumptioProfile.getResourceConsumption()){ 
    397396                                                        ExecutionPhase resourceConsumption = new ExecutionPhase(resConsumption); 
    398                                                         resourceConsumptionList.add(resourceConsumption); 
     397                                                        execPhases.add(resourceConsumption); 
    399398                                                } 
    400399                                                for(StringParameterType prop: resConsumptioProfile.getProperties()){ 
     
    412411                                for(ResourceConsumptionType resConsumption: task.getDescription().getExecution().getResourceConsumptionProfile()[0].getResourceConsumption()){ 
    413412                                        ExecutionPhase resourceConsumption = new ExecutionPhase(resConsumption); 
    414                                         resourceConsumptionList.add(resourceConsumption); 
     413                                        execPhases.add(resourceConsumption); 
    415414                                } 
    416415                                 
     
    425424                 
    426425                usefulWork = (usefulWork != -1) ? usefulWork : this.getLength(); 
    427                 this.execProfile = new ExecutionProfile(resourceConsumptionList); 
     426                this.execProfile = new ExecutionProfile(execPhases); 
    428427                this.execProfile.setUsefulWork(usefulWork); 
    429428 
Note: See TracChangeset for help on using the changeset viewer.