public class IntervalDesc extends SimpleAttDesc
| Constructor and Description |
|---|
IntervalDesc(Concept owner,
java.lang.String name,
java.lang.Number minValue,
java.lang.Number maxValue)
initializes this with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
IntervalFct |
addIntervalFct(java.lang.String name,
boolean active)
Creates a new SymbolFct for the given description.
|
boolean |
canOverride(AttributeDesc desc)
Checks whether this attribute description
can override the given attribute description
|
boolean |
fits(Attribute att)
Checks whether the given attribute
fits this.
|
boolean |
fitsSingle(Attribute att)
Checks whether a single attribute fits the constraints for this.
|
IntervalAttribute |
getIntervalAttribute(java.lang.Number minValue,
java.lang.Number maxValue)
Returns
IntervalAttribute object representing the specified
interval. |
java.lang.Number |
getMax()
Returns the maximal value which may appear in an interval specified for
this description.
|
java.lang.Number |
getMin()
Returns the minimal value which may appear in an interval specified for
this description.
|
void |
setMax(java.lang.Number maxValue)
Sets the maximal value which may appear in an interval specified for this
description.
|
void |
setMin(java.lang.Number minValue)
Sets the minimal value which may appear in an interval specified for this
description to min.
|
addFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFctdelete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, updatepublic IntervalDesc(Concept owner, java.lang.String name, java.lang.Number minValue, java.lang.Number maxValue) throws java.lang.Exception
owner - the owner of thisname - the name to be used for this description.minValue - number specifying the lower bound for attribute values
for thismaxValue - number specifying the upper bound for attribute values
for thisjava.lang.Exception - if min is not less than or equal to maxpublic final IntervalAttribute getIntervalAttribute(java.lang.Number minValue, java.lang.Number maxValue)
IntervalAttribute object representing the specified
interval.minValue - lower bound of the intervalmaxValue - upper bound of the intervalpublic final java.lang.Number getMin()
public final void setMin(java.lang.Number minValue)
minValue - minimal value appearing in interval for this attributepublic final java.lang.Number getMax()
public final void setMax(java.lang.Number maxValue)
maxValue - maximal value appearing in interval for this attributepublic final IntervalFct addIntervalFct(java.lang.String name, boolean active)
name - the name of the new functionactive - if true, the new function is used in the active
amalgamation of the owner of thispublic final boolean canOverride(AttributeDesc desc)
AttributeDesccanOverride in class SimpleAttDescdesc - the description which should be overridden by thispublic final boolean fits(Attribute att)
AttributeDescAttributeDesc.fitsSingle(Attribute)fits in class AttributeDescatt - the attribute which should be checked for fitting thispublic boolean fitsSingle(Attribute att)
AttributeDescAttributeDesc.fits(Attribute)fitsSingle in class AttributeDescatt - the attribute which should be checked