Class ModelCheckDerivedDataComputer
java.lang.Object
com.e1c.g5.v8.dt.internal.check.derived.ModelCheckDerivedDataComputer
- All Implemented Interfaces:
IDerivedDataComputer
Derived data computer that handles the check performing for DT model objects.
-
Constructor Summary
ConstructorsConstructorDescriptionModelCheckDerivedDataComputer
(String supportedSegmentId, Collection<org.eclipse.emf.ecore.EClass> supportedTypes, CheckComplexity complexity, boolean criticalDataIntegrityChecks, Map<org.eclipse.emf.ecore.EClass, ModelRebuildDefinition> rebuildDefinitions, ICheckExecutor checkExecutor, ICheckRepository checkRepository, IResourceLookup resourceLookup, IModelEditingSupport modelEditingSupport, IMarkerManager markerManager) Constructs the instance of the computer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
compute
(IObjectDerivedDataContext objectContext, IBmModel model, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Computes the derived data parts of the BM object.Gets the DD segment supported by this instance of the computer.Collection<org.eclipse.emf.ecore.EClass>
-
Constructor Details
-
ModelCheckDerivedDataComputer
public ModelCheckDerivedDataComputer(String supportedSegmentId, Collection<org.eclipse.emf.ecore.EClass> supportedTypes, CheckComplexity complexity, boolean criticalDataIntegrityChecks, Map<org.eclipse.emf.ecore.EClass, ModelRebuildDefinition> rebuildDefinitions, ICheckExecutor checkExecutor, ICheckRepository checkRepository, IResourceLookup resourceLookup, IModelEditingSupport modelEditingSupport, IMarkerManager markerManager) Constructs the instance of the computer.- Parameters:
supportedSegmentId
- supported segment id, notnull
supportedTypes
- Types of objects being supported by this computer, notnull
complexity
- The check complexity for checks being served by this computer, notnull
criticalDataIntegrityChecks
- The computer serves critical data checks if truerebuildDefinitions
- check ids by top object type by checking types, notnull
checkExecutor
- The check executor service reference, notnull
checkRepository
- The check repository service reference, notnull
resourceLookup
- resource lookup, notnull
modelEditingSupport
- TheIModelEditingSupport
service reference, notnull
-
-
Method Details
-
compute
public void compute(IObjectDerivedDataContext objectContext, IBmModel model, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IDerivedDataComputer
Computes the derived data parts of the BM object.- Specified by:
compute
in interfaceIDerivedDataComputer
- Parameters:
objectContext
- The DD context for the target object. Cannot benull
smodel
- BM model. Cannot benull
progressMonitor
- The progress monitor that allows to cancel the computation. Cannot benull
-
getSupportedSegmentId
Description copied from interface:IDerivedDataComputer
Gets the DD segment supported by this instance of the computer.- Specified by:
getSupportedSegmentId
in interfaceIDerivedDataComputer
- Returns:
- The identifier of the supported DD segment. Cannot be
null
-
getSupportedTypes
- Specified by:
getSupportedTypes
in interfaceIDerivedDataComputer
- Returns:
- a collection of the supported BM object types. Cannot be
null
or empty
-