public class ImportMatrixLoader extends Object
| Constructor and Description |
|---|
ImportMatrixLoader(PCMFactory factory,
CellContentInterpreter cellContentInterpreter,
PCMDirection direction) |
| Modifier and Type | Method and Description |
|---|---|
protected List<AbstractFeature> |
createFeatures(IONode<String> parent,
Map<Integer,Feature> positionToFeature) |
protected void |
createProducts(ImportMatrix matrix,
PCMContainer pcmContainer,
Map<Integer,Feature> positionToFeature)
Detect and create products from the information contained in the matrix and the provided direction
|
protected PCMDirection |
detectDirection(ImportMatrix matrix)
Detect if products are represented by a line or a column
|
protected IONode<String> |
detectFeatures(ImportMatrix matrix,
PCMContainer pcmContainer)
Detect features from the information contained in the matrix and the provided direction
|
protected void |
detectTypes(ImportMatrix matrix)
Detect types of each cell of the matrix
|
PCMContainer |
load(ImportMatrix matrix) |
protected void |
removeHoles(ImportMatrix matrix) |
protected void |
setProductsKey(PCMContainer pcmContainer) |
public ImportMatrixLoader(PCMFactory factory, CellContentInterpreter cellContentInterpreter, PCMDirection direction)
public PCMContainer load(ImportMatrix matrix)
protected void detectTypes(ImportMatrix matrix)
matrix - matrixprotected PCMDirection detectDirection(ImportMatrix matrix)
matrix - matrixprotected IONode<String> detectFeatures(ImportMatrix matrix, PCMContainer pcmContainer)
matrix - matrixpcmContainer - PCM containerprotected List<AbstractFeature> createFeatures(IONode<String> parent, Map<Integer,Feature> positionToFeature)
protected void createProducts(ImportMatrix matrix, PCMContainer pcmContainer, Map<Integer,Feature> positionToFeature)
matrix - matrixpcmContainer - PCM containerpositionToFeature - map between positions and featuresprotected void setProductsKey(PCMContainer pcmContainer)
protected void removeHoles(ImportMatrix matrix)
Copyright © 2016. All rights reserved.