Class NumericAttribute
- java.lang.Object
-
- Attribute
-
- NumericAttribute
-
public class NumericAttribute extends Attribute
Stores information for a numeric attribute. A numeric attribute has a name. Its domain is the real numbers.
-
-
Constructor Summary
Constructors Constructor Description NumericAttribute()
Default constructor.NumericAttribute(java.lang.String name)
Explicit constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] args)
int
size()
Returns a string representation of this NumericAttribute.java.lang.String
toString()
Returns a string representation of this NumericAttribute.boolean
validValue(java.lang.Double value)
Returns whether the specified value is valid for a numeric attribute.
-
-
-
Method Detail
-
size
public int size()
Returns a string representation of this NumericAttribute.
-
toString
public java.lang.String toString()
Returns a string representation of this NumericAttribute.
-
validValue
public boolean validValue(java.lang.Double value)
Returns whether the specified value is valid for a numeric attribute.- Parameters:
value
- the value for testing- Returns:
- true if the value is valid; false otherwise
-
main
public static void main(java.lang.String[] args)
-
-