package jcgp.backend.resources.parameters; import javafx.beans.property.Property; public abstract class Parameter { protected boolean monitor, critical, reset = false; protected ParameterStatus status = ParameterStatus.VALID; protected String name; public Parameter(String name, boolean monitor, boolean critical) { this.name = name; this.monitor = monitor; this.critical = critical; } public boolean isMonitor() { return monitor; } public boolean isCritical() { return critical; } public boolean requiresReset() { return critical || reset; } public String getName() { return name; } public ParameterStatus getStatus() { return status; } public abstract Property valueProperty(); }