org.eclipse.emf.emfstore.internal.server.conflictDetection
Class ChangeConflictSet

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.conflictDetection.ChangeConflictSet
All Implemented Interfaces:
APIDelegate<ESConflictSet>

public class ChangeConflictSet
extends Object
implements APIDelegate<ESConflictSet>

The actual implementation of an ESConflictSetImpl containing the changes that caused the conflict.

Author:
wesendon, emueller, mkoegel

Constructor Summary
ChangeConflictSet(Set<ConflictBucket> conflictBuckets, Set<AbstractOperation> notInvolvedInConflict, ModelElementIdToEObjectMapping idToEObjectMapping, List<ChangePackage> leftChanges, List<ChangePackage> rightChanges)
          Constructor.
 
Method Summary
 ESConflictSetImpl createAPI()
          Creates the API interface for this class.
 Set<ConflictBucket> getConflictBuckets()
          Returns a set of conflict candidates.
 ModelElementIdToEObjectMapping getIdToEObjectMapping()
          Returns the mapping from IDs to EObjects and vice versa.
The mapping contains all IDs of model elements involved in the ChangePackages as well as those contained by the project in the ProjectSpace
 List<ChangePackage> getLeftChanges()
          Returns a list of ChangePackages representing one side of the conflict.
 Set<AbstractOperation> getNotInvolvedInConflict()
          Returns a set of operations not involved in any conflict.
 List<ChangePackage> getRightChanges()
          Returns a list of ChangePackages representing the other side of the conflict.
 ESConflictSet toAPI()
          Returns the API interface of this class.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChangeConflictSet

public ChangeConflictSet(Set<ConflictBucket> conflictBuckets,
                         Set<AbstractOperation> notInvolvedInConflict,
                         ModelElementIdToEObjectMapping idToEObjectMapping,
                         List<ChangePackage> leftChanges,
                         List<ChangePackage> rightChanges)
Constructor.

Parameters:
conflictBuckets - a set of conflict candidates
notInvolvedInConflict - a set of operations not involved in any conflict
idToEObjectMapping - a mapping from IDs to EObjects and vice versa.
Contains all IDs of model elements involved in the ChangePackages as well as those contained by the project in the ProjectSpace
leftChanges - a list of ChangePackages representing one side of the conflict
rightChanges - a list of ChangePackages representing the other side of the conflict
Method Detail

getIdToEObjectMapping

public ModelElementIdToEObjectMapping getIdToEObjectMapping()
Returns the mapping from IDs to EObjects and vice versa.
The mapping contains all IDs of model elements involved in the ChangePackages as well as those contained by the project in the ProjectSpace

Returns:
the mapping from IDs to EObjects and vice versa

toAPI

public ESConflictSet toAPI()
Returns the API interface of this class.

Specified by:
toAPI in interface APIDelegate<ESConflictSet>
Returns:
the API interface of this class
See Also:
APIDelegate.toAPI()

createAPI

public ESConflictSetImpl createAPI()
Creates the API interface for this class.

Specified by:
createAPI in interface APIDelegate<ESConflictSet>
Returns:
the API interface of this class
See Also:
APIDelegate.createAPI()

getNotInvolvedInConflict

public Set<AbstractOperation> getNotInvolvedInConflict()
Returns a set of operations not involved in any conflict.

Returns:
a set of operations not involved in any conflict

getConflictBuckets

public Set<ConflictBucket> getConflictBuckets()
Returns a set of conflict candidates.

Returns:
a set of conflict candidates

getLeftChanges

public List<ChangePackage> getLeftChanges()
Returns a list of ChangePackages representing one side of the conflict.

Returns:
a list of ChangePackages representing one side of the conflict

getRightChanges

public List<ChangePackage> getRightChanges()
Returns a list of ChangePackages representing the other side of the conflict.

Returns:
a list of ChangePackages representing the other side of the conflict


Copyright © 2015. All Rights Reserved.