sg.edu.nus.protocol.body
Class SPLBSplitDataBody

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

public class SPLBSplitDataBody
extends Body
implements java.io.Serializable

Implement the message body used for splitting data from an overloaded node to its adjacent

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

Constructor Summary
SPLBSplitDataBody(PhysicalInfo physicalSender, LogicalInfo logicalSender, boolean direction, BoundaryValue minValue, BoundaryValue maxValue, java.util.Vector<IndexValue> data, LogicalInfo logicalDestination)
          Construct the message body with speicified parameters.
SPLBSplitDataBody(java.lang.String serializeData)
          Construct the message body with a string value.
 
Method Summary
 java.util.Vector getData()
          Get splitted data
 boolean getDirection()
          Get direction of sending request
 LogicalInfo getLogicalDestination()
          Get logical address of the receiver
 LogicalInfo getLogicalSender()
          Get logical address of the sender
 BoundaryValue getMaxValue()
          Get max value of the splited range
 BoundaryValue getMinValue()
          Get min value of the 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

SPLBSplitDataBody

public SPLBSplitDataBody(PhysicalInfo physicalSender,
                         LogicalInfo logicalSender,
                         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
logicalSender - logical address of the sender
direction - direction of splited data
minValue - min value of the splited range
maxValue - max value of the splited range
data - splited data
logicalDestination - logical address of the receiver

SPLBSplitDataBody

public SPLBSplitDataBody(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

getLogicalSender

public LogicalInfo getLogicalSender()
Get logical address of the sender

Returns:
logical 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 the splited range

Returns:
min value of the splited range

getMaxValue

public BoundaryValue getMaxValue()
Get max value of the splited range

Returns:
max value of the splited range

getData

public java.util.Vector getData()
Get splitted data

Returns:
spliteed 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