public ProductsBijectionsPort(ProductContent fromContent, ProductContent targetContent) { //this.targetContent = targetContent; //this.fromContent = fromContent; this.targetFContractions = targetContent.getStructureOfContractions(); this.fromFContractions = fromContent.getStructureOfContractions(); this.fromContractions = fromFContractions.contractions; this.targetContractions = targetFContractions.contractions; int[] seeds = new int[fromFContractions.componentCount]; Arrays.fill(seeds, -1); for (int i = 0; i < fromFContractions.components.length; ++i) if (seeds[fromFContractions.components[i]] == -1) seeds[fromFContractions.components[i]] = i; this.seeds = seeds; this.fromData = fromContent.getRange(0, fromContent.size()); this.targetData = targetContent.getRange(0, targetContent.size()); this.planter = new SeedPlanter(); }