public boolean isFinished(){
  if (index == -1) {
    return false;
  }
  boolean completed=false;
  final long finish=resList.get(index).finishedSoFar;
  final long result=cloudletLength - finish;
  if (result <= 0.0) {
    completed=true;
  }
  return completed;
}

public boolean isFinished ( ) { if ( index == - 1 ) { return false ; } boolean completed = false ; final long finish = resList . get ( index ) . finishedSoFar ; final long result = cloudletLength - finish ; if ( result <= 0.0 ) { completed = true ; } return completed ; }
checks whether this cloudlet has finished execution or not .
