private static void printCloudletList(List<ContainerCloudlet> list){
  int size=list.size();
  Cloudlet cloudlet;
  String indent="    ";
  Log.printLine();
  Log.printLine("========== OUTPUT ==========");
  Log.printLine("Cloudlet ID" + indent + "STATUS"+ indent+ "Data center ID"+ indent+ "VM ID"+ indent+ "Time"+ indent+ "Start Time"+ indent+ "Finish Time");
  DecimalFormat dft=new DecimalFormat("###.##");
  for (int i=0; i < size; i++) {
    cloudlet=list.get(i);
    Log.print(indent + cloudlet.getCloudletId() + indent+ indent);
    if (cloudlet.getCloudletStatusString() == "Success") {
      Log.print("SUCCESS");
      Log.printLine(indent + indent + cloudlet.getResourceId()+ indent+ indent+ indent+ cloudlet.getVmId()+ indent+ indent+ dft.format(cloudlet.getActualCPUTime())+ indent+ indent+ dft.format(cloudlet.getExecStartTime())+ indent+ indent+ dft.format(cloudlet.getFinishTime()));
    }
  }
}

private static void printCloudletList ( List < ContainerCloudlet > list ) { int size = list . size ( ) ; Cloudlet cloudlet ; String indent = "    " ; Log . printLine ( ) ; Log . printLine ( "========== OUTPUT ==========" ) ; Log . printLine ( "Cloudlet ID" + indent + "STATUS" + indent + "Data center ID" + indent + "VM ID" + indent + "Time" + indent + "Start Time" + indent + "Finish Time" ) ; DecimalFormat dft = new DecimalFormat ( "###.##" ) ; for ( int i = 0 ; i < size ; i ++ ) { cloudlet = list . get ( i ) ; Log . print ( indent + cloudlet . getCloudletId ( ) + indent + indent ) ; if ( cloudlet . getCloudletStatusString ( ) == "Success" ) { Log . print ( "SUCCESS" ) ; Log . printLine ( indent + indent + cloudlet . getResourceId ( ) + indent + indent + indent + cloudlet . getVmId ( ) + indent + indent + dft . format ( cloudlet . getActualCPUTime ( ) ) + indent + indent + dft . format ( cloudlet . getExecStartTime ( ) ) + indent + indent + dft . format ( cloudlet . getFinishTime ( ) ) ) ; } } }
prints the cloudlet objects .
