2
* This file is licensed to You under the "Simplified BSD License".
3
* You may not use this software except in compliance with the License.
4
* You may obtain a copy of the License at
6
* http://www.opensource.org/licenses/bsd-license.php
8
* See the COPYRIGHT file distributed with this work for information
9
* regarding copyright ownership.
11
package ch.usi.inf.sape.hac;
15
* A ClusteringBuilderMultiplexer is a ClusteringBuilder that forwards calls to two other ClusteringBuilders.
17
* @author Matthias.Hauswirth@usi.ch
19
public final class ClusteringBuilderMultiplexer implements ClusteringBuilder {
21
private final ClusteringBuilder a;
22
private final ClusteringBuilder b;
25
public ClusteringBuilderMultiplexer(final ClusteringBuilder a, final ClusteringBuilder b) {
30
public void merge(final int i, final int j, final double dissimilarity) {
31
a.merge(i, j, dissimilarity);
32
b.merge(i, j, dissimilarity);