|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.server.conflictDetection.ConflictBucketCandidate
public class ConflictBucketCandidate
Represents a bucket containing operations that potentially conflict but that do not neccessarily conflict. It also includes the involved model element ids and the priority of each operation.
The operation with the highest priority is used to determine which of the operations is used to represent all my and all their operations in a conflict. The operation with the highest priority is selected for representation.
Constructor Summary | |
---|---|
ConflictBucketCandidate()
Default constructor. |
Method Summary | |
---|---|
void |
addConflictBucketCandidate(ConflictBucketCandidate otherBucket)
Add another another conflict candidate bucket to this bucket including all their collected operations and invoveld ids. |
void |
addOperation(AbstractOperation operation,
boolean isMyOperation,
int priority)
Add an operation for a model element id and its feature to the bucket. |
Set<ConflictBucket> |
calculateConflictBuckets(ConflictDetector detector,
Set<AbstractOperation> myOperationsNonConflictingOperations)
Calculate a set of conflict buckets from this candidate bucket. |
Set<AbstractOperation> |
getMyOperations()
|
ConflictBucketCandidate |
getRootConflictBucketCandidate()
Returns the root conflict bucket this bucket belongs to. |
Set<AbstractOperation> |
getTheirOperations()
|
boolean |
isConflicting()
|
void |
setParentConflictBucketCandidate(ConflictBucketCandidate parentConflictBucketCandidate)
Sets the parent conflict bucket of this bucket. |
int |
size()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConflictBucketCandidate()
Method Detail |
---|
public void addOperation(AbstractOperation operation, boolean isMyOperation, int priority)
operation
- the operationisMyOperation
- a boolean to determine if the operation is to be added to mz or their operationspriority
- the global priority of the operationpublic void addConflictBucketCandidate(ConflictBucketCandidate otherBucket)
otherBucket
- the other bucketpublic ConflictBucketCandidate getRootConflictBucketCandidate()
public void setParentConflictBucketCandidate(ConflictBucketCandidate parentConflictBucketCandidate)
parentConflictBucketCandidate
- the parent bucket of this bucketpublic int size()
public boolean isConflicting()
public Set<AbstractOperation> getMyOperations()
public Set<AbstractOperation> getTheirOperations()
public Set<ConflictBucket> calculateConflictBuckets(ConflictDetector detector, Set<AbstractOperation> myOperationsNonConflictingOperations)
detector
- the conflict detectormyOperationsNonConflictingOperations
- a transient set where all non conflicting my operations are added
to
during this operation
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |