@Beta public final class SynchronizationModel extends Object implements IDiagnosable
Constructor and Description |
---|
SynchronizationModel(StorageTraversal leftTraversal,
StorageTraversal rightTraversal,
StorageTraversal originTraversal)
Constructs our logical model given the three traversal for our sides.
|
SynchronizationModel(StorageTraversal leftTraversal,
StorageTraversal rightTraversal,
StorageTraversal originTraversal,
Diagnostic diagnostic)
Constructs our logical model given the three traversal for our sides.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Diagnostic |
getDiagnostic()
Return the diagnostic associated with this scope.
|
StorageTraversal |
getLeftTraversal()
Returns the left traversal of this model.
|
StorageTraversal |
getOriginTraversal()
Returns the origin traversal of this model, if any.
|
Set<IResource> |
getResources()
Returns the set of resources this synchronization model spans.
|
StorageTraversal |
getRightTraversal()
Returns the right traversal of this model.
|
int |
hashCode() |
void |
setDiagnostic(Diagnostic diagnostic)
Set the diagnostic to be associated with this scope.
|
public SynchronizationModel(StorageTraversal leftTraversal, StorageTraversal rightTraversal, StorageTraversal originTraversal)
leftTraversal
- The traversal corresponding to the left side.rightTraversal
- The traversal corresponding to the right side.originTraversal
- The traversal corresponding to the common ancestor of both other side. Can be
null
.public SynchronizationModel(StorageTraversal leftTraversal, StorageTraversal rightTraversal, StorageTraversal originTraversal, Diagnostic diagnostic)
leftTraversal
- The traversal corresponding to the left side.rightTraversal
- The traversal corresponding to the right side.originTraversal
- The traversal corresponding to the common ancestor of both other side. Can be
null
.diagnostic
- The diagnostic that have gathered during the computation of the traversals.public StorageTraversal getLeftTraversal()
public StorageTraversal getRightTraversal()
public StorageTraversal getOriginTraversal()
null
if none.public Diagnostic getDiagnostic()
IDiagnosable
getDiagnostic
in interface IDiagnosable
public void setDiagnostic(Diagnostic diagnostic)
setDiagnostic
in interface IDiagnosable
diagnostic
- the diagnosticIDiagnosable.setDiagnostic(org.eclipse.emf.common.util.Diagnostic)
Copyright (c) 2006, 2014 Obeo and others. All rights reserved.