protected void write(final String str){
  if (!record) {
    return;
  }
  if (num == null || history == null) {
    newline=System.getProperty("line.separator");
    num=new DecimalFormat("#0.00#");
    history=new StringBuffer(1000);
    history.append("Time below denotes the simulation time.");
    history.append(System.getProperty("line.separator"));
    history.append("Time (sec)       Description Cloudlet #" + cloudletId);
    history.append(System.getProperty("line.separator"));
    history.append("------------------------------------------");
    history.append(System.getProperty("line.separator"));
    history.append(num.format(CloudSim.clock()));
    history.append("   Creates Cloudlet ID #" + cloudletId);
    history.append(System.getProperty("line.separator"));
  }
  history.append(num.format(CloudSim.clock()));
  history.append("   " + str + newline);
}

protected void write ( final String str ) { if ( ! record ) { return ; } if ( num == null || history == null ) { newline = System . getProperty ( "line.separator" ) ; num = new DecimalFormat ( "#0.00#" ) ; history = new StringBuffer ( 1000 ) ; history . append ( "Time below denotes the simulation time." ) ; history . append ( System . getProperty ( "line.separator" ) ) ; history . append ( "Time (sec)       Description Cloudlet #" + cloudletId ) ; history . append ( System . getProperty ( "line.separator" ) ) ; history . append ( "------------------------------------------" ) ; history . append ( System . getProperty ( "line.separator" ) ) ; history . append ( num . format ( CloudSim . clock ( ) ) ) ; history . append ( "   Creates Cloudlet ID #" + cloudletId ) ; history . append ( System . getProperty ( "line.separator" ) ) ; } history . append ( num . format ( CloudSim . clock ( ) ) ) ; history . append ( "   " + str + newline ) ; }
writes this particular history transaction of this cloudlet into a log .
