|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||
java.lang.Objectcom.ibm.able.AbleObject
com.ibm.able.AbleDefaultAgent
com.ibm.able.examples.ableagent.SimpleAbleAgent
This class is an example of an AbleAgent created by extending AbleDefaultAgent. It uses timer event processing to set a new value in its outputBuffer, and sends a data event indicating its outputBuffer contents have changed.
AbleDefaultAgent,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String[] |
colors
|
protected static long |
serialVersionUID
Serialized version identifier in form YYYYMMDDVerRelModxx |
| Fields inherited from class com.ibm.able.AbleDefaultAgent |
|---|
activeDataSource, defaultName, eventConnections, myBeans, numEpochs, processList, processListOK, userDefinedFunctions |
| Fields inherited from class com.ibm.able.AbleObject |
|---|
changed, chgSupport, comment, dataFlowEnabled, destBufferConnections, eventQueue, fileName, inputBuffer, listeners, logger, name, outputBuffer, parent, properties, propertyConnectionMgr, sourceBufferConnections, state, stateChgSupport, trace |
| Constructor Summary | |
|---|---|
SimpleAbleAgent()
Construct a simple AbleAgent and initialize it. |
|
SimpleAbleAgent(java.lang.String aName)
Construct a simple AbleAgent with specified name. |
|
| Method Summary | |
|---|---|
java.lang.String |
getSimpleBeanColor()
Get the color attribute |
void |
init()
Initialize the agent to a known initialized state. |
void |
process()
Perform the standard processing function performed by this agent. |
void |
processTimerEvent()
This method gets called from the asych thread (if running) Default behavior is to just call the process() method |
void |
reset()
Reset the agent to default processing settings. |
void |
setSimpleBeanColor(java.lang.String newBeanColor)
Set the color attribute Also fire a propertyChange event and a dataChanged AbleEvent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.ibm.able.AbleBean |
|---|
getComment, getLogger, getName, getParent, getProperties, getProperty, getState, getTraceLogger, init, isChanged, process, removeProperty, setChanged, setComment, setLogger, setName, setParent, setProperties, setProperty, setState, setTraceLogger |
| Methods inherited from interface com.ibm.able.AbleEventListenerManager |
|---|
addAbleEventListener, dataChanged, getAbleEventListeners, notifyAbleEventListeners, removeAbleEventListener |
| Methods inherited from interface com.ibm.able.AbleEventQueueProcessor |
|---|
processAbleEvent, processNoEventProcessingEnabledSituation |
| Methods inherited from interface com.ibm.able.AblePropertyChangeManager |
|---|
addPropertyChangeListener, addPropertyConnection, getPropertyChangeListeners, getPropertyConnectionManager, removeAllPropertyConnections, removePropertyChangeListener, removePropertyConnection |
| Methods inherited from interface com.ibm.able.AbleSerializable |
|---|
getFileName, restoreFromFile, restoreFromFile, saveToFile, saveToFile, setFileName |
| Methods inherited from interface com.ibm.able.AbleBeanContainer |
|---|
getName |
| Field Detail |
protected static final long serialVersionUID
public static final java.lang.String[] colors
| Constructor Detail |
public SimpleAbleAgent()
throws AbleException
public SimpleAbleAgent(java.lang.String aName)
throws AbleException
aName - A String object specifying the object name| Method Detail |
public void init()
throws AbleException
init in interface AbleBeaninit in class AbleDefaultAgentAbleExceptionAbleObject.init()
public void reset()
throws AbleException
reset in interface AbleBeanreset in class AbleDefaultAgentAbleException - If an error occurs when resetting
a contained bean. All errors are
collected and insert into the exception
so that one bean's error does not
prevent another from being reset.
public void process()
throws AbleException
process in interface AbleBeanprocess in class AbleDefaultAgentAbleException - either AbleException or process error
public void processTimerEvent()
throws AbleException
processTimerEvent in interface AbleEventQueueProcessorprocessTimerEvent in class AbleObjectAbleException - If an error occurs.public void setSimpleBeanColor(java.lang.String newBeanColor)
public java.lang.String getSimpleBeanColor()
|
ABLE 2.3.0 07/13/2005 14:21:00 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||