public class FloatDesc extends SimpleAttDesc
| Constructor and Description |
|---|
FloatDesc(Concept owner,
java.lang.String name,
float min,
float max)
Initializes this with the given name.
|
| Modifier and Type | Method and Description |
|---|---|
AdvancedFloatFct |
addAdvancedFloatFct(java.lang.String name,
boolean active)
Creates a new AdvancedNumberFct for the given description.
|
FloatFct |
addFloatFct(java.lang.String name,
boolean active)
Creates a new NumberFct 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.
|
float |
getMax()
Gets the maximal Number that can be used as value for this description
|
float |
getMin()
Gets the minimal Number that can be used as value for this description
|
SimpleAttribute |
getNumberAttribute(float value)
Returns
NumberAttribute object representing the specified
value. |
FloatRange |
getRange()
Gets the range maintaining the number attributes of this description
|
void |
setMax(float max)
Sets the max value which may appear as Number specified for this
description to max.
|
void |
setMin(float min)
Sets the minimal value which may appear as Number specified for this
description to min.
|
addFct, deleteAllFcts, deleteSimFct, getFct, getSimFcts, renameFctdelete, getAttribute, getExpType, getName, getOwner, isMultiple, setMultiple, setName, setOwner, toString, updatepublic FloatDesc(Concept owner, java.lang.String name, float min, float max) throws java.lang.Exception
java.lang.Exceptionpublic SimpleAttribute getNumberAttribute(float value)
NumberAttribute object representing the specified
value.value - the Number representing the value that should be returnedpublic void setMin(float min)
min - minimal value appearing as Number for this descriptionpublic float getMin()
public void setMax(float max)
max - max value appearing as Number for this descriptionpublic float getMax()
public FloatRange getRange()
public FloatFct addFloatFct(java.lang.String name, boolean active)
name - the description for which a new function should be createdpublic AdvancedFloatFct addAdvancedFloatFct(java.lang.String name, boolean active)
name - the description for which a new function should be createdpublic boolean canOverride(AttributeDesc desc)
AttributeDesccanOverride in class SimpleAttDescpublic boolean fits(Attribute att)
AttributeDescAttributeDesc.fitsSingle(Attribute)fits in class AttributeDescatt - public boolean fitsSingle(Attribute att)
AttributeDescAttributeDesc.fits(Attribute)fitsSingle in class AttributeDescatt - the attribute which should be checked