cloudsim-plus-master/cloudsim-plus-master/cloudsim-plus/src/main/java/org/cloudbus/cloudsim/cloudlets/CloudletAbstract.java
protected void write(final String str) {
        if (Objects.isNull(str)) {
            return;
        }

        if (!recordTransactionHistory) {
            return;
        }

        if (Objects.isNull(history)) {
            // Creates the transaction history of this Cloudlet
            history = new StringBuffer(1000);
            history.append("Time below denotes the simulation time.");
            history.append(this.newline);
            history.append("Time (sec)       Description Cloudlet #").append(id);
            history.append(this.newline);
            history.append("------------------------------------------");
            history.append(this.newline);
            history.append(num.format(getSimulation().clock()));
            history.append("   Creates Cloudlet ID #").append(id);
            history.append(this.newline);
        }

        history.append(num.format(getSimulation().clock()));
        history.append("   ").append(str).append(newline);
    }
/**
     * Writes a particular history transaction of this Cloudlet into a log.
     *
     * @param str a history transaction of this Cloudlet
     * @pre str != null
     * @post $none
     */
Writes a particular history transaction of this Cloudlet into a log.
@param str a history transaction of this Cloudlet
@pre str != null
@post $none
Writes a particular history transaction of this Cloudlet into a log . @param str a history transaction of this Cloudlet @pre str ! = null @post $none
protected void write(final String str) {
        if (Objects.isNull(str)) {
            return;
        }
        if (!recordTransactionHistory) {
            return;
        }
        if (Objects.isNull(history)) {
            history = new StringBuffer(1000);
            history.append("Time below denotes the simulation time.");
            history.append(this.newline);
            history.append("Time (sec)       Description Cloudlet #").append(id);
            history.append(this.newline);
            history.append("------------------------------------------");
            history.append(this.newline);
            history.append(num.format(getSimulation().clock()));
            history.append("   Creates Cloudlet ID #").append(id);
            history.append(this.newline);
        }
        history.append(num.format(getSimulation().clock()));
        history.append("   ").append(str).append(newline);
    }
protected void write ( final String str ) { if ( Objects . isNull ( str ) ) { return ; } if ( ! recordTransactionHistory ) { return ; } if ( Objects . isNull ( history ) ) { history = new StringBuffer ( 1000 ) ; history . append ( "Time below denotes the simulation time." ) ; history . append ( this . newline ) ; history . append ( "Time (sec)       Description Cloudlet #" ) . append ( id ) ; history . append ( this . newline ) ; history . append ( "------------------------------------------" ) ; history . append ( this . newline ) ; history . append ( num . format ( getSimulation ( ) . clock ( ) ) ) ; history . append ( "   Creates Cloudlet ID #" ) . append ( id ) ; history . append ( this . newline ) ; } history . append ( num . format ( getSimulation ( ) . clock ( ) ) ) ; history . append ( "   " ) . append ( str ) . append ( newline ) ; }
Writes a particular history transaction of this Cloudlet into a log.
Writes a particular history transaction of this Cloudlet into a log .
// Creates the transaction history of this Cloudlet