public interface PCM extends PCMElement
| Modifier and Type | Method and Description |
|---|---|
void |
addFeature(AbstractFeature feature) |
void |
addProduct(Product product) |
DiffResult |
diff(PCM pcm,
PCMElementComparator pcmElementComparator)
Compute the difference with another PCM
|
List<Feature> |
getConcreteFeatures()
List all the features of the PCM (no feature group is returned)
|
List<AbstractFeature> |
getFeatures() |
int |
getFeaturesDepth() |
String |
getName() |
Feature |
getOrCreateFeature(String name,
PCMFactory factory)
Retrieve an existing feature
If the feature does not exist, we create and add it to the PCM
|
Product |
getOrCreateProduct(String name,
PCMFactory factory)
Retrieve an existing product
If the product does not exist, we create and add it to the PCM
|
List<Product> |
getProducts() |
Feature |
getProductsKey() |
void |
invert(PCMFactory factory)
Invert the matrix (products become features and vice versa)
|
boolean |
isValid()
Check if the PCM is well formed
|
void |
merge(PCM pcm,
PCMFactory factory)
Add information from another PCM
|
void |
normalize(PCMFactory factory)
Fill missing cells with not available cells
|
void |
removeFeature(AbstractFeature feature) |
void |
removeProduct(Product product) |
void |
setName(String name) |
void |
setProductsKey(Feature feature) |
accept, cloneString getName()
void setName(String name)
void addProduct(Product product)
void removeProduct(Product product)
Feature getProductsKey()
void setProductsKey(Feature feature)
List<AbstractFeature> getFeatures()
void addFeature(AbstractFeature feature)
void removeFeature(AbstractFeature feature)
List<Feature> getConcreteFeatures()
Feature getOrCreateFeature(String name, PCMFactory factory)
name - name of the feature to searchfactory - : PCM factoryProduct getOrCreateProduct(String name, PCMFactory factory)
name - name of the product to searchfactory - PCM factoryvoid merge(PCM pcm, PCMFactory factory) throws MergeConflictException
pcm - PCM to mergefactory - PCM factoryMergeConflictExceptionboolean isValid()
void normalize(PCMFactory factory)
factory - PCM factoryDiffResult diff(PCM pcm, PCMElementComparator pcmElementComparator)
pcm - PCM to compare withpcmElementComparator - comparator to use to compute the difference between the elements of the PCMvoid invert(PCMFactory factory)
factory - PCM factoryint getFeaturesDepth()
Copyright © 2016. All rights reserved.