|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsg.edu.nus.protocol.body.Body
sg.edu.nus.protocol.body.SPSearchExactBundleBody
public class SPSearchExactBundleBody
Implement the message body used for performing a bundle of exact query search.
Constructor Summary | |
---|---|
SPSearchExactBundleBody(PhysicalInfo physicalSender,
LogicalInfo logicalSender,
PhysicalInfo physicalRequester,
LogicalInfo logicalRequester,
java.util.Vector<IndexValue> data,
LogicalInfo logicalDestination)
Construct the message body with specified parameters. |
|
SPSearchExactBundleBody(java.lang.String serializeData)
Construct the message body with a string value. |
Method Summary | |
---|---|
java.util.Vector<IndexValue> |
getData()
Get searched data |
LogicalInfo |
getLogicalDestination()
Get logical address of the receiver |
LogicalInfo |
getLogicalRequester()
Get logical address of the requester |
LogicalInfo |
getLogicalSender()
Get logical address of the sender |
PhysicalInfo |
getPhysicalRequester()
Get physical address of the requester |
PhysicalInfo |
getPhysicalSender()
Get physical address of the sender |
java.lang.String |
getString()
Return a readable string for testing or writing in the log file |
void |
setLogicalDestination(LogicalInfo logicalDestination)
Update logical address of the receiver |
void |
setLogicalRequester(LogicalInfo logicalRequester)
Update logical address of the requester |
void |
setLogicalSender(LogicalInfo logicalSender)
Update logical address of the sender |
void |
setPhysicalRequester(PhysicalInfo physicalRequester)
Update physical address of the requester |
void |
setPhysicalSender(PhysicalInfo physicalSender)
Update physican address of the sender |
java.lang.String |
toString()
|
Methods inherited from class sg.edu.nus.protocol.body.Body |
---|
clone |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SPSearchExactBundleBody(PhysicalInfo physicalSender, LogicalInfo logicalSender, PhysicalInfo physicalRequester, LogicalInfo logicalRequester, java.util.Vector<IndexValue> data, LogicalInfo logicalDestination)
physicalSender
- physical address of the senderlogicalSender
- logical address of the senderphysicalRequester
- physical address of the requesterlogicalRequester
- logical address of the requesterdata
- searched data valuelogicalDestination
- logical address of the receiverpublic SPSearchExactBundleBody(java.lang.String serializeData)
serializeData
- the string value that contains
the serialized message bodyMethod Detail |
---|
public void setPhysicalSender(PhysicalInfo physicalSender)
physicalSender
- physical address of the senderpublic PhysicalInfo getPhysicalSender()
public void setLogicalSender(LogicalInfo logicalSender)
logicalSender
- logical address of the senderpublic LogicalInfo getLogicalSender()
public void setPhysicalRequester(PhysicalInfo physicalRequester)
physicalRequester
- physical address of the requesterpublic PhysicalInfo getPhysicalRequester()
public void setLogicalRequester(LogicalInfo logicalRequester)
logicalRequester
- logical address of the requesterpublic LogicalInfo getLogicalRequester()
public java.util.Vector<IndexValue> getData()
public void setLogicalDestination(LogicalInfo logicalDestination)
logicalDestination
- logical address of the receiverpublic LogicalInfo getLogicalDestination()
public java.lang.String getString()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |