public abstract class Attribute extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
Attribute.Type
The type of attributes.
|
| Modifier and Type | Field and Description |
|---|---|
String |
description
The detailed description of the attribute.
|
String |
name
The name of attribute.
|
Attribute.Type |
type
The type of attribute.
|
double |
weight
Optional weight of this attribute.
|
| Constructor and Description |
|---|
Attribute(Attribute.Type type,
String name)
Constructor.
|
Attribute(Attribute.Type type,
String name,
double weight)
Constructor.
|
Attribute(Attribute.Type type,
String name,
String description)
Constructor.
|
Attribute(Attribute.Type type,
String name,
String description,
double weight)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
abstract String |
toString(double x)
Returns the string representation of a double value of this attribute.
|
abstract double |
valueOf(String s)
Returns the double value of a string of this attribute.
|
public final Attribute.Type type
public final double weight
public final String name
public final String description
public Attribute(Attribute.Type type, String name)
public Attribute(Attribute.Type type, String name, double weight)
public Attribute(Attribute.Type type, String name, String description)
public Attribute(Attribute.Type type, String name, String description, double weight)
public abstract String toString(double x)
x - a double value of this attribute. NaN means missing value.public abstract double valueOf(String s) throws ParseException
s - a string value of this attribute.ParseExceptionCopyright © 2015. All rights reserved.