|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.coweb.oe.HistoryBuffer
public class HistoryBuffer
| Constructor Summary | |
|---|---|
HistoryBuffer()
|
|
| Method Summary | |
|---|---|
void |
addLocal(Operation op)
Adds a local operation to the history. |
void |
addRemote(Operation op)
Adds a received operation to the history. |
Stack<Operation> |
getContextSortedOperations()
Gets all operations in the history buffer sorted by context. |
int |
getCount()
Gets the number of operations in the history. |
Stack<Operation> |
getOpsForDifference(ContextDifference cd)
Retrieves all of the operations represented by the given context differences from the history buffer. |
Object[] |
getState()
Serializes the history buffer contents to seed a remote instance. |
Operation |
remove(Operation op)
Removes and returns an operation in the history. |
void |
setState(Object[] arr)
Unserializes history buffer contents to initialize this instance. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public HistoryBuffer()
| Method Detail |
|---|
public String toString()
toString in class Objectpublic Object[] getState()
public void setState(Object[] arr)
{Object[]} - arr Array in the format returned by getState
public Stack<Operation> getOpsForDifference(ContextDifference cd)
throws OperationEngineException
{ContextDifference} - cd Context difference object
OperationEngineExceptionpublic void addLocal(Operation op)
{Operation} - Local operation to add
public void addRemote(Operation op)
throws OperationEngineException
{Operation} - Received operation to add
OperationEngineExceptionpublic Operation remove(Operation op)
{Operation} - op Operation to locate for removalpublic int getCount()
public Stack<Operation> getContextSortedOperations()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||