|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--qcsim.net.util.PeerMsgQueryResponse
Message used to respond to a file query.
| Field Summary | |
int |
contentCategory_
Content category |
int |
fileRank_
The fileRank. |
int |
sourceID_
peer id of sending node |
| Fields inherited from interface qcsim.net.util.PeerMessage |
MSG_QUERY, MSG_QUERYRESPONSE, MSG_REQUESTDOWNLOAD, MSG_REQUESTTRUST, MSG_TRUST |
| Constructor Summary | |
PeerMsgQueryResponse(int sourceID,
int contentCategory,
int fileRank)
Constructor |
|
PeerMsgQueryResponse(PeerMsgQueryResponse msg)
Copy constructor. |
|
| Method Summary | |
int |
contentCategory()
Content category containing the requested file. |
int |
fileRank()
The file rank requested by the peer. |
int |
sourceID()
Id of peer sending the query response. |
java.lang.String |
toString()
|
int |
type()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public int sourceID_
public int contentCategory_
public int fileRank_
| Constructor Detail |
public PeerMsgQueryResponse(int sourceID,
int contentCategory,
int fileRank)
sourceID - id of peer responding to query.contentCategory - content category.fileRank - the file rank.public PeerMsgQueryResponse(PeerMsgQueryResponse msg)
msg - message to copy| Method Detail |
public java.lang.String toString()
toString in class java.lang.Objectpublic int type()
type in interface PeerMessagepublic int sourceID()
public int contentCategory()
public int fileRank()
|
Query Cycle Simulator HEADER | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||