|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adventnet.tl1.message.TL1Time
public class TL1Time
This class represents the time as hour-min-sec format. This class is used in TL1Header class which is part of the Output (Response and Autonomous) Messages and represent the time when the message was generated. This object is also used in the General Block of the Input Message.
TL1Header,
TL1GeneralBlock| Constructor Summary | |
|---|---|
TL1Time()
Default constructor that creates an instance of the TL1Time object. |
|
TL1Time(int hour,
int min,
int sec)
Constructor that creates an instance of the TL1Time object and initialises the hour, minute, sec parameters with the given values. |
|
| Method Summary | |
|---|---|
boolean |
equals(TL1Time time)
Checks whether the given Time object values is equal to this object values are equal. |
int |
getHour()
Gets the hour value set in this object. |
int |
getMinute()
Gets the minute value set in this object. |
int |
getSecond()
Gets the second value set in this object. |
byte |
getTL1MessageType()
Get the TL1 Message Type set on this object. |
void |
setHour(int hour)
Sets the hour field in this object. |
void |
setMinute(int min)
Sets the minute field in this object. |
void |
setSecond(int sec)
Sets the second field in this object. |
void |
setTL1MessageType(byte messageType)
Sets the TL1 Message Type set on this object. |
java.lang.String |
toString()
Returns the stringified form of this TL1Time object. |
java.lang.String |
toString(byte messageType)
Deprecated. Since AdventNetTL1 API 2.0. Use toString() |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TL1Time()
public TL1Time(int hour,
int min,
int sec)
hour - integer representing hour value.min - integer representing minute value.sec - integer representing second value.| Method Detail |
|---|
public void setHour(int hour)
hour - The hour value to set.public int getHour()
public void setMinute(int min)
min - The minute value to set.public int getMinute()
public void setSecond(int sec)
sec - The second value to set.public int getSecond()
public void setTL1MessageType(byte messageType)
messageType - The TL1 Message type. This can be one of public byte getTL1MessageType()
public boolean equals(TL1Time time)
time - TL1Time object to compare.
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(byte messageType)
toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||