org.coweb.oe
Class ContextDifference

java.lang.Object
  extended by org.coweb.oe.ContextDifference

public class ContextDifference
extends Object


Field Summary
 Vector<Integer> seqs
           
 Vector<Integer> sites
           
 
Constructor Summary
ContextDifference()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sites

public Vector<Integer> sites

seqs

public Vector<Integer> seqs
Constructor Detail

ContextDifference

public ContextDifference()
Method Detail

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.