Package com._1c.g5.v8.derived.computer
Class DerivedDataPartBasedComputer
- java.lang.Object
- 
- com._1c.g5.v8.derived.computer.DerivedDataPartBasedComputer
 
- 
- All Implemented Interfaces:
- IDerivedDataComputer
 
 public class DerivedDataPartBasedComputer extends Object implements IDerivedDataComputer Standard implementation of derived data computer which delegates computation to the specific part computers.
 This implementation is coupled withPartBasedObjectContextcontexts and relies on the concept of DD parts.
- 
- 
Constructor SummaryConstructors Constructor Description DerivedDataPartBasedComputer(String supportedSegmentId, boolean readOnlyModelAccess, org.eclipse.emf.ecore.EClass... supportedTypes)Constructs the instance of the computer.DerivedDataPartBasedComputer(String supportedSegmentId, org.eclipse.emf.ecore.EClass... supportedTypes)Constructs the instance of the computer.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPartComputer(IDerivedDataPartComputer partComputer)Adds new part computer to the DD computer.voidaddRebuildScopeCollector(IDerivedDataPartBasedRebuildScopeCollector scopeCollector)Adds a rebuild scope collector to the computer.voidcompute(IObjectDerivedDataContext objectContext, IBmModel model, org.eclipse.core.runtime.IProgressMonitor progressMonitor)Computes the derived data parts of the BM object.StringgetSupportedSegmentId()Gets the DD segment supported by this instance of the computer.Collection<org.eclipse.emf.ecore.EClass>getSupportedTypes()
 
- 
- 
- 
Constructor Detail- 
DerivedDataPartBasedComputerpublic DerivedDataPartBasedComputer(String supportedSegmentId, boolean readOnlyModelAccess, org.eclipse.emf.ecore.EClass... supportedTypes) Constructs the instance of the computer.
 - 
DerivedDataPartBasedComputerpublic DerivedDataPartBasedComputer(String supportedSegmentId, org.eclipse.emf.ecore.EClass... supportedTypes) Constructs the instance of the computer.
 
- 
 - 
Method Detail- 
addPartComputerpublic void addPartComputer(IDerivedDataPartComputer partComputer) Adds new part computer to the DD computer. The order of the computer addition affects the order of DD part execution.- Parameters:
- partComputer- The part computer instance.
 
 - 
addRebuildScopeCollectorpublic void addRebuildScopeCollector(IDerivedDataPartBasedRebuildScopeCollector scopeCollector) Adds a rebuild scope collector to the computer. Rebuild scope is being collected right before the re-computation.- Parameters:
- scopeCollector- The collector.
 
 - 
computepublic void compute(IObjectDerivedDataContext objectContext, IBmModel model, org.eclipse.core.runtime.IProgressMonitor progressMonitor) Description copied from interface:IDerivedDataComputerComputes the derived data parts of the BM object.- Specified by:
- computein interface- IDerivedDataComputer
- Parameters:
- objectContext- The DD context for the target object. Cannot be- nulls
- model- BM model. Cannot be- null
- progressMonitor- The progress monitor that allows to cancel the computation. Cannot be- null
 
 - 
getSupportedSegmentIdpublic String getSupportedSegmentId() Description copied from interface:IDerivedDataComputerGets the DD segment supported by this instance of the computer.- Specified by:
- getSupportedSegmentIdin interface- IDerivedDataComputer
- Returns:
- The identifier of the supported DD segment. Cannot be null
 
 - 
getSupportedTypespublic Collection<org.eclipse.emf.ecore.EClass> getSupportedTypes() - Specified by:
- getSupportedTypesin interface- IDerivedDataComputer
- Returns:
- a collection of the supported BM object types. Cannot be nullor empty
 
 
- 
 
-