Class Index | File Index

Classes


Class ops.OperationTransformer


Defined in: OperationTransformer.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
 
transform(opSpecsA, opSpecsB)
<inner>  
transformOpListVsOp(opSpecsA, opSpecB)
<inner>  
transformOpVsOp(opSpecA, opSpecB)
TODO: priority could be read from op spec, here be an attribute from-server
Class Detail
ops.OperationTransformer()
Method Detail
{!ops.OperationTransformMatrix} getOperationTransformMatrix()
Returns:
{!ops.OperationTransformMatrix}

{?{opSpecsA:!Array.|opSpecsB:!Array.}} transform(opSpecsA, opSpecsB)
Parameters:
{!Array.} opSpecsA
sequence of opspecs with lower priority in case of tie breaking
{!Array.} opSpecsB
opspecs with higher priority in case of tie breaking
Returns:
{?{opSpecsA:!Array.|opSpecsB:!Array.}}

<inner> {?{opSpecsA:!Array.|opSpecsB:!Array.}} transformOpListVsOp(opSpecsA, opSpecB)
Parameters:
{!Array.} opSpecsA
sequence of ops with lower priority in case of tie breaking
{?{optype:string}} opSpecB
op with higher priority in case of tie breaking
Returns:
{?{opSpecsA:!Array.|opSpecsB:!Array.}}

<inner> {?{opSpecsA:!Array.|opSpecsB:!Array.}} transformOpVsOp(opSpecA, opSpecB)
TODO: priority could be read from op spec, here be an attribute from-server
Parameters:
{!{optype:string}} opSpecA
op with lower priority in case of tie breaking
{!{optype:string}} opSpecB
op with higher priority in case of tie breaking
Returns:
{?{opSpecsA:!Array.|opSpecsB:!Array.}}

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jul 17 2014 23:45:41 GMT+0200 (MESZ)