Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation:
de.fu_berlin.inf.dpp.concurrent.jupiter.Operation

List of all members.

Public Member Functions

String toString ()
boolean equals (Object obj)
int hashCode ()
List< TextEditActivitytoTextEdit (SPath path, User source)
List< ITextOperationgetTextOperations ()
Operation invert ()

Detailed Description

This operation contains a new vector time for the algorithm.

TODO TimestampOperations are never used.

Author:
orieger

Member Function Documentation

boolean de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation.equals ( Object  obj)
List<ITextOperation> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation.getTextOperations ( )

Returns a list of all operations represented by this operation that perform text changes in the order they should be executed. This method can return an empty list (for NoOperations for instance).

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.

int de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation.hashCode ( )
Operation de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation.invert ( )

Returns:
the Operation that reverts the effect of this Operation if it is executed afterwards; e.g. if this is a DeleteOperation(5,"abc") the inverted Operation is InsertOperation(5,"abc")

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.

String de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation.toString ( )
List<TextEditActivity> de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.TimestampOperation.toTextEdit ( SPath  path,
User  source 
)

Returns a sequence of TextEditActivitys which represent this operation if applied in order to the editor denoted by the given path by the user identified by the given source.

Implements de.fu_berlin.inf.dpp.concurrent.jupiter.Operation.

 All Classes Namespaces Files Functions Variables Enumerations