Package org.cloudsimplus.testbeds
Class AbstractRunnable
java.lang.Object
org.cloudsimplus.testbeds.AbstractRunnable
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
Experiment
,ExperimentRunner
An abstract class to provide base features for
Experiment
and ExperimentRunner
.- Since:
- CloudSim Plus 6.1.0
- Author:
- Manoel Campos da Silva Filho
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks if simulation results of the experiment don't have to be output.boolean
Checks if simulation results of the experiment have to be output.Prints a message only ifisVerbose()
.Prints a formatted message only ifisVerbose()
.println()
Prints a line break only ifisVerbose()
.Prints a message and a line break only ifisVerbose()
.Prints a formatted message and a line break only ifisVerbose()
.setVerbose
(boolean verbose) Defines if simulation results of the experiment have to be output or not.
-
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
Prints a line break only ifisVerbose()
. -
println
Prints a message and a line break only ifisVerbose()
.- Parameters:
msg
- the message to print
-
println
Prints a formatted message and a line break only ifisVerbose()
.- Parameters:
format
- the message formatargs
- the values to print
-
print
Prints a message only ifisVerbose()
.- Parameters:
msg
- the message to print
-
print
Prints a formatted message only ifisVerbose()
.- Parameters:
format
- the message formatargs
- the values to print
-
isNotVerbose
public boolean isNotVerbose()Checks if simulation results of the experiment don't have to be output.- Returns:
-
setVerbose
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:
-