public interface IntervalAnswer extends Answer
This interface represents a type of answer that can be given to a prompt. Here, the type of answer is a set of values defined by an interval of two (low and high) values.
The low and high bounds of the interval are represented using the TypedValue object. They can be either flat or hierarchical.
To instantiate an answer to a prompt that accepts a set of values between two values, you can use:
The following features are supported:
| Modifier and Type | Method and Description |
|---|---|
TypedValue |
getHighValue()
Returns the value of the 'High Value' reference.
|
TypedValue |
getLowValue()
Returns the value of the 'Low Value' reference.
|
void |
setHighValue(TypedValue value)
Sets the value of the '
High Value' reference. |
void |
setLowValue(TypedValue value)
Sets the value of the '
Low Value' reference. |
TypedValue getLowValue()
This is the low value that bounds the interval.
setLowValue(TypedValue)void setLowValue(TypedValue value)
Low Value' reference.
This is the low value that bounds the interval.
value - the new value of the 'Low Value' reference.getLowValue()TypedValue getHighValue()
This is the high value that bounds the interval.
setHighValue(TypedValue)void setHighValue(TypedValue value)
High Value' reference.
This is the high value that bounds the interval.
value - the new value of the 'High Value' reference.getHighValue()