ABLE 2.3.0 07/13/2005 14:21:00

com.ibm.able
Class AbleBufferConnection

java.lang.Object
  extended bycom.ibm.able.AbleBufferConnection
All Implemented Interfaces:
java.io.Serializable

public class AbleBufferConnection
extends java.lang.Object
implements java.io.Serializable

The AbleBufferConnection class provides a serializable connection between two objects who implement the AbleBean interface.

See Also:
Serialized Form

Constructor Summary
AbleBufferConnection(AbleBean srcObj, AbleBean destObj)
          The AbleBufferConnection provides a serializable data buffer connection between two AbleBeans.
 
Method Summary
 AbleBean getDest()
          Returns the destination object which receives output from this connection.
 boolean getInhibitory()
          Retrieve the arc multiplicity value.
 int getMultiplicity()
          Retrieve the arc multiplicity value.
 AbleBean getSource()
          Returns the source object which provides the input for this connection.
 int hashCode()
           
 void process()
          Processing a connection moves data from the source output buffer to the destination object's input buffer.
 void remove()
          Removes the references to this connection object from the source and destination objects.
 void setInhibitory(boolean theValue)
          Set the arc inhibitory flag.
 void setMultiplicity(int theValue)
          Set the arc multiplicity value.
 java.lang.String toString()
          Returns a text representation of the connection in the form sourceName..destinationName.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbleBufferConnection

public AbleBufferConnection(AbleBean srcObj,
                            AbleBean destObj)
                     throws AbleException
The AbleBufferConnection provides a serializable data buffer connection between two AbleBeans.

Parameters:
srcObj - The source object which provides the input for this connection.
destObj - The destination object which receives output from this connection.
Throws:
AbleException - If the source and destination objects are the same, or if either is null.
Method Detail

getSource

public AbleBean getSource()
Returns the source object which provides the input for this connection.


getDest

public AbleBean getDest()
Returns the destination object which receives output from this connection.


hashCode

public int hashCode()

process

public void process()
             throws AbleException
Processing a connection moves data from the source output buffer to the destination object's input buffer. Any necessary conversions between the source output buffer and destination input buffer are performed. The source object must be data flow enabled for the data to be transferred. The source and destination objects must not be null.

Throws:
AbleException - If an error occurs during the processing of a valid connection from a source object with data flow enabled. If the source object is not data flow enabled, no exception is thrown nor is any actual operation is performed.

toString

public java.lang.String toString()
Returns a text representation of the connection in the form sourceName..destinationName.


remove

public void remove()
Removes the references to this connection object from the source and destination objects.


setMultiplicity

public void setMultiplicity(int theValue)
Set the arc multiplicity value.

Parameters:
theValue -

getMultiplicity

public int getMultiplicity()
Retrieve the arc multiplicity value.

Returns:
the int value

setInhibitory

public void setInhibitory(boolean theValue)
Set the arc inhibitory flag.

Parameters:
theValue -

getInhibitory

public boolean getInhibitory()
Retrieve the arc multiplicity value.

Returns:
the boolean value

ABLE 2.3.0 07/13/2005 14:21:00

(C) Copyright IBM Corporation 1999, 2005