Skip to content

Commit

Permalink
Deprecates the 'warnings' attribute of experiments (never really used)
Browse files Browse the repository at this point in the history
Can be replaced by setting the gama.pref_errors_warnings_errors
preference.
  • Loading branch information
AlexisDrogoul committed Jun 18, 2021
1 parent 2ab03ee commit a712192
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -85,11 +85,12 @@
doc = @doc (
value = "Contains a reference to the current simulation being run by this experiment",
comment = "will be nil if no simulation have been created. In case several simulations are launched, contains a reference to the latest one")),
// @var(name = GAMA._FATAL, type = IType.BOOL),
@variable (
name = GAMA._WARNINGS,
type = IType.BOOL,
doc = @doc ("The value of the preference 'Consider warnings as errors'")),
doc = @doc (
deprecated = "use gama.pref_errors_warnings_errors instead",
value = "The value of the preference 'Consider warnings as errors'")),
@variable (
name = ExperimentAgent.MODEL_PATH,
type = IType.STRING,
Expand Down Expand Up @@ -145,7 +146,7 @@
public class ExperimentAgent extends GamlAgent implements IExperimentAgent {

static {
DEBUG.ON();
DEBUG.OFF();
}

public static final String MODEL_PATH = "model_path";
Expand All @@ -172,7 +173,6 @@ public ExperimentAgent(final IPopulation<? extends IAgent> s, final int index) t
ownScope = new ExperimentAgentScope();
ownClock = new ExperimentClock(ownScope);
executer = new ActionExecuter(ownScope);
DEBUG.OUT("Creation of " + this);
// Should not perform a whole reset as it shuts down UI outputs in comodels (see #2813)
if (s.getSpecies().getDescription().belongsToAMicroModel()) {
initialize();
Expand Down

0 comments on commit a712192

Please sign in to comment.