Table of Contents

Class ModelSynchronization<TLeft, TRight, TSynchronization, TStartRule>

Namespace
NMF.AnyText
Assembly
NMF.AnyText.Synchronizations.dll

Represents a generic model synchronization class for specific model element types.

public class ModelSynchronization<TLeft, TRight, TSynchronization, TStartRule> : ModelSynchronization, IModelSynchronization where TLeft : class, IModelElement where TRight : class, IModelElement where TSynchronization : ReflectiveSynchronization, new() where TStartRule : SynchronizationRule<TLeft, TRight>

Type Parameters

TLeft

The type of the left model element.

TRight

The type of the right model element.

TSynchronization

The type of the synchronization engine used.

TStartRule

The type of the starting synchronization rule.

Inheritance
ModelSynchronization<TLeft, TRight, TSynchronization, TStartRule>
Implements
Inherited Members

Constructors

ModelSynchronization()

Creates a new instance

public ModelSynchronization()

Methods

SynchronizeLeftToRight(Uri, ref IModelElement, Uri, ref IModelElement)

Starts the synchronization from the left model to the right model

protected override IRunningSynchronization SynchronizeLeftToRight(Uri leftUri, ref IModelElement leftRoot, Uri rightUri, ref IModelElement rightRoot)

Parameters

leftUri Uri

the URI of the left model

leftRoot IModelElement

the left root model

rightUri Uri

the URI of the right model

rightRoot IModelElement

the right root model

Returns

IRunningSynchronization

A running synchronization or null, if the synchronization is aborted

SynchronizeRightToLeft(Uri, ref IModelElement, Uri, ref IModelElement)

Starts the synchronization from the right model to the left model

protected override IRunningSynchronization SynchronizeRightToLeft(Uri leftUri, ref IModelElement leftRoot, Uri rightUri, ref IModelElement rightRoot)

Parameters

leftUri Uri

the URI of the left model

leftRoot IModelElement

the left root model

rightUri Uri

the URI of the right model

rightRoot IModelElement

the right root model

Returns

IRunningSynchronization

A running synchronization or null, if the synchronization is aborted