|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--com.adventnet.tl1.message.TL1ParamBlock
|
+--com.adventnet.tl1.message.TL1GeneralBlock
This class represents the TL1 General Block which is a part of Staging Parameter Block in the TL1 Input Message. This class extends TL1ParamBlock and contains support parameters which affect the way the Input Message Command is executed in the NE.
TL1 Input Message block![]()
Components of the TL1GeneralBlock
![]()
For example, the GeneralBlock in the input message,
TEST-FOR-GB::::12,2002-06-12,22-05-12,1,rtrvind:mpb;is created as follows,
TL1GeneralBlock gb = new TL1GeneralBlock();
gb.setOrderNo(12);
gb.setDate(new TL1Date(TL1Param.POSITION_DEFINED, 2002, 6, 12));
gb.setTime(new TL1Time(TL1Message.INPUT_MESSAGE, TL1Param.POSITION_DEFINED, 22, 5, 12));
gb.setContingencyFlag(true);
gb.setIdr_ind("rtrvind");
TL1Param,
TL1Date,
TL1Time, Serialized Form| Field Summary | |
static int |
CONTINGENCY_FLAG_FALSE
Constant for ContingencyFlag is false |
static int |
CONTINGENCY_FLAG_NOT_SET
Constant for ContingencyFlag is not set |
static int |
CONTINGENCY_FLAG_TRUE
Constant for ContingencyFlag id true |
| Constructor Summary | |
TL1GeneralBlock()
Default constructor that creates an instance of the TL1GeneralBlock object. |
|
| Method Summary | |
void |
addParameter(TL1Param param)
Overides its super method and destroys. |
int |
getContingencyFlag()
Gets the contingency flag. |
TL1Param |
getDate()
Gets the TL1Date as a TL1Param. |
java.lang.String |
getIdr_ind()
Gets the Indirect Data Retrieval Indicator as a String. |
int |
getOrderNo()
Gets the order number as an integer. |
TL1Param |
getTime()
Gets the TL1Time as a TL1Param. |
byte |
getType()
Gets the Parameter type as a byte value. |
void |
init()
Reintializes all params in the TL1GeneralBlock object to its default value. |
void |
setContingencyFlag(boolean contFlag)
Sets the contingency flag depending on the boolean value passed as argument. |
void |
setContingencyFlag(int contFlag)
Sets the contingency flag depending on the int value passed as argument. |
void |
setDate(TL1Param date)
Sets the TL1Date as a TL1Param. |
void |
setIdr_ind(java.lang.String idr_ind)
Sets the value of Indirect Data Retrieval Indicator. |
void |
setOrderNo(int orderNo)
Sets the order number with the given value. |
void |
setParameters(java.lang.String params)
Overides its super method and destroys. |
void |
setParameters(java.util.Vector params)
Overides its super method and destroys. |
void |
setSeparator(java.lang.String sep)
Overides its super method and destroys. |
void |
setTime(TL1Param time)
Sets the TL1Time as a TL1Param. |
void |
setType(byte type)
Sets the Parameter type with the given value. |
| Methods inherited from class com.adventnet.tl1.message.TL1ParamBlock |
clone, getParameter, getParameter, getParameterCount, getParameters, getSeparator, toExpandedString, toString |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CONTINGENCY_FLAG_TRUE
public static final int CONTINGENCY_FLAG_FALSE
public static final int CONTINGENCY_FLAG_NOT_SET
| Constructor Detail |
public TL1GeneralBlock()
| Method Detail |
public void setOrderNo(int orderNo)
orderNo - integer representing order number.public int getOrderNo()
public void setDate(TL1Param date)
date - Instance of TL1Param.
TL1Datepublic TL1Param getDate()
TL1Datepublic void setTime(TL1Param time)
time - Instance of TL1Param.
TL1Timepublic TL1Param getTime()
TL1Timepublic void setContingencyFlag(boolean contFlag)
contFlag - boolean value that represents the contingency flag.public void setContingencyFlag(int contFlag)
contFlag - int value representing the contingency flag.
It can be one of,
public int getContingencyFlag()
public void setIdr_ind(java.lang.String idr_ind)
idr_ind - String representing Indirect Data Retrieval Indicator.public java.lang.String getIdr_ind()
public byte getType()
TL1Parampublic void setType(byte type)
type - byte representing parameter type.
TL1Parampublic void setParameters(java.util.Vector params)
setParameters in class TL1ParamBlockcom.adventnet.tl1.message.TL1ParamBlockpmblock - Vector of TL1Param objects.public void setParameters(java.lang.String params)
setParameters in class TL1ParamBlockcom.adventnet.tl1.message.TL1ParamBlockblock - String of TL1Param objects. In the string
the the TL1Params should be separated by (,). Each param can be
name-defined(of the form name = value) or position-defined
where the values are specified and the name is defined by it's
position in the paramblock.public void addParameter(TL1Param param)
addParameter in class TL1ParamBlockcom.adventnet.tl1.message.TL1ParamBlockparam - TL1Param object.
TL1Parampublic void setSeparator(java.lang.String sep)
setSeparator in class TL1ParamBlockcom.adventnet.tl1.message.TL1ParamBlocksep - String used to separate the TL1Params.public void init()
|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||