Class AbstractExperiment

java.lang.Object
org.cloudsimplus.testbeds.AbstractExperiment
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
Experiment, ExperimentRunner

public abstract class AbstractExperiment
extends Object
implements Runnable
A base class to to provide base features for Experiment and ExperimentRunner.
Since:
CloudSim Plus 6.1.0
Author:
Manoel Campos da Silva Filho
  • Field Details

    • verbose

      protected boolean verbose
  • Constructor Details

    • AbstractExperiment

      public AbstractExperiment()
  • Method Details

    • isVerbose

      public boolean isVerbose()
      Indicates if simulation results of the experiment have to be output.
      Returns:
    • println

      public AbstractExperiment println()
      Prints a line break only if isVerbose().
    • println

      public AbstractExperiment println​(String msg)
      Prints a message and a line break only if isVerbose().
      Parameters:
      msg - the message to print
    • println

      public AbstractExperiment println​(String format, Object... args)
      Prints a formatted message and a line break only if isVerbose().
      Parameters:
      format - the message format
      args - the values to print
    • print

      public AbstractExperiment print​(String msg)
      Prints a message only if isVerbose().
      Parameters:
      msg - the message to print
    • print

      public AbstractExperiment print​(String format, Object... args)
      Prints a formatted message only if isVerbose().
      Parameters:
      format - the message format
      args - the values to print
    • isNotVerbose

      public boolean isNotVerbose()
      Indicates if simulation results of the experiment don't have to be output.
      Returns:
    • setVerbose

      public AbstractExperiment setVerbose​(boolean verbose)
      Defines if simulation results of the experiment have to be output or not.
      Parameters:
      verbose - true if the results have to be output, false otherwise
      Returns: