|
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.TL1Header
This class represents a TL1 Header block containing information common to both Reponse and Autonomous Messages. It consists of Source Identifier, Date and Time. The Source Identifier identifies the NE from which the response is sent. The Date and Time (represented by TL1Date and TL1Time respectively) represents the day and time at which the Output Message is constructed.
TL1 Header block![]()
For example, the TL1Header
pascal 2002-06-12 22:05:12is created as follows,
TL1Header hdr = new TL1Header();
hdr.setSourceId("pascal");
hdr.setDate(new TL1Date(TL1Param.POSITION_DEFINED, 2002, 6, 12));
hdr.setTime(new TL1Time(TL1Message.RESPONSE_MESSAGE, TL1Param.POSITION_DEFINED, 22, 5, 12));
TL1Date,
TL1Time, Serialized Form| Constructor Summary | |
TL1Header()
Default Constructor that creates an instance of the TL1Header object. |
|
TL1Header(java.lang.String sourceId,
TL1Param tl1date,
TL1Param tl1time)
Constructor that creates an instance of TL1Header object and initializes the source identifier, date and time fields with the given values. |
|
| Method Summary | |
java.lang.Object |
clone()
Creates and returns a copy of this object. |
TL1Param |
getDate()
Gets the TL1Date as a TL1Param from this object. |
java.lang.String |
getSourceId()
Gets the source identifier from this object. |
TL1Param |
getTime()
Gets the TL1Time as a TL1Param from this object. |
void |
setDate(TL1Param date)
Sets the TL1Date as a TL1Param. |
void |
setSourceId(java.lang.String sourceIdentifier)
Sets the source identifier with the given value. |
void |
setTime(TL1Param time)
Sets the TL1Time as a TL1Param. |
java.lang.String |
toString()
Returns this object as a string. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public TL1Header()
public TL1Header(java.lang.String sourceId,
TL1Param tl1date,
TL1Param tl1time)
sourceId - String representing source identifier.tl1date - TL1Param representing TL1Date.tl1time - TL1Param representing TL1Time.| Method Detail |
public java.lang.String getSourceId()
public void setSourceId(java.lang.String sourceIdentifier)
sourceIdentifier - String representing the source identifier.public TL1Param getDate()
TL1Datepublic void setDate(TL1Param date)
date - Instance of TL1Param.
TL1Datepublic TL1Param getTime()
TL1Timepublic void setTime(TL1Param time)
time - Instance of TL1Param.
TL1Timepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.Object clone()
|
WebNMS TL1 API Release 4 Specification | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||