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() |
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) |
accept, cloneString getName()
void setName(String name)
void addProduct(Product product)
void removeProduct(Product product)
List<AbstractFeature> getFeatures()
void addFeature(AbstractFeature feature)
void removeFeature(AbstractFeature feature)
List<Feature> getConcreteFeatures()
Feature getOrCreateFeature(String name, PCMFactory factory)
Product getOrCreateProduct(String name, PCMFactory factory)
void merge(PCM pcm, PCMFactory factory) throws MergeConflictException
pcm - MergeConflictExceptionboolean isValid()
void normalize(PCMFactory factory)
factory - DiffResult diff(PCM pcm, PCMElementComparator pcmElementComparator)
pcm - void invert(PCMFactory factory)
int getFeaturesDepth()
Copyright © 2015. All rights reserved.