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

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.server.conflictDetection.ReservationToConflictBucketCandidateMap

public class ReservationToConflictBucketCandidateMap
extends Object

Map from model elements and their features to conflict candidate buckets.

Author:
mkoegel, emueller

Constructor Summary
ReservationToConflictBucketCandidateMap()
          Default constructor.
 
Method Summary
 Set<ConflictBucketCandidate> getConflictBucketCandidates()
          Get all Conflict Buckets that are part of the map.
 void scanOperationReservations(AbstractOperation operation, int priority, ModelElementIdToEObjectMapping idToEObjectMapping, boolean isMyOperation)
          Scans the given AbstractOperation into the reservation set.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReservationToConflictBucketCandidateMap

public ReservationToConflictBucketCandidateMap()
Default constructor.

Method Detail

scanOperationReservations

public void scanOperationReservations(AbstractOperation operation,
                                      int priority,
                                      ModelElementIdToEObjectMapping idToEObjectMapping,
                                      boolean isMyOperation)
Scans the given AbstractOperation into the reservation set.

Parameters:
operation - the operation to be scanned
priority - the global priority of the operation, which is later used to represent a conflict bucket candidate
idToEObjectMapping - a mapping from IDs to model elements containing all involved model elements
isMyOperation - whether this operation is incoming, false if it is, true otherwise

getConflictBucketCandidates

public Set<ConflictBucketCandidate> getConflictBucketCandidates()
Get all Conflict Buckets that are part of the map.

Returns:
a set of conflict bucket candidates


Copyright © 2015. All Rights Reserved.