ABLE 2.0.0 07/02/2003 10:25:01

com.ibm.able.examples.rules
Class SampleSensorEffector

java.lang.Object
  |
  +--com.ibm.able.AbleObject
        |
        +--com.ibm.able.examples.rules.SampleSensorEffector
All Implemented Interfaces:
AbleBean, AbleDataBufferManager, AbleEventListener, AbleEventListenerManager, AbleEventQueueManager, AbleEventQueueProcessor, AblePropertyChangeManager, AbleSerializable, java.io.Serializable

public class SampleSensorEffector
extends AbleObject

This class is a command line test case (it has a main() method) that creates a fuzzy ruleset, a fuzzy ruleset listener, wires the two together, and then processes the rules. Lots of listener messages should result on the java console.

See Also:
Serialized Form

Fields inherited from class com.ibm.able.AbleObject
changed, chgSupport, comment, dataFlowEnabled, defaultName, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace
 
Constructor Summary
SampleSensorEffector()
           
SampleSensorEffector(java.lang.String theName)
           
 
Method Summary
static void main(java.lang.String[] args)
           
 void process()
          Performs the main, synchronous, standard processing function performed by this bean.
 void runSample()
           
 java.lang.Object setLockMethod(java.lang.Object theTstObject)
          The "effector" named "setLock".
 java.lang.Object tstLockMethod(java.lang.Object theTstObject)
          The "sensor" named "tstLock".
 
Methods inherited from class com.ibm.able.AbleObject
addAbleEventListener, addDestBufferConnection, addPropertyChangeListener, addPropertyConnection, addSourceBufferConnection, addStateChangeListener, Copyright, dataChanged, firePropertyChange, flushAbleEventQueue, getAbleEventListeners, getAbleEventProcessingEnabled, getAbleEventQueueSize, getComment, getDestBufferConnections, getFileName, getInputBuffer, getInputBuffer, getInputBufferAsStringArray, getInputBufferContents, getLogger, getName, getOutputBuffer, getOutputBuffer, getOutputBufferAsStringArray, getOutputBufferContents, getParent, getPropertyConnectionManager, getSleepTime, getSourceBufferConnections, getState, getTraceLogger, handleAbleEvent, hasInputBuffer, hasOutputBuffer, init, init, isAbleEventPostingEnabled, isAbleEventProcessingEnabled, isChanged, isConnectable, isDataFlowEnabled, isTimerEventProcessingEnabled, notifyAbleEventListeners, process, processAbleEvent, processBufferConnections, processNoEventProcessingEnabledSituation, processTimerEvent, quitAll, quitEnabledEventProcessing, removeAbleEventListener, removeAllAbleEventListeners, removeAllBufferConnections, removeAllConnections, removeAllPropertyConnections, removeDestBufferConnection, removePropertyChangeListener, removePropertyConnection, removeSourceBufferConnection, removeStateChangeListener, reset, restartEnabledEventProcessing, restoreFromFile, restoreFromFile, restoreFromSerializedFile, restoreFromStream, resumeAll, resumeEnabledEventProcessing, saveToFile, saveToFile, setAbleEventProcessingEnabled, setChanged, setComment, setDataFlowEnabled, setFileName, setInputBuffer, setInputBuffer, setLogger, setName, setOutputBuffer, setOutputBuffer, setParent, setSleepTime, setState, setTimerEventProcessingEnabled, setTraceLogger, sourceConnectionsOK, startEnabledEventProcessing, suspendAll, suspendEnabledEventProcessing
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SampleSensorEffector

public SampleSensorEffector()
                     throws AbleException

SampleSensorEffector

public SampleSensorEffector(java.lang.String theName)
                     throws AbleException
Method Detail

process

public void process()
             throws AbleException
Description copied from class: AbleObject
Performs the main, synchronous, standard processing function performed by this bean.

This base method implementation provides tracing only.

Overrides:
process in class AbleObject
Following copied from class: com.ibm.able.AbleObject
See Also:
AbleObject.inputBuffer, AbleObject.outputBuffer, AbleBean.process()

runSample

public void runSample()

tstLockMethod

public java.lang.Object tstLockMethod(java.lang.Object theTstObject)
The "sensor" named "tstLock".

This method simply returns a new copy of the argument.


setLockMethod

public java.lang.Object setLockMethod(java.lang.Object theTstObject)
The "effector" named "setLock".

This method simply returns a new copy of the argument.


main

public static void main(java.lang.String[] args)

ABLE 2.0.0 07/02/2003 10:25:01

(C) Copyright IBM Corporation 1999, 2003