|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--Message
| Constructor Summary | |
Message(java.lang.String text,
int sender,
int receiver)
Creates new Message REQUIRES: MODIFIES: this EFFECTS: Sets the necessary object fields |
|
| Method Summary | |
int |
compareTo(java.lang.Object otherID)
Compares the sender IDs. |
int |
msgGetFrom()
Provides the sender's ID field of the given message |
int |
msgGetSize()
Provides the size field of the message |
java.lang.String |
msgGetText()
Provides the text field of the message |
int |
msgGetTo()
Provides thre receiver's ID field of the given message |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Message(java.lang.String text,
int sender,
int receiver)
| Method Detail |
public java.lang.String msgGetText()
public int msgGetSize()
public int msgGetFrom()
public int msgGetTo()
public int compareTo(java.lang.Object otherID)
compareTo in interface java.lang.Comparable
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||