Package org.cloudsimplus.testbeds
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 Summary
Fields Modifier and Type Field Description protected boolean
verbose
-
Constructor Summary
Constructors Constructor Description AbstractExperiment()
-
Method Summary
Modifier and Type Method Description boolean
isNotVerbose()
Indicates if simulation results of the experiment don't have to be output.boolean
isVerbose()
Indicates if simulation results of the experiment have to be output.AbstractExperiment
print(String msg)
Prints a message only ifisVerbose()
.AbstractExperiment
print(String format, Object... args)
Prints a formatted message only ifisVerbose()
.AbstractExperiment
println()
Prints a line break only ifisVerbose()
.AbstractExperiment
println(String msg)
Prints a message and a line break only ifisVerbose()
.AbstractExperiment
println(String format, Object... args)
Prints a formatted message and a line break only ifisVerbose()
.AbstractExperiment
setVerbose(boolean verbose)
Defines if simulation results of the experiment have to be output or not.
-
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
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()Indicates 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:
-