Class AbstractRunnable

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

public abstract class AbstractRunnable extends Object implements Runnable
An abstract class 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

    • AbstractRunnable

      public AbstractRunnable()
  • Method Details

    • isVerbose

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

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

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

      public AbstractRunnable 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 AbstractRunnable print(String msg)
      Prints a message only if isVerbose().
      Parameters:
      msg - the message to print
    • print

      public AbstractRunnable 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()
      Checks if simulation results of the experiment don't have to be output.
      Returns:
    • setVerbose

      public AbstractRunnable 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: