org.coweb.oe
Class ContextDifference
java.lang.Object
org.coweb.oe.ContextDifference
public class ContextDifference
- extends Object
|
Method Summary |
void |
addRange(int site,
int start,
int end)
Adds a range of operations to the difference. |
void |
addSiteSeq(int site,
int seq)
Adds a single operation to the difference. |
String[] |
getHistoryBufferKeys()
Gets the histor buffer keys for all the operations represented in this
context difference. |
String |
toString()
Converts the contents of this context difference to a string. |
sites
public Vector<Integer> sites
seqs
public Vector<Integer> seqs
ContextDifference
public ContextDifference()
addRange
public void addRange(int site,
int start,
int end)
- Adds a range of operations to the difference.
- Parameters:
{Number} - site Integer site ID{Number} - start First integer operation sequence number, inclusive{Number} - end Last integer operation sequence number, exclusive
addSiteSeq
public void addSiteSeq(int site,
int seq)
- Adds a single operation to the difference.
- Parameters:
{Number} - site Integer site ID{Number} - seq Integer sequence number
getHistoryBufferKeys
public String[] getHistoryBufferKeys()
- Gets the histor buffer keys for all the operations represented in this
context difference.
- Returns:
- {String[]} Array of keys for HistoryBuffer lookups
toString
public String toString()
- Converts the contents of this context difference to a string.
- Overrides:
toString in class Object
- Returns:
- {String} All keys in the difference (for debug)
Copyright © 2011-2012 The Dojo Foundation. All Rights Reserved.