|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ie.ncl.sms.gsm.LongMessageStatus
public class LongMessageStatus
This object is used to maintain the status of a long message. A status is maintained for each Address,Sequence number pair.
Constructor Summary | |
---|---|
LongMessageStatus(Address address,
int sequence,
int totalFragments)
Construct the status of a long message. |
Method Summary | |
---|---|
int |
compare(java.lang.Object a,
java.lang.Object b)
Implements Comparator API. |
boolean |
complete()
Indicate if the LongMessageStatus is complete, ie all fragments have been received. |
boolean |
equals(java.lang.Object a)
Implements Comparator API. |
Address |
getAddress()
Get the address of this progress object. |
int |
getSequence()
Get the sequence number of this progress object. |
int |
getTotalFragments()
Get the number of fragments in the long message. |
void |
receivedFragment()
Increment the counter keeping track of received fragments. |
java.lang.String |
toString()
To string. |
Methods inherited from class java.lang.Object |
---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LongMessageStatus(Address address, int sequence, int totalFragments)
Method Detail |
---|
public boolean complete()
public int getSequence()
public Address getAddress()
public int getTotalFragments()
public void receivedFragment()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object a)
equals
in interface java.util.Comparator
equals
in class java.lang.Object
public int compare(java.lang.Object a, java.lang.Object b)
compare
in interface java.util.Comparator
|
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |