Class ModelUpdaterDerivedDataComputer
java.lang.Object
com.e1c.g5.v8.dt.internal.model.updater.derived.ModelUpdaterDerivedDataComputer
- All Implemented Interfaces:
IDerivedDataComputer
Implementation of the derived data computer for the model updater DD segment.
-
Constructor Summary
ConstructorsConstructorDescriptionModelUpdaterDerivedDataComputer
(Collection<org.eclipse.emf.ecore.EClass> supportedTypes, Collection<com.e1c.g5.v8.dt.internal.model.updater.derived.ModelUpdaterDerivedDataContributor.ControllerMapping> controllerMappings) Constructs the instance of theModelUpdaterDerivedDataComputer
-
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
-
ModelUpdaterDerivedDataComputer
public ModelUpdaterDerivedDataComputer(Collection<org.eclipse.emf.ecore.EClass> supportedTypes, Collection<com.e1c.g5.v8.dt.internal.model.updater.derived.ModelUpdaterDerivedDataContributor.ControllerMapping> controllerMappings) Constructs the instance of theModelUpdaterDerivedDataComputer
- Parameters:
supportedTypes
- Set of supportedEClass
'es. May not benull
controllerMappings
- Set of prepared update controller mappigs. May not benull
-
-
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
-