public class DecisionManager extends Object
| Constructor and Description |
|---|
DecisionManager(Project project,
ChangeConflictSet changeConflict,
boolean isBranchMerge)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
calcResult()
If all conflicts are resolved this method will generate the resulting
operations from the conflicts.
|
int |
countMyLeafOperations()
Count my leaf operations.
|
int |
countMyOperations()
Count my operations.
|
int |
countTheirLeafOperations()
Count their leaf operations.
|
int |
countTheirOperations()
Count their leaf operations.
|
String |
getAuthorForOperation(AbstractOperation theirOperation)
Returns the name of the author for a operation in list of their
operations.
|
ConflictDetector |
getConflictDetector()
Returns the conflictdetector.
|
ArrayList<VisualConflict> |
getConflicts()
Returns the conflicts.
|
ModelElementIdToEObjectMapping |
getIdToEObjectMapping()
Returns the mapping that is used to resolve model elements correctly.
|
org.eclipse.emf.ecore.EObject |
getModelElement(ModelElementId modelElementId)
Returns the model element.
|
String |
getModelElementName(org.eclipse.emf.ecore.EObject modelElement)
Get the Name of an model element.
|
String |
getModelElementName(ModelElementId modelElementId)
Get the Name of an model element by modelelement id.
|
Project |
getProject()
Returns the project on which the decision manager is working on.
|
boolean |
isBranchMerge()
Flat whether branches are merged opposed to versions on the same branch.
|
boolean |
isResolved()
Checks whether all conflicts are resolved.
|
public DecisionManager(Project project, ChangeConflictSet changeConflict, boolean isBranchMerge)
project - the related projectchangeConflict - the ChangeConflictSet containing the changes leading to a potential conflictisBranchMerge - allows to specify whether two branches are merged, opposed to
changes from the same branch. Has an effect on the wording of
conflictspublic ArrayList<VisualConflict> getConflicts()
public boolean isResolved()
public void calcResult()
public ConflictDetector getConflictDetector()
public boolean isBranchMerge()
public String getModelElementName(ModelElementId modelElementId)
modelElementId - id of elementpublic String getModelElementName(org.eclipse.emf.ecore.EObject modelElement)
modelElement - elementpublic org.eclipse.emf.ecore.EObject getModelElement(ModelElementId modelElementId)
modelElementId - the id of an elementnull if no such model element has been foundpublic String getAuthorForOperation(AbstractOperation theirOperation)
theirOperation - operationpublic int countMyLeafOperations()
public int countTheirLeafOperations()
public int countMyOperations()
public int countTheirOperations()
public ModelElementIdToEObjectMapping getIdToEObjectMapping()
EObject mappingpublic Project getProject()
Copyright © 2017. All rights reserved.