|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ireasoning.protocol.tl1.TL1OutputMsg
This class is the base class of all the TL1 output messages.
Field Summary | |
static SimpleDateFormat |
DATE_FORMAT
|
Fields inherited from interface com.ireasoning.protocol.Msg |
ERROR_TYPE |
Method Summary | |
String |
getCTAG()
Returns correlation tag |
TL1Date |
getDate()
Returns the date information ( such as 00-05-10 ) contained in message header. |
String |
getHeader()
Returns raw message header. |
TL1Line[] |
getPayloadData()
Returns message payload data as a TL1Line array, each line in the payload is represented as an element in that array. |
String |
getRawMsg()
Returns the received raw message. |
String |
getSID()
Gets source ID |
String |
getTerminationCode()
Get the message's termination code. |
TL1Time |
getTime()
Get the time information ( such as 09:23:04 )contained in message header. |
Date |
getTimestamp()
Get the date and time information contained in message header. |
int |
getType()
Get the message type, one of {TL1OutputMsgType.NOTIFICATION, TL1OutputMsgType.RESPONSE, TL1OutputMsgType.ACK} |
void |
setDate(TL1Date date)
Sets a new date |
void |
setSID(String sid)
Sets a new source ID |
void |
setTerminationCode(String term)
Sets termination code |
void |
setTime(TL1Time time)
Sets a new time |
void |
setTimestamp(Date d)
Sets a new timestamp |
String |
toString()
Returns the raw string message |
void |
updateTimestamp()
Sets the header timestamp to be the current time |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final SimpleDateFormat DATE_FORMAT
Method Detail |
public TL1Line[] getPayloadData()
NODE 2000-05-09 17:32:36 M 1 COMPLD "SLOT-3:E1000,EQUIP,,ACT:CARDNAME=E1000" <--- Payload "SLOT-4:OC3,EQUIP,,NA:CARDNAME=OC3-IR:IS"
Payload has the following structure:
Payload contains one or multiple lines. Each Line (Represented by TL1Line) has the following format: "section [: section]*" (section is represented by TL1Section) In each section: "field [, field]*" (field is represented by TL1Field) In each field "name [ = value]"
public String getHeader()
NodeA 2000-05-09 17:32:36 M 123 COMPLD "SLOT-1:E1000,EQUIP,,ACT:CARDNAME=E1000-2:IS"
public TL1Date getDate()
public void setDate(TL1Date date)
date
- new datepublic TL1Time getTime()
public void setTime(TL1Time time)
time
- new timepublic Date getTimestamp()
public void setTimestamp(Date d)
d
- new timestamppublic void updateTimestamp()
public int getType()
getType
in interface Msg
public String getRawMsg()
NODE 00-11-20 13:37:26 M 0 COMPLD "TID=NODE_1,PORT=1029"
public String getSID()
public void setSID(String sid)
sid
- source id.public String getCTAG()
public String getTerminationCode()
TL1TerminationCode.MORE_TO_COME
,
TL1TerminationCode.END
public void setTerminationCode(String term)
term
- termination codepublic String toString()
|
HOME | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |