|
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.AbleLiteral | +--com.ibm.able.data.AbleCallLiteral
This class defines the Able data sensor/effector call object.
Field Summary | |
protected java.util.Vector |
myArgs
|
protected java.lang.String |
myCallee
|
protected java.lang.Object |
mySenEffMgr
|
protected boolean |
mySensorFlag
|
protected java.lang.Object |
myValue
|
Fields inherited from class com.ibm.able.data.AbleLiteral |
myDataType |
Constructor Summary | |
AbleCallLiteral(java.lang.Object theSenEffMgr,
boolean theSensorFlag,
java.lang.String theCallee,
java.util.Vector theArgs)
Create a new Able data call object with the specified information. |
Method Summary | |
static java.lang.String |
Copyright()
Determine the copyright of this class. |
java.util.Vector |
getArgs()
|
boolean |
getBooleanValue()
Retrieve the value of this data object as a boolean value. |
java.lang.String |
getCallee()
|
AbleLiteral |
getFuzzyValue()
Retrieve the value of this data object as a fuzzy value. |
java.lang.Object |
getGenericValue()
Retrieve the value of this data object as an Object. |
double |
getNumericValue()
Retrieve the value of this data object as a numeric value. |
java.lang.Object |
getRawValue()
|
java.lang.String |
getStringValue()
Retrieve the value of this data object as a string value. |
AbleLiteral |
getValue()
Retrieve the value of this data object as a literal. |
boolean |
isSensor()
|
java.lang.String |
rlCRdString()
Return a formal rule language "clause read" string that describes this data object. |
java.lang.String |
toString()
Retrieve a string describing (the contents of) the object. |
java.lang.String |
xmlCRdString()
Return a formal XML "clause read" string that describes this data object. |
Methods inherited from class com.ibm.able.data.AbleLiteral |
cmpEq,
cmpGt,
cmpGtEq,
cmpIs,
cmpLt,
cmpLtEq,
cmpNeq,
getDataType,
getDataTypeAsString,
getReferent |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected java.lang.Object myValue
protected java.lang.Object mySenEffMgr
protected boolean mySensorFlag
protected java.lang.String myCallee
protected java.util.Vector myArgs
Constructor Detail |
public AbleCallLiteral(java.lang.Object theSenEffMgr, boolean theSensorFlag, java.lang.String theCallee, java.util.Vector theArgs)
theSenEffMgr
- A reference to an object that implements either the
AbleSensorManager interface or the AbleEffectorManager
interface.
theSensorFlag
- true if the name represents a sensor;
false if the name represents an effector.
theCallee
- The name of the sensor or effector to call.
theArgs
- A list of AbleRd objects whose runtime values will be
passed to the sensor or effector as arguments. Each
converted argument will be a Boolean, a Double, a
String, or an Object, depending on the type of each
AbleRd object in the argument list.
Method Detail |
public boolean getBooleanValue() throws AbleDataException
public AbleLiteral getFuzzyValue() throws AbleDataException
public java.lang.Object getGenericValue() throws AbleDataException
public double getNumericValue() throws AbleDataException
public java.lang.String getStringValue() throws AbleDataException
public AbleLiteral getValue() throws AbleDataException
The sensor or effector is called, which must return either a Boolean, Number derivative, String, or Object object, which will be turned into an AbleLiteral and returned.
If the sensor or effector returns null or some other object, an exception is thrown.
public java.lang.String rlCRdString()
public java.lang.String xmlCRdString()
public java.lang.Object getRawValue()
public boolean isSensor()
public java.lang.String getCallee()
public java.util.Vector getArgs()
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 |