shared
Class RealAttrValue

java.lang.Object
  |
  +--shared.AttrValue
        |
        +--shared.RealAttrValue

public class RealAttrValue
extends AttrValue

RealAttrValue is a class which stores the values of attributes. The values can only be accessed through AttrInfo functions.


Fields inherited from class shared.AttrValue
boundedReal, internalDisjunction, intVal, linearNominal, nominal, real, realVal, treeStructured, type, unknown, userInternalDisjunction, userLinearNominal, userNominal, userReal, userTreeStructured
 
Constructor Summary
RealAttrValue()
          Constructor.
RealAttrValue(AttrValue src)
          Copy constructor.
RealAttrValue(RealAttrValue src)
          Copy constructor.
 
Method Summary
 boolean equals(AttrValue a)
          Checks if the given AttrValue is equivalent to this RealAttrValue.
 boolean equals(RealAttrValue source)
          Checks if the given RealAttrValue is equivalent to this RealAttrValue.
 void gets(AttrValue src)
          Assigns a AttrValue to this RealAttrValue.
 void gets(NominalAttrValue r)
          Assigns a NominalValue to this RealAttrValue.
 
Methods inherited from class shared.AttrValue
attr_type_to_string, clone, copy, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RealAttrValue

public RealAttrValue()
Constructor. Automatically sets value to 0.

RealAttrValue

public RealAttrValue(AttrValue src)
Copy constructor. Checks for compatibility between the given AttrValue and RealAttrValue.
Parameters:
src - The AttrValue to be copied.

RealAttrValue

public RealAttrValue(RealAttrValue src)
Copy constructor.
Parameters:
src - The RealAttrValue to be copied.
Method Detail

gets

public void gets(NominalAttrValue r)
Assigns a NominalValue to this RealAttrValue. Displays an error message and does nothing else.
Parameters:
r - The NominalAttrInfo to be assigned.

gets

public void gets(AttrValue src)
Assigns a AttrValue to this RealAttrValue. If the given AttrValue is not compatible an error message is displayed and nothing else is done.
Overrides:
gets in class AttrValue
Parameters:
src - the AttrValue to be copied.

equals

public boolean equals(RealAttrValue source)
Checks if the given RealAttrValue is equivalent to this RealAttrValue.
Parameters:
source - The RealAttrValue to be compared to.
Returns:
TRUE if the given RealAttrValue is equivalent to this RealAttrValue, FALSE otherwise.

equals

public boolean equals(AttrValue a)
Checks if the given AttrValue is equivalent to this RealAttrValue.
Overrides:
equals in class AttrValue
Parameters:
a - The AttrValue to be compared to.
Returns:
TRUE if the given AttrValue is equivalent to this RealAttrValue, FALSE otherwise.