public class ConcreteFeature
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
BOOLEAN |
static int |
INTEGER |
static int |
REAL |
static int |
STRING |
| Constructor and Description |
|---|
ConcreteFeature(java.lang.String name)
Constructor for strings.
|
ConcreteFeature(java.lang.String name,
boolean isBoolean)
Constructor for strings and booleans.
|
ConcreteFeature(java.lang.String name,
java.lang.Double k1,
java.lang.Double k2)
Constructor for reals.
|
ConcreteFeature(java.lang.String name,
java.lang.Integer k1,
java.lang.Integer k2)
Constructor for integers.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getK1()
Gets the lower bound for the range.
|
java.lang.Object |
getK2()
Gets the upper bound for the range.
|
java.lang.String |
getName()
Gets the name.
|
int |
getType()
Gets the type of the feature.
|
void |
setRange(java.lang.Object k1,
java.lang.Object k2)
Sets the range of the feature.
|
void |
setType(int newType)
Sets the type of the feature.
|
public static final int STRING
public static final int INTEGER
public static final int REAL
public static final int BOOLEAN
public ConcreteFeature(java.lang.String name)
name - Name of the feature.public ConcreteFeature(java.lang.String name,
boolean isBoolean)
name - Name of the feature.isBoolean - true if the range is boolean; false if the range is string.public ConcreteFeature(java.lang.String name,
java.lang.Integer k1,
java.lang.Integer k2)
name - Name of the feature.k1 - Lower bound for the range.k2 - Upper bound for the range.public ConcreteFeature(java.lang.String name,
java.lang.Double k1,
java.lang.Double k2)
name - Name of the feature.k1 - Lower bound for the range.k2 - Upper bound for the range.public int getType()
public void setType(int newType)
newType - Type of the feature.public java.lang.Object getK1()
public java.lang.Object getK2()
public void setRange(java.lang.Object k1,
java.lang.Object k2)
k1 - Lower bound for the range.k2 - Upper bound for the range.public java.lang.String getName()