aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/backend/resources/parameters/Parameter.java
blob: 7e12ff8fde23fac22a4dd01ee51dc9bd1ee3f37a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
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();
		
}