|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.data.AbleLhs
This class defines the base class from which all data objects that can appear on the lefthand side of a clause must inherit. This base data object implements both the "readable" and "writable" interfaces.
Constructor Summary | |
AbleLhs()
|
Method Summary | |
void |
asgnEq(AbleRd theRhs)
Assignment (boolean): assign the current value of theRhs to this data object. |
void |
asgnIs(AbleRd theRhs)
Assignment (fuzzy): assign the current value of theRhs to this data object. |
void |
asgnIs(AbleRd theRhs,
double theTruthValue)
Assignment (fuzzy): assign the current value of theRhs to this data object, correlated with the specified truth value. |
boolean |
cmpEq(AbleRd theRhs)
Comparison, equal to: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpGt(AbleRd theRhs)
Comparison, greater than: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpGtEq(AbleRd theRhs)
Comparison, greater than or equal to: compare the current value of this data object to the current value of theRhs. |
double |
cmpIs(AbleRd theRhs)
Comparison, fuzzy equal to: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpLt(AbleRd theRhs)
Comparison, less than: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpLtEq(AbleRd theRhs)
Comparison, less than or equal to: compare the current value of this data object to the current value of theRhs. |
boolean |
cmpNeq(AbleRd theRhs)
Comparison, not equal to: compare the current value of this data object to the current value of theRhs. |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
abstract boolean |
getBooleanValue()
Retrieve the value of this data object as a boolean value. |
abstract int |
getDataType()
Retrieve the data type of this data object. |
abstract AbleLiteral |
getFuzzyValue()
Retrieve the value of this data object as a fuzzy value. |
abstract java.lang.Object |
getGenericValue()
Retrieve the value of this data object as an Object. |
abstract double |
getNumericValue()
Retrieve the value of this data object as a numeric value. |
abstract int |
getReferent()
Retrieve the Id of the variable to which this data object refers, if any. |
abstract java.lang.String |
getStringValue()
Retrieve the value of this data object as a string value. |
abstract AbleLiteral |
getValue()
Retrieve the value of this data object as a literal. |
abstract java.lang.String |
rlCRdString()
Return a formal rule language "clause" string that describes this data object. |
abstract java.lang.String |
rlDclString()
Return a formal rule language "declaration" string that describes this data object. |
abstract void |
setBooleanValue(boolean theNewValue)
Set the value of this data object from a boolean value. |
abstract void |
setFuzzyValue(AbleLiteral theNewValue)
Set the value of this data object from a fuzzy value. |
abstract void |
setGenericValue(java.lang.Object theNewValue)
Set the value of this data object from an object. |
abstract void |
setNumericValue(double theNewValue)
Set the value of this data object from a numeric value. |
abstract void |
setStringValue(java.lang.String theNewValue)
Set the value of this data object from a string value. |
abstract void |
setValue(AbleLiteral theNewValue)
Set the value of this data object from a literal object. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
abstract java.lang.String |
xmlCRdString()
Return a formal XML "read clause" string that describes this data object; for example, "very, very hot". |
abstract java.lang.String |
xmlCWrString()
Return a formal XML "clause write" string that describes this data object. |
abstract java.lang.String |
xmlDclString()
Return a formal XML "declaration" string that describes this data object. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public AbleLhs()
Method Detail |
public abstract boolean getBooleanValue() throws AbleDataException
public abstract AbleLiteral getFuzzyValue() throws AbleDataException
public abstract java.lang.Object getGenericValue() throws AbleDataException
public abstract double getNumericValue() throws AbleDataException
public abstract java.lang.String getStringValue() throws AbleDataException
public abstract AbleLiteral getValue() throws AbleDataException
public abstract int getReferent()
public abstract int getDataType()
public abstract java.lang.String rlCRdString()
public abstract java.lang.String xmlCRdString()
public boolean cmpEq(AbleRd theRhs) throws AbleDataException
"==" is used for numeric and boolean compares; equals() is used for Object compares; and Collator.equals() is used for String compares.
theRhs
- The right-hand side of the comparison.
public boolean cmpGt(AbleRd theRhs) throws AbleDataException
">" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public boolean cmpGtEq(AbleRd theRhs) throws AbleDataException
">=" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public double cmpIs(AbleRd theRhs) throws AbleDataException
Fuzzy membership is used for the compare.
theRhs
- The right-hand side of the comparison.
This must be a fuzzy set.
public boolean cmpLt(AbleRd theRhs) throws AbleDataException
"<" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public boolean cmpLtEq(AbleRd theRhs) throws AbleDataException
"<=" is used for numeric compares; Collator.compare() is used for String compares. Use of other data types on the left-hand side causes an exception.
theRhs
- The right-hand side of the comparison.
public boolean cmpNeq(AbleRd theRhs) throws AbleDataException
"!=" is used for numeric and boolean compares; ! equals() is used for Object compares; and ! Collator.equals() is used for String compares.
theRhs
- The right-hand side of the comparison.
public abstract void setBooleanValue(boolean theNewValue) throws AbleDataException
theNewValue
- A boolean value.
public abstract void setFuzzyValue(AbleLiteral theNewValue) throws AbleDataException
theNewValue
- A fuzzy set.
public abstract void setGenericValue(java.lang.Object theNewValue) throws AbleDataException
theNewValue
- Any type of Object.
public abstract void setNumericValue(double theNewValue) throws AbleDataException
theNewValue
- Any number.
public abstract void setStringValue(java.lang.String theNewValue) throws AbleDataException
theNewValue
- A string.
public abstract void setValue(AbleLiteral theNewValue) throws AbleDataException
theNewValue
- An Able literal of any type. An attempt is made to
convert the literal to an appropriate type before
assigning it to this "writable" object.
public abstract java.lang.String rlDclString()
public abstract java.lang.String xmlDclString()
public abstract java.lang.String xmlCWrString()
public void asgnEq(AbleRd theRhs) throws AbleDataException
theRhs
- The right-hand, or source, side of the assignment.
public void asgnIs(AbleRd theRhs) throws AbleDataException
theRhs
- The right-hand, or source, side of the assignment.
This must be a fuzzy set.
public void asgnIs(AbleRd theRhs, double theTruthValue) throws AbleDataException
theRhs
- The right-hand, or source, side of the assignment.
This must be a fuzzy set.
theTruthValue
- public java.lang.String toString()
public static java.lang.String Copyright()
|
ABLE, Version 1.1b | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |