org.jgroups.protocols
public class TransportedVectorTime extends Object implements Serializable
Version: $Revision: 1.5 $
Constructor Summary | |
---|---|
TransportedVectorTime() | |
TransportedVectorTime(int senderIndex, int[] values)
Constructs TransportedVectorTime with sender index and vector values
|
Method Summary | |
---|---|
boolean | equals(Object other) Checks if this TransportedVectorTimeis equal to the specified TransportedVectorTime. |
Message | getAssociatedMessage()
Returns a message associated with this vector timestamp. |
int | getSenderIndex()
Returns sender index |
int[] | getValues()
Returns vector values |
boolean | lessThanOrEqual(TransportedVectorTime other) Checks if this TransportedVectorTime is less than or equal to the the specified TransportedVectorTime. |
void | setAssociatedMessage(Message owner)
Sets a message associated with this vector timestamp |
int | size()
Returns size of this vector timestamp i.e number of process group members |
String | toString()
Returns String representation of this vector timestamp |
Parameters: senderIndex index of the sender of the message values vector values
Checks if this TransportedVectorTimeis equal to the specified TransportedVectorTime. The check is done as follows:
VT1==VT2 iff for every i:1..k VT1[i]==VT2[i]
Parameters: other TransportedVectorTimebeing compared with this.
Returns: true if the equation given above is true, false otherwise
Returns: Message associated with this vector timestamp
Returns: sender index position
Returns: an array of vector values
Checks if this TransportedVectorTime is less than or equal to the the specified TransportedVectorTime. The check is done as follows:
VT1<=VT2 iff for every i:1..k VT1[i]<=VT2[i]
Parameters: other TransportedVectorTimebeing compared with this.
Returns: true if this TransportedVectorTimeis less than or equal from other, false othwerwise
Parameters: owner Message that is associated with this vector timestamp
Returns: vector timestamp size
Returns: String representing this vetor timestamp