IBM Branch Transformation Toolkit Javadoc

com.ibm.btt.samples.business.sna.lu0.host
Class DummyLu0Message

java.lang.Object
  extended bycom.ibm.btt.samples.business.sna.lu0.host.DummyLu0Message

public class DummyLu0Message
extends java.lang.Object

This DummyLu0Message class represents a Lu0 message with message characteristics


Field Summary
(package private)  boolean _beginBracketIndicator
           
(package private)  boolean _beginChainIndicator
           
(package private)  boolean _cdi
           
(package private)  java.lang.String _data
           
 java.lang.String _dataReceived
           
 boolean _dataSent
           
(package private)  boolean _endBracketIndicator
           
(package private)  boolean _endChainIndicator
           
(package private)  boolean _expeditedFlow
           
(package private)  boolean _fmhIncluded
           
(package private)  boolean _messageToLu
           
(package private)  java.lang.String _messageType
           
protected  java.beans.PropertyChangeSupport _propertyChange
           
 int _receiveRC
           
(package private)  java.lang.String _responseModeIndicator
           
(package private)  java.lang.String _seq_num
           
 boolean _timeout
           
static java.lang.String COMPID
           
static java.lang.String DEFINITE_RESPONSE
           
static java.lang.String EXCEPTION_RESPONSE
           
static java.lang.String NEGATIVE_RESPONSE
           
static java.lang.String NO_RESPONSE
           
static java.lang.String POSITIVE_RESPONSE
           
static java.lang.String REQUEST
           
 
Constructor Summary
DummyLu0Message()
           
 
Method Summary
 void addData(java.lang.String data)
          Adds aData to the existing message data.
 void finalize()
          Clears all the atributes when no reference to this instance.
 boolean getBeginBracketIndicator()
          Returns true if message received has begin bracket indicator.
 boolean getBeginChainIndicator()
          Returns true if message received has begin chain indicator.
 boolean getCdi()
          Returns true if message received has change direction indicator.
 java.lang.String getData()
          Returns the message string.
 java.lang.String getDataReceived()
          Returns the message received from the communications channel or null if no message is received.
 boolean getDataSent()
          Returns true if data has been sent .
 boolean getEndBracketIndicator()
          Returns true if message received has end bracket indicator.
 boolean getEndChainIndicator()
          Returns true if message received has end chain indicator.
 boolean getExpeditedFlow()
          Returns true if message received has expedited flow.
 boolean getFmhIncluded()
          Returns true if message received has FMH included.
 boolean getMessageToLu()
          Returns true if message received is from LU-LU session.
 java.lang.String getMessageType()
          Returns the message type.
 int getReceiveRC()
          Returns the return code produced in the receive.
 java.lang.String getResponseModeIndicator()
          Returns the responseModeIndicator.
 java.lang.String getSeq_num()
          Return the sequence Number of this message
 boolean getTimeout()
          Returns true if the timeout has been reached in receive.
 boolean isDefiniteResponse()
          Return true if the message is definiteResponse.
 boolean isExceptionResponse()
          Return true if the message is ExceptionResponse.
 boolean isNoResponse()
          Return true if the message is noResponse.
(package private) static DummyLu0Message newLu0Message(DummyLu0Message aMessage)
          Creates a new instance of DummyLu0Message with the received message.
 void setBeginBracketIndicator(boolean beginBracketIndicator)
          Sets the beginBracketIndicator property (boolean) value.
 void setBeginChainIndicator(boolean beginChainIndicator)
          Sets the beginChainIndicator property (boolean) value.
 void setCdi(boolean cdi)
          Sets the cdi property (boolean) value.
 void setData(java.lang.String data)
          Sets message data String.
 void setDataReceived(java.lang.String data)
          Actualizes the message received from the communications channel.
 void setDataSent(boolean dataSent)
          Actualizes if data has been sent.
 void setEndBracketIndicator(boolean endBracketIndicator)
          Sets the endBracketIndicator property (boolean) value.
 void setEndChainIndicator(boolean endChainIndicator)
          Sets the endChainIndicator property (boolean) value.
 void setExpeditedFlow(boolean expeditedFlow)
          Sets the expeditedFlow property (boolean) value.
 void setFmhIncluded(boolean fmhIncluded)
          Sets the fmhIncluded property (boolean) value.
 void setMessageToLu(boolean messageToLu)
          Sets the messageToLu property (boolean) value.
 void setMessageType(java.lang.String messageType)
          Sets the messageType property (java.lang.String) value.
 void setReceiveRC(int RC)
          Actualizes the return code produced in the receive.
 void setResponseModeIndicator(java.lang.String responseModeIndicator)
          Sets the responseModeIndicator property (java.lang.String) value.
 void setResponseModeIndicatorFromBind(DummyLu0Bind bind, boolean indicator)
          Set ResponseModeIndicator, which checks the bind characteristics.
 void setSeq_num(java.lang.String seq_num)
          Sets the seq_num property (java.lang.String) value.
 void setTimeout(boolean timeout)
          Actualizes if the timeout has been reached in receive.
 DummyLuaCommon toCommon()
          Creates a common instance with the characteristics of this message.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPID

public static final java.lang.String COMPID
See Also:
Constant Field Values

REQUEST

public static final java.lang.String REQUEST
See Also:
Constant Field Values

POSITIVE_RESPONSE

public static final java.lang.String POSITIVE_RESPONSE
See Also:
Constant Field Values

NEGATIVE_RESPONSE

public static final java.lang.String NEGATIVE_RESPONSE
See Also:
Constant Field Values

NO_RESPONSE

public static final java.lang.String NO_RESPONSE
See Also:
Constant Field Values

DEFINITE_RESPONSE

public static final java.lang.String DEFINITE_RESPONSE
See Also:
Constant Field Values

EXCEPTION_RESPONSE

public static final java.lang.String EXCEPTION_RESPONSE
See Also:
Constant Field Values

_cdi

boolean _cdi

_endBracketIndicator

boolean _endBracketIndicator

_endChainIndicator

boolean _endChainIndicator

_fmhIncluded

boolean _fmhIncluded

_beginBracketIndicator

boolean _beginBracketIndicator

_beginChainIndicator

boolean _beginChainIndicator

_messageToLu

boolean _messageToLu

_expeditedFlow

boolean _expeditedFlow

_data

java.lang.String _data

_messageType

java.lang.String _messageType

_seq_num

java.lang.String _seq_num

_responseModeIndicator

java.lang.String _responseModeIndicator

_propertyChange

protected transient java.beans.PropertyChangeSupport _propertyChange

_dataReceived

public java.lang.String _dataReceived

_receiveRC

public int _receiveRC

_timeout

public boolean _timeout

_dataSent

public boolean _dataSent
Constructor Detail

DummyLu0Message

public DummyLu0Message()
Method Detail

finalize

public void finalize()
Clears all the atributes when no reference to this instance.


getDataReceived

public java.lang.String getDataReceived()
Returns the message received from the communications channel or null if no message is received.


getDataSent

public boolean getDataSent()
Returns true if data has been sent .


getReceiveRC

public int getReceiveRC()
Returns the return code produced in the receive.


getTimeout

public boolean getTimeout()
Returns true if the timeout has been reached in receive.


setDataReceived

public void setDataReceived(java.lang.String data)
Actualizes the message received from the communications channel.

Parameters:
data - String

setDataSent

public void setDataSent(boolean dataSent)
Actualizes if data has been sent.

Parameters:
dataSent - boolean

setReceiveRC

public void setReceiveRC(int RC)
Actualizes the return code produced in the receive.

Parameters:
RC - int

setTimeout

public void setTimeout(boolean timeout)
Actualizes if the timeout has been reached in receive.

Parameters:
timeout - boolean

addData

public void addData(java.lang.String data)

Adds aData to the existing message data.


getBeginBracketIndicator

public boolean getBeginBracketIndicator()

Returns true if message received has begin bracket indicator.


getBeginChainIndicator

public boolean getBeginChainIndicator()

Returns true if message received has begin chain indicator.


getCdi

public boolean getCdi()

Returns true if message received has change direction indicator.


getData

public java.lang.String getData()

Returns the message string.


getEndBracketIndicator

public boolean getEndBracketIndicator()

Returns true if message received has end bracket indicator.


getEndChainIndicator

public boolean getEndChainIndicator()

Returns true if message received has end chain indicator.


getExpeditedFlow

public boolean getExpeditedFlow()

Returns true if message received has expedited flow. False if message received has normal flow.


getFmhIncluded

public boolean getFmhIncluded()

Returns true if message received has FMH included.


getMessageToLu

public boolean getMessageToLu()

Returns true if message received is from LU-LU session. Returns False if message received is from SSCP-LU session.


getMessageType

public java.lang.String getMessageType()

Returns the message type. The possible values are:


getResponseModeIndicator

public java.lang.String getResponseModeIndicator()

Returns the responseModeIndicator. It can be:


getSeq_num

public java.lang.String getSeq_num()

Return the sequence Number of this message


isDefiniteResponse

public boolean isDefiniteResponse()

Return true if the message is definiteResponse.


isExceptionResponse

public boolean isExceptionResponse()

Return true if the message is ExceptionResponse.


isNoResponse

public boolean isNoResponse()

Return true if the message is noResponse.


newLu0Message

static DummyLu0Message newLu0Message(DummyLu0Message aMessage)

Creates a new instance of DummyLu0Message with the received message.


setBeginBracketIndicator

public void setBeginBracketIndicator(boolean beginBracketIndicator)

Sets the beginBracketIndicator property (boolean) value.


setBeginChainIndicator

public void setBeginChainIndicator(boolean beginChainIndicator)

Sets the beginChainIndicator property (boolean) value.


setCdi

public void setCdi(boolean cdi)

Sets the cdi property (boolean) value.


setData

public void setData(java.lang.String data)

Sets message data String.


setEndBracketIndicator

public void setEndBracketIndicator(boolean endBracketIndicator)

Sets the endBracketIndicator property (boolean) value.


setEndChainIndicator

public void setEndChainIndicator(boolean endChainIndicator)

Sets the endChainIndicator property (boolean) value.


setExpeditedFlow

public void setExpeditedFlow(boolean expeditedFlow)

Sets the expeditedFlow property (boolean) value.


setFmhIncluded

public void setFmhIncluded(boolean fmhIncluded)

Sets the fmhIncluded property (boolean) value.


setMessageToLu

public void setMessageToLu(boolean messageToLu)

Sets the messageToLu property (boolean) value.


setMessageType

public void setMessageType(java.lang.String messageType)

Sets the messageType property (java.lang.String) value.


setResponseModeIndicator

public void setResponseModeIndicator(java.lang.String responseModeIndicator)

Sets the responseModeIndicator property (java.lang.String) value.

responseModeIndicator can be:


setResponseModeIndicatorFromBind

public void setResponseModeIndicatorFromBind(DummyLu0Bind bind,
                                             boolean indicator)

Set ResponseModeIndicator, which checks the bind characteristics.


setSeq_num

public void setSeq_num(java.lang.String seq_num)

Sets the seq_num property (java.lang.String) value.


toCommon

public DummyLuaCommon toCommon()

Creates a common instance with the characteristics of this message.


IBM Branch Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2005