shared
Class NominalAttrValue
java.lang.Object
|
+--shared.AttrValue
|
+--shared.NominalAttrValue
- public class NominalAttrValue
- extends AttrValue
NominalAttrValue is a class which stores the vlaues of nominal 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 |
|
Method Summary |
java.lang.Object |
clone()
Creates a deep copy clone of this object. |
boolean |
equals(AttrValue a)
Checks if this NominalAttrValue is equivalent to the given AttrValue. |
boolean |
equals(NominalAttrValue source)
Checks if this NominalAttrValue is equivalent to the given NominalAttrValue. |
void |
gets(AttrValue src)
Assigns a AttrValue to this NominalAttrValue. |
void |
gets(RealAttrValue r)
Assigns a RealAttrValue to this NominalAttrValue. |
| Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
NominalAttrValue
public NominalAttrValue()
- Constructor. The value will be set to unknown.
NominalAttrValue
public NominalAttrValue(AttrValue src)
- Copy constructor. The AttrValue passed in is checked for compatibility with this
NominalAttrValue.
- Parameters:
src - The AttrValue to be copied.
NominalAttrValue
public NominalAttrValue(NominalAttrValue src)
- Copy constructor.
- Parameters:
src - The NominalAttrValue to be copied.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Creates a deep copy clone of this object.
- Overrides:
- clone in class AttrValue
- Returns:
- A deep copy of this NominalAttrValue.
- Throws:
- java.lang.CloneNotSupportedException - if the AttrValue cloning process encounters an Exception.
gets
public void gets(RealAttrValue r)
- Assigns a RealAttrValue to this NominalAttrValue. Displays an error message and
does nothing.
- Parameters:
r - The RealAttrValue to be assigned to this NominalAttrValue.
gets
public void gets(AttrValue src)
- Assigns a AttrValue to this NominalAttrValue. If the AttrValue is not compatible
with this NominalAttrValue then an error message is displayed and nothing else
is done.
- Overrides:
- gets in class AttrValue
- Parameters:
src - The AttrValue to be assigned to this NominalAttrValue.
equals
public boolean equals(NominalAttrValue source)
- Checks if this NominalAttrValue is equivalent to the given NominalAttrValue.
- Parameters:
source - The NominalAttrValue this NominalAttrValue is compared to.- Returns:
- TRUE if the values are the same, FALSE otherwise.
equals
public boolean equals(AttrValue a)
- Checks if this NominalAttrValue is equivalent to the given AttrValue.
- Overrides:
- equals in class AttrValue
- Parameters:
a - The AttrValue this NominalAttrValue is compared to.- Returns:
- TRUE if the values are the same, FALSE otherwise.