aboutsummaryrefslogtreecommitdiffstats
path: root/src/jcgp/backend/resources/parameters/IntegerParameter.java
blob: 7cf68bdf44f72e01a536ade16b743c14baeb1662 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package jcgp.backend.resources.parameters;

import javafx.beans.property.SimpleIntegerProperty;

public abstract class IntegerParameter extends Parameter<Number> {
	
	public IntegerParameter(int value, String name, boolean monitor, boolean critical) {
		super(name, monitor, critical);
		this.valueProperty = new SimpleIntegerProperty(value);
	}
	
	public IntegerParameter(int value, String name) {
		super(name, false, false);
		this.valueProperty = new SimpleIntegerProperty(value);
	}

	@Override
	public Integer get() {
		return super.get().intValue();
	}
}