ABLE, Version 1.1b

com.ibm.able.beans
Class AbleSensor

java.lang.Object
  |
  +--com.ibm.able.beans.AbleAtom
        |
        +--com.ibm.able.beans.AbleMethodAdaptor
              |
              +--com.ibm.able.beans.AbleSensor

public class AbleSensor
extends AbleMethodAdaptor

A Sensor is a named Atom that makes a method call to retrieve its value.

Version:
1.0.0; change log:
 Version   Description
 --------  -----------
 1.0.0     Initial release.

 
See Also:
AbleAtom, Serialized Form

Fields inherited from class com.ibm.able.beans.AbleMethodAdaptor
argList, method, methodName, sourceObj
 
Fields inherited from class com.ibm.able.beans.AbleAtom
name, value
 
Constructor Summary
AbleSensor(java.lang.String aSensorName, java.lang.Object aSource, java.lang.reflect.Method aMethod)
          Create a new sensor with the specified name, and encapsulate the specified method of the specified object.
AbleSensor(java.lang.String aSensorName, java.lang.Object aSource, java.lang.String aMethodName, java.lang.Class[] args)
          Create a new sensor with the specified name, and encapsulate the specified method of the specified object.
 
Methods inherited from class com.ibm.able.beans.AbleMethodAdaptor
invoke, toString
 
Methods inherited from class com.ibm.able.beans.AbleAtom
getName, getValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbleSensor

public AbleSensor(java.lang.String aSensorName,
                  java.lang.Object aSource,
                  java.lang.String aMethodName,
                  java.lang.Class[] args)
           throws java.lang.NoSuchMethodException
Create a new sensor with the specified name, and encapsulate the specified method of the specified object.
Parameters:
aSensorName - the name of the sensor which can referenced by rules
aSource - the object whose method is invoked
aMethodName - the name of the method to invoke
args - the parameter list of the method
Throws:
java.lang.NoSuchMethodException - the method or method signature if not defined in the source object

AbleSensor

public AbleSensor(java.lang.String aSensorName,
                  java.lang.Object aSource,
                  java.lang.reflect.Method aMethod)
Create a new sensor with the specified name, and encapsulate the specified method of the specified object.
Parameters:
aSensorName - the name of the sensor which can referenced by rules
aSource - the object whose method is invoked
aMethod - the method to invoke

ABLE, Version 1.1b

ABLE: Produced by Joe, Don, and Jeff who say, 'Thanks for your support.'