sg.edu.nus.protocol.body
Class SPLBSplitDataResendBody

java.lang.Object
  extended by sg.edu.nus.protocol.body.Body
      extended by sg.edu.nus.protocol.body.SPLBSplitDataResendBody
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class SPLBSplitDataResendBody
extends Body
implements java.io.Serializable

Implement the message body used for feedback the requester to resend the SPLBSplitData request since the current receiver is not its adjacent

Version:
1.0 2006-2-22
Author:
Vu Quang Hieu
See Also:
Serialized Form

Constructor Summary
SPLBSplitDataResendBody(PhysicalInfo physicalSender, boolean direction, BoundaryValue minValue, BoundaryValue maxValue, java.util.Vector<IndexValue> data, LogicalInfo logicalDestination)
          Construct the message body with speicified parameters.
SPLBSplitDataResendBody(java.lang.String serializeData)
          Construct the message body with a string value.
 
Method Summary
 java.util.Vector<IndexValue> getData()
          Get splited data
 boolean getDirection()
          Get direction of sending request
 LogicalInfo getLogicalDestination()
          Get logical address of the receiver
 BoundaryValue getMaxValue()
          Get max value of splited range
 BoundaryValue getMinValue()
          Get min value of splited range
 PhysicalInfo getPhysicalSender()
          Get physical address of the sender
 java.lang.String getString()
          Return a readable string for testing or writing in the log file
 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

SPLBSplitDataResendBody

public SPLBSplitDataResendBody(PhysicalInfo physicalSender,
                               boolean direction,
                               BoundaryValue minValue,
                               BoundaryValue maxValue,
                               java.util.Vector<IndexValue> data,
                               LogicalInfo logicalDestination)
Construct the message body with speicified parameters.

Parameters:
physicalSender - physical address of the sender
direction - direction of sending request
minValue - min value of splitted range
maxValue - max value of splitted range
data - splited data
logicalDestination - logical address of the receiver

SPLBSplitDataResendBody

public SPLBSplitDataResendBody(java.lang.String serializeData)
Construct the message body with a string value.

Parameters:
serializeData - the string value that contains the serialized message body
Method Detail

getPhysicalSender

public PhysicalInfo getPhysicalSender()
Get physical address of the sender

Returns:
physical address of the sender

getDirection

public boolean getDirection()
Get direction of sending request

Returns:
direction of sending request

getMinValue

public BoundaryValue getMinValue()
Get min value of splited range

Returns:
min value of splited range

getMaxValue

public BoundaryValue getMaxValue()
Get max value of splited range

Returns:
max value of splited range

getData

public java.util.Vector<IndexValue> getData()
Get splited data

Returns:
splited data

getLogicalDestination

public LogicalInfo getLogicalDestination()
Get logical address of the receiver

Returns:
logical address of the receiver

getString

public java.lang.String getString()
Return a readable string for testing or writing in the log file

Returns:
a readable string

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object