Interface: Patch

olympe.dc. Patch

Common interface for all objects that can be represented under a collection of operations, and thus whose operations can be applied to a olympe.dc.Writable

Methods


<abstract> applyOperationsTo(writable)

Updates the specified object (writable) with the operation accumulated in this patch.

Parameters:
Name Type Description
writable olympe.dc.Writable

the writable on which apply the operations contained in this patch.

Returns:

By convention, the writable given as parameter is returned to ease chaining.

Type
olympe.dc.Writable

<abstract> getId()

Return the patch id

Returns:
Type
string

<abstract> getSize()

Return the number of primitive operation this patch is made from

Returns:
Type
number