Package org.eclipse.emf.compare.req
Class DefaultReqEngine
java.lang.Object
org.eclipse.emf.compare.req.DefaultReqEngine
- All Implemented Interfaces:
IReqEngine
The requirements engine is in charge of actually computing the requirements between the differences.
This default implementation aims at being generic enough to be used for any model, whatever the metamodel. However, specific requirements might be necessary.
TODO document available extension possibilities. TODO to test on XSD models for FeatureMaps-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkForRequiredDifferences
(Comparison comparison, Diff difference) Checks the potential required differences from the givendifference
.void
computeRequirements
(Comparison comparison, Monitor monitor) This is the entry point of the requirements computing process.
-
Constructor Details
-
DefaultReqEngine
public DefaultReqEngine()
-
-
Method Details
-
computeRequirements
This is the entry point of the requirements computing process.It will complete the input
comparison
by iterating over thedifferences
it contains, filling in the requirements it can detect for each distinct Diff.- Specified by:
computeRequirements
in interfaceIReqEngine
- Parameters:
comparison
- The comparison this engine is expected to complete.monitor
- The monitor to report progress or to check for cancellation- See Also:
-
checkForRequiredDifferences
Checks the potential required differences from the givendifference
.- Parameters:
comparison
- The comparison this engine is expected to complete.difference
- The difference that is to be checked
-