|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--shared.AttrInfo
|
+--shared.RealAttrInfo
The RealAttrInfo class allows AttrValue of type Real. The standard definitions of the comparison operators is implemented.
| Fields inherited from class shared.AttrInfo |
attrName,
attrType,
boundedReal,
internalDisjunction,
linearNominal,
nominal,
real,
treeStructured,
unknown,
UNKNOWN_VAL_STR,
userInternalDisjunction,
userLinearNominal,
userNominal,
userReal,
userTreeStructured |
| Constructor Summary | |
RealAttrInfo(java.lang.String s)
Constructor. |
|
| Method Summary | |
java.lang.String |
attrValue_to_string(AttrValue val)
Returns a String value of the value in the specified AttrInfo. |
boolean |
can_cast_to_real()
Checks if this AttrInfo subclass can be cast as a RealAttrInfo class. |
RealAttrInfo |
cast_to_real()
Casts this AttrInfo subclass to a RealAttrInfo class. |
void |
check_in_range(AttrValue val)
At the moment this does nothing. |
void |
display_attr_values(java.io.Writer stream)
Displays the attribute values in names file format. |
void |
display_attr_values(java.io.Writer stream,
boolean protectchars)
Displays the attribute values in names file format. |
boolean |
equal_value(AttrValue realValue1,
AttrValue realValue2)
Returns TRUE if given AttrValue are equivalent, FALSE otherwise. |
double |
get_real_val(AttrValue av)
Returns the real value of this AttrValue. |
boolean |
is_unknown(AttrValue realValue)
Checks if the specified AttrValue is unknown. |
double |
normalized_value(AttrValue val)
Normalize the specified AttrValue according to the min and max values for this AttrValue. |
AttrValue |
read_attr_value(java.io.BufferedReader stream,
boolean isTest,
FileSchema f)
Reads the value for the attribute from the BufferedReader specified. |
AttrValue |
read_attr_value(java.io.StreamTokenizer stream,
boolean isTest,
FileSchema f)
Reads the value for the attribute from the StreamTokenizer specified. |
void |
set_real_val(AttrValue av,
double val)
Sets the specified AttrValue to the specified value. |
void |
set_unknown(AttrValue val)
Sets the given AttrValue to be unknown. |
| Methods inherited from class shared.AttrInfo |
attr_type_to_string,
can_cast_to_nominal,
cast_to_nominal,
clone,
display_attr_values,
equal_shallow,
get_ignore,
get_nominal_val,
is_linear,
name,
protect_chars,
set_ignore,
set_nominal_string,
set_nominal_val,
type |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public RealAttrInfo(java.lang.String s)
s - The name for this attribute.| Method Detail |
public boolean can_cast_to_real()
public RealAttrInfo cast_to_real()
public AttrValue read_attr_value(java.io.BufferedReader stream,
boolean isTest,
FileSchema f)
stream - The specified BufferedReader to be read from.isTest - TRUE if this value is for a test Instance, FALSE otherwise.f - The FileSchema for the file being read.
public AttrValue read_attr_value(java.io.StreamTokenizer stream,
boolean isTest,
FileSchema f)
stream - The specified StreamTokenizer to be read from.isTest - TRUE if this value is for a test Instance, FALSE otherwise.f - The FileSchema for the file being read.public boolean is_unknown(AttrValue realValue)
realValue - The specified AttrValue.public double get_real_val(AttrValue av)
av - realValue The specified av.
public void set_real_val(AttrValue av,
double val)
av - The specified AttrValue.val - The specified new value.public double normalized_value(AttrValue val)
val - The AttrValue to be normalized.public java.lang.String attrValue_to_string(AttrValue val)
val - The specified AttrInfo.
public boolean equal_value(AttrValue realValue1,
AttrValue realValue2)
realValue1 - The first AttrValue to be compared.realValue2 - The second AttrValue to be compared.public void check_in_range(AttrValue val)
val - The specified AttrValue.public void set_unknown(AttrValue val)
val - The AttrValue to be changed.public void display_attr_values(java.io.Writer stream)
stream - Writer to which the display will be written.
public void display_attr_values(java.io.Writer stream,
boolean protectchars)
stream - Writer to which the display will be written.protectchars - True if "\" and "." are to be protected by "\"
characters, false otherwise.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||