|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.able.AbleObject | +--com.ibm.able.examples.ablebean.SimpleAbleBean
This class is an example of a simple AbleBean created by extending AbleObject. It copies the value of the inputBuffer to the outputBuffer. It sets the simpleBeanColor property to the value of the first output buffer array position.
If no input connection exists or the inputBuffer is null, it will copy the the simpleBeanColor property to the first output buffer array value.
Field Summary | |
---|---|
static java.lang.String |
DefaultBeanColor
|
protected static long |
serialVersionUID
Serialized version identifier in form YYYYMMDDVerRelModxx |
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 | |
---|---|
SimpleAbleBean()
Construct a simple AbleBean |
|
SimpleAbleBean(java.lang.String aName)
Construct a simple AbleBean with specified name. |
Method Summary | |
---|---|
static java.lang.String |
Copyright()
Determine the copyright of this class. |
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 bean. |
void |
reset()
Reset the bean to a known initialized state. |
void |
setSimpleBeanColor(java.lang.String newBeanColor)
Set the color attribute Also fire a propertyChange event to notify any propertyChange listeners |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final long serialVersionUID
public static final java.lang.String DefaultBeanColor
Constructor Detail |
public SimpleAbleBean() throws AbleException
public SimpleAbleBean(java.lang.String aName) throws AbleException
aName
- A String object specifying the object name
Method Detail |
public void init() throws AbleException
init
in class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.AbleObject.startEnabledEventProcessing()
public void reset() throws AbleException
reset
in class AbleObject
com.ibm.able.AbleObject
AbleException
- If an error occurs.AbleBean.reset()
public void process() throws AbleException
process
in class AbleObject
AbleException
- either AbleException or process errorpublic void setSimpleBeanColor(java.lang.String newBeanColor) throws AbleException
public java.lang.String getSimpleBeanColor()
public static java.lang.String Copyright()
|
ABLE 2.0.0 07/02/2003 10:25:01 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |